Search in sources :

Example 1 with ConfigFiducialHammingDetector

use of boofcv.factory.fiducial.ConfigFiducialHammingDetector in project BoofCV by lessthanoptimal.

the class DetectFiducialSquareHammingApp method createDetector.

protected void createDetector(boolean initializing) {
    if (!initializing)
        BoofSwingUtil.checkGuiThread();
    synchronized (lockProcessing) {
        ConfigHammingMarker configMarker = controls.configMarker;
        ConfigFiducialHammingDetector configFid = controls.getDetectorConfig();
        final InputToBinary<GrayF32> binary = FactoryThresholdBinary.threshold(configFid.configThreshold, GrayF32.class);
        final DetectPolygonBinaryGrayRefine<GrayF32> squareDetector = FactoryShapeDetector.polygon(configFid.squareDetector, GrayF32.class);
        detector = new Detector(configMarker, configFid.minimumBlackBorderFraction, binary, squareDetector);
    }
}
Also used : GrayF32(boofcv.struct.image.GrayF32) FactoryShapeDetector(boofcv.factory.shape.FactoryShapeDetector) ConfigFiducialHammingDetector(boofcv.factory.fiducial.ConfigFiducialHammingDetector) ConfigHammingMarker(boofcv.factory.fiducial.ConfigHammingMarker) ConfigFiducialHammingDetector(boofcv.factory.fiducial.ConfigFiducialHammingDetector)

Aggregations

ConfigFiducialHammingDetector (boofcv.factory.fiducial.ConfigFiducialHammingDetector)1 ConfigHammingMarker (boofcv.factory.fiducial.ConfigHammingMarker)1 FactoryShapeDetector (boofcv.factory.shape.FactoryShapeDetector)1 GrayF32 (boofcv.struct.image.GrayF32)1