boofcv.abst.filter.binary
Class GlobalOtsuBinaryFilter<T extends ImageGray>
- java.lang.Object
-
- boofcv.abst.filter.binary.GlobalOtsuBinaryFilter<T>
-
- All Implemented Interfaces:
- InputToBinary<T>, FilterImageInterface<T,GrayU8>
public class GlobalOtsuBinaryFilter<T extends ImageGray> extends java.lang.Object implements InputToBinary<T>
Computes a threshold using Otsu's equation.
-
-
Constructor Summary
Constructors Constructor and Description GlobalOtsuBinaryFilter(int minValue, int maxValue, boolean down, ImageType<T> inputType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetHorizontalBorder()How many pixels are not processed along the horizontal border.ImageType<T>getInputType()Specifies the input image typeImageType<GrayU8>getOutputType()Specifies the output image typeintgetVerticalBorder()How many pixels are not processed along the vertical border.voidprocess(T input, GrayU8 output)Processes the input image and writes the results to the output image.
-
-
-
Constructor Detail
-
Method Detail
-
process
public void process(T input, GrayU8 output)
Description copied from interface:FilterImageInterfaceProcesses the input image and writes the results to the output image.- Specified by:
processin interfaceFilterImageInterface<T extends ImageGray,GrayU8>- Parameters:
input- Input image.output- Output image.
-
getHorizontalBorder
public int getHorizontalBorder()
Description copied from interface:FilterImageInterfaceHow many pixels are not processed along the horizontal border.- Specified by:
getHorizontalBorderin interfaceFilterImageInterface<T extends ImageGray,GrayU8>- Returns:
- Border size in pixels.
-
getVerticalBorder
public int getVerticalBorder()
Description copied from interface:FilterImageInterfaceHow many pixels are not processed along the vertical border.- Specified by:
getVerticalBorderin interfaceFilterImageInterface<T extends ImageGray,GrayU8>- Returns:
- Border size in pixels.
-
getInputType
public ImageType<T> getInputType()
Description copied from interface:FilterImageInterfaceSpecifies the input image type- Specified by:
getInputTypein interfaceFilterImageInterface<T extends ImageGray,GrayU8>- Returns:
- Input image type.
-
getOutputType
public ImageType<GrayU8> getOutputType()
Description copied from interface:FilterImageInterfaceSpecifies the output image type- Specified by:
getOutputTypein interfaceFilterImageInterface<T extends ImageGray,GrayU8>- Returns:
- Output image type.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG