All Downloads are FREE. Search and download functionalities are using the official Maven repository.

boofcv.abst.sfm.d3.StereoVisualOdometry Maven / Gradle / Ivy

Go to download

BoofCV is an open source Java library for real-time computer vision and robotics applications.

There is a newer version: 1.1.5
Show newest version
/*
 * Copyright (c) 2011-2017, Peter Abeles. All Rights Reserved.
 *
 * This file is part of BoofCV (http://boofcv.org).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package boofcv.abst.sfm.d3;

import boofcv.struct.calib.StereoParameters;
import boofcv.struct.image.ImageBase;
import boofcv.struct.image.ImageType;
import georegression.struct.se.Se3_F64;

/**
 * 

* Stereo visual odometry algorithms that estimate the camera's ego-motion in Euclidean space using a pair of * stereo images. Camera motion is estimated relative to the first frame in the left camera's point of view. *

*

* The following is a set of assumptions and behaviors that all implementations of this interface must follow: *

    *
  • Stereo images must be captured simultaneously
  • *
  • Cameras must have a global shutter
  • *
  • Calibration parameters can be changed at any time, but must be set at least once before processing an image.
  • *
  • If process returns false then the motion could not be estimated and isFault() should be checked
  • *
  • If isFault() is true then the reset() should be called since it can't estimate motion any more
  • *
  • reset() puts back into its initial state
  • *
*

* *

* Optional interfaces are provided for accessing internal features. *

    *
  • {@link boofcv.abst.sfm.AccessPointTracks3D}
  • *
*

* * @author Peter Abeles */ public interface StereoVisualOdometry> extends VisualOdometry { /** * Specifies intrinsic and extrinsic parameters for the stereo camera system. Can be called * at any time, but must be called at least once before {@link #process} can be called. * * @param parameters stereo calibration */ public void setCalibration( StereoParameters parameters ); /** * Process the new image and update the motion estimate. The return value must be checked * to see if the estimate was actually updated. If false is returned then {@link #isFault()} * also needs to be checked to see if the pose estimate has been reset. * * @return true if the motion estimate has been updated and false if not */ public boolean process(T leftImage , T rightImage ); /** * Type of input images it can process. * * @return The image type */ public ImageType getImageType(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy