use of boofcv.abst.filter.binary.InputToBinary in project BoofCV by lessthanoptimal.
the class TestDetectPolygonFromContour method renderPolygons.
@Override
public void renderPolygons(List<Polygon2D_F64> polygons, Class imageType) {
super.renderPolygons(polygons, imageType);
InputToBinary inputToBinary = FactoryThresholdBinary.globalFixed(100, true, imageType);
binary.reshape(width, height);
inputToBinary.process(image, binary);
}
use of boofcv.abst.filter.binary.InputToBinary in project BoofCV by lessthanoptimal.
the class TestDetectPolygonBinaryGrayRefine method renderPolygons.
@Override
public void renderPolygons(List<Polygon2D_F64> polygons, Class imageType) {
super.renderPolygons(polygons, imageType);
InputToBinary inputToBinary = FactoryThresholdBinary.globalFixed(100, true, imageType);
binary.reshape(width, height);
inputToBinary.process(image, binary);
}
use of boofcv.abst.filter.binary.InputToBinary in project BoofCV by lessthanoptimal.
the class TestDetectPolygonBinaryGrayRefine method renderDistortedRectangles.
@Override
public void renderDistortedRectangles(boolean black, Class imageType) {
super.renderDistortedRectangles(black, imageType);
InputToBinary inputToBinary = FactoryThresholdBinary.globalFixed(100, true, imageType);
binary.reshape(width, height);
inputToBinary.process(image, binary);
}
use of boofcv.abst.filter.binary.InputToBinary in project BoofCV by lessthanoptimal.
the class TestDetectPolygonFromContour method renderDistortedRectangles.
@Override
public void renderDistortedRectangles(boolean black, Class imageType) {
super.renderDistortedRectangles(black, imageType);
InputToBinary inputToBinary = FactoryThresholdBinary.globalFixed(100, true, imageType);
binary.reshape(width, height);
inputToBinary.process(image, binary);
}
use of boofcv.abst.filter.binary.InputToBinary in project BoofCV by lessthanoptimal.
the class DemoImageThresholdingApp method processImage.
@Override
public void processImage(int sourceID, long frameID, BufferedImage buffered, ImageBase input) {
inputCopy = ConvertBufferedImage.checkCopy(buffered, inputCopy);
ConfigThreshold config = controlPanel.threshold.createConfig();
InputToBinary inputToBinary = FactoryThresholdBinary.threshold(config, input.imageType.getImageClass());
inputToBinary.process(input, imageBinary);
VisualizeBinaryData.renderBinary(imageBinary, false, visualizedBinary);
SwingUtilities.invokeLater(() -> {
controlPanel.threshold.updateHistogram((ImageGray) input);
changeView();
});
}
Aggregations