boofcv.abst.disparity.StereoDisparitySparse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boofcv-ip-multiview Show documentation
Show all versions of boofcv-ip-multiview Show documentation
BoofCV is an open source Java library for real-time computer vision and robotics applications.
/*
* Copyright (c) 2023, 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.disparity;
import boofcv.struct.image.ImageGray;
/**
*
* Computes the disparity between two rectified images at specified points only.
*
*
*
* NOTE: Unlike for dense images, the returned disparity is the actual disparity. No need to add minDisparity
* to the returned value.
*
*
* @see StereoDisparity
*/
public interface StereoDisparitySparse {
/**
* Sets the input images that are to be processed.
*
* @param imageLeft Input left rectified image.
* @param imageRight Input right rectified image.
*/
void setImages( Image imageLeft, Image imageRight );
/**
* Calculates the disparity at the specified point. Returns true if a valid
* correspondence was found between the two images.
*
* @param x center of region x-axis
* @param y center of region y-axis
* @return true if a correspondence was found
*/
boolean process( int x, int y );
/**
* The found disparity at the selected point
*
* @return disparity.
*/
double getDisparity();
/**
* Border around the image's x-axis which is not processed.
*
* @return border x-axis
*/
int getBorderX();
/**
* Border around the image's y-axis which is not processed.
*
* @return border y-axis
*/
int getBorderY();
/**
* The minimum disparity which will be checked for.
*
* @return Minimum disparity.
*/
int getMinDisparity();
/**
* The maximum disparity which will be checked for.
*
* @return Maximum disparity.
*/
int getMaxDisparity();
/**
* Type of input images it can process
*
* @return Input image type
*/
Class getInputType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy