Search in sources :

Example 1 with InputToBinary

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);
}
Also used : InputToBinary(boofcv.abst.filter.binary.InputToBinary)

Example 2 with InputToBinary

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);
}
Also used : InputToBinary(boofcv.abst.filter.binary.InputToBinary)

Example 3 with InputToBinary

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);
}
Also used : InputToBinary(boofcv.abst.filter.binary.InputToBinary)

Example 4 with InputToBinary

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);
}
Also used : InputToBinary(boofcv.abst.filter.binary.InputToBinary)

Example 5 with InputToBinary

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();
    });
}
Also used : ConfigThreshold(boofcv.factory.filter.binary.ConfigThreshold) InputToBinary(boofcv.abst.filter.binary.InputToBinary)

Aggregations

InputToBinary (boofcv.abst.filter.binary.InputToBinary)5 ConfigThreshold (boofcv.factory.filter.binary.ConfigThreshold)1