Package boofcv.factory.transform.census
Class FactoryCensusTransform
- java.lang.Object
-
- boofcv.factory.transform.census.FactoryCensusTransform
-
public class FactoryCensusTransform extends java.lang.ObjectFactory for creating different types of census transforms
-
-
Field Summary
Fields Modifier and Type Field Description static boofcv.struct.border.BorderTypeCENSUS_BORDERFor SGM it's important that you don't use a constant value border.
-
Constructor Summary
Constructors Constructor Description FactoryCensusTransform()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <In extends boofcv.struct.image.ImageGray<In>,Out extends boofcv.struct.image.ImageBase<Out>>
FilterCensusTransform<In,Out>blockDense(int radius, boolean border, java.lang.Class<In> imageType)Samples a dense square blockstatic <In extends boofcv.struct.image.ImageGray<In>,Out extends boofcv.struct.image.ImageBase<Out>>
FilterCensusTransform<In,Out>blockDense(int radiusX, int radiusY, boolean border, java.lang.Class<In> imageType)static <In extends boofcv.struct.image.ImageGray<In>,Out extends boofcv.struct.image.ImageBase<Out>>
FilterCensusTransform<In,Out>variant(CensusVariants type, boolean border, java.lang.Class<In> imageType)
-
-
-
Field Detail
-
CENSUS_BORDER
public static boofcv.struct.border.BorderType CENSUS_BORDER
For SGM it's important that you don't use a constant value border. If it's say zero, it will always perfectly match the pixels outside the border in the right image, giving it a lower cost. That lower cost will bias the error making it more likely to select border pixel.
-
-
Method Detail
-
variant
public static <In extends boofcv.struct.image.ImageGray<In>,Out extends boofcv.struct.image.ImageBase<Out>> FilterCensusTransform<In,Out> variant(CensusVariants type, boolean border, java.lang.Class<In> imageType)
-
blockDense
public static <In extends boofcv.struct.image.ImageGray<In>,Out extends boofcv.struct.image.ImageBase<Out>> FilterCensusTransform<In,Out> blockDense(int radius, boolean border, java.lang.Class<In> imageType)
Samples a dense square block- Type Parameters:
In- Input imageOut- Output image- Parameters:
radius- Radius of the block. Width = 2*radius+1border- If true then it will process the image borderimageType- Type of input image- Returns:
- Census Transform
-
blockDense
public static <In extends boofcv.struct.image.ImageGray<In>,Out extends boofcv.struct.image.ImageBase<Out>> FilterCensusTransform<In,Out> blockDense(int radiusX, int radiusY, boolean border, java.lang.Class<In> imageType)
-
-