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);
}
}
Aggregations