Package boofcv.factory.filter.derivative
Class FactoryDerivative
- java.lang.Object
-
- boofcv.factory.filter.derivative.FactoryDerivative
-
public class FactoryDerivative extends java.lang.ObjectFactory for creating different types of
ImageGradient, which are used to compute the image's derivative.
-
-
Constructor Summary
Constructors Constructor Description FactoryDerivative()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
ImageGradient<I,D>gaussian(double sigma, int radius, java.lang.Class<I> inputType, java.lang.Class<D> derivType)static <I extends boofcv.struct.image.ImageBase<I>,D extends boofcv.struct.image.ImageBase<D>>
ImageGradient<I,D>gradient(DerivativeType type, boofcv.struct.image.ImageType<I> inputType, boofcv.struct.image.ImageType<D> derivType)Creates aImageGradientfor an arbitrary image type.static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
ImageGradient<boofcv.struct.image.Planar<I>,boofcv.struct.image.Planar<D>>gradientPL(DerivativeType type, int numBands, java.lang.Class<I> inputType, java.lang.Class<D> derivType)Returns the gradient filter for planar images of the specified type.static <I extends boofcv.struct.image.ImageMultiBand<I>,M extends boofcv.struct.image.ImageMultiBand<M>,D extends boofcv.struct.image.ImageGray<D>>
ImageGradient<I,D>gradientReduce(ImageGradient<I,M> gradient, DerivativeReduceType type, java.lang.Class<D> outputType)Computes the image gradient inside a multi-band image then reduces the output to a single band before returning the resultsstatic <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
ImageGradient<I,D>gradientSB(DerivativeType type, java.lang.Class<I> inputType, java.lang.Class<D> derivType)Returns the gradient filter for single band images of the specified type.static <D extends boofcv.struct.image.ImageGray<D>>
ImageHessian<D>hessian(java.lang.Class<?> gradientType, java.lang.Class<D> derivType)static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
ImageHessianDirect<I,D>hessianDirectSobel(java.lang.Class<I> inputType, java.lang.Class<D> derivType)static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
ImageHessianDirect<I,D>hessianDirectThree(java.lang.Class<I> inputType, java.lang.Class<D> derivType)static <D extends boofcv.struct.image.ImageGray<D>>
ImageHessian<D>hessianPrewitt(java.lang.Class<D> derivType)static <D extends boofcv.struct.image.ImageGray<D>>
ImageHessian<D>hessianSobel(java.lang.Class<D> derivType)static <D extends boofcv.struct.image.ImageGray<D>>
ImageHessian<D>hessianThree(java.lang.Class<D> derivType)static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
ImageGradient<I,D>prewitt(java.lang.Class<I> inputType, java.lang.Class<D> derivType)static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
ImageGradient<I,D>sobel(java.lang.Class<I> inputType, java.lang.Class<D> derivType)static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
ImageGradient<I,D>three(java.lang.Class<I> inputType, java.lang.Class<D> derivType)static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
ImageGradient<I,D>two0(java.lang.Class<I> inputType, java.lang.Class<D> derivType)static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
ImageGradient<I,D>two1(java.lang.Class<I> inputType, java.lang.Class<D> derivType)
-
-
-
Method Detail
-
gradientReduce
public static <I extends boofcv.struct.image.ImageMultiBand<I>,M extends boofcv.struct.image.ImageMultiBand<M>,D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,D> gradientReduce(ImageGradient<I,M> gradient, DerivativeReduceType type, java.lang.Class<D> outputType)
Computes the image gradient inside a multi-band image then reduces the output to a single band before returning the results- Type Parameters:
I- Input typeM- Intermediate typeD- Output type- Parameters:
gradient- Computes the multi-band image gradienttype- Specifies which method is to be used to reduce the output into single band imageoutputType- Type of output image- Returns:
- Gradient
-
gradientSB
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,D> gradientSB(DerivativeType type, java.lang.Class<I> inputType, java.lang.Class<D> derivType)
Returns the gradient filter for single band images of the specified type. The border will be handled using the approach specified byBoofDefaults.DERIV_BORDER_TYPE- Type Parameters:
I- Input imageD- Derivative image- Parameters:
type- Type of gradientinputType- Type of input imagederivType- Type of gradient image. null for default- Returns:
- gradient filter
-
gradientPL
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> ImageGradient<boofcv.struct.image.Planar<I>,boofcv.struct.image.Planar<D>> gradientPL(DerivativeType type, int numBands, java.lang.Class<I> inputType, java.lang.Class<D> derivType)
Returns the gradient filter for planar images of the specified type. The border will be handled using the approach specified byBoofDefaults.DERIV_BORDER_TYPE- Type Parameters:
I- Image typeD- Derivative type- Parameters:
type- Which gradient to computenumBands- Number of bands in the imageinputType- Type of data on inputderivType- Type of data on output (null for default)- Returns:
- the filter
-
gradient
public static <I extends boofcv.struct.image.ImageBase<I>,D extends boofcv.struct.image.ImageBase<D>> ImageGradient<I,D> gradient(DerivativeType type, boofcv.struct.image.ImageType<I> inputType, boofcv.struct.image.ImageType<D> derivType)
Creates aImageGradientfor an arbitrary image type. The border will be handled using the approach specified byBoofDefaults.DERIV_BORDER_TYPE- Type Parameters:
I- Image typeD- Derivative type- Parameters:
type- Which gradient to computeinputType- Type of data on inputderivType- Type of data on output (null for default)
-
prewitt
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,D> prewitt(java.lang.Class<I> inputType, java.lang.Class<D> derivType)
-
sobel
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,D> sobel(java.lang.Class<I> inputType, java.lang.Class<D> derivType)
-
three
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,D> three(java.lang.Class<I> inputType, java.lang.Class<D> derivType)
-
two0
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,D> two0(java.lang.Class<I> inputType, java.lang.Class<D> derivType)
-
two1
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,D> two1(java.lang.Class<I> inputType, java.lang.Class<D> derivType)
-
hessianDirectThree
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> ImageHessianDirect<I,D> hessianDirectThree(java.lang.Class<I> inputType, java.lang.Class<D> derivType)
-
hessianDirectSobel
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> ImageHessianDirect<I,D> hessianDirectSobel(java.lang.Class<I> inputType, java.lang.Class<D> derivType)
-
hessian
public static <D extends boofcv.struct.image.ImageGray<D>> ImageHessian<D> hessian(java.lang.Class<?> gradientType, java.lang.Class<D> derivType)
-
gaussian
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,D> gaussian(double sigma, int radius, java.lang.Class<I> inputType, java.lang.Class<D> derivType)
-
hessianSobel
public static <D extends boofcv.struct.image.ImageGray<D>> ImageHessian<D> hessianSobel(java.lang.Class<D> derivType)
-
hessianPrewitt
public static <D extends boofcv.struct.image.ImageGray<D>> ImageHessian<D> hessianPrewitt(java.lang.Class<D> derivType)
-
hessianThree
public static <D extends boofcv.struct.image.ImageGray<D>> ImageHessian<D> hessianThree(java.lang.Class<D> derivType)
-
-