Search in sources :

Example 1 with ConfigHarrisCorner

use of boofcv.abst.feature.detect.interest.ConfigHarrisCorner in project BoofCV by lessthanoptimal.

the class IntensityPointFeatureApp method handleAlgorithmChanged.

private void handleAlgorithmChanged() {
    ConfigGeneralDetector config = new ConfigGeneralDetector();
    config.radius = controlPanel.radiusNonMax;
    config.maxFeatures = controlPanel.maxFeatures;
    synchronized (lockAlgorithm) {
        switch(controlPanel.selected) {
            case "Laplacian":
                config.detectMinimums = true;
                detector = FactoryDetectPoint.createHessianDeriv(config, HessianBlobIntensity.Type.TRACE, derivType);
                break;
            case "Hessian Det":
                config.detectMinimums = true;
                detector = FactoryDetectPoint.createHessianDeriv(config, HessianBlobIntensity.Type.DETERMINANT, derivType);
                break;
            case "Harris":
                detector = FactoryDetectPoint.createHarris(config, new ConfigHarrisCorner(controlPanel.weighted, controlPanel.radiusCorner), derivType);
                break;
            case "Shi Tomasi":
                detector = FactoryDetectPoint.createShiTomasi(config, new ConfigShiTomasi(controlPanel.weighted, controlPanel.radiusCorner), derivType);
                break;
            case "FAST":
                config.detectMinimums = true;
                detector = FactoryDetectPoint.createFast(config, null, imageType);
                break;
            case "KitRos":
                detector = FactoryDetectPoint.createKitRos(config, derivType);
                break;
            case "Median":
                detector = FactoryDetectPoint.createMedian(config, imageType);
                break;
            default:
                throw new RuntimeException("Unknown exception");
        }
    }
    if (controlPanel.blurSigma > 0) {
        blurFilter = FactoryBlurFilter.gaussian(imageType, controlPanel.blurSigma, -1);
    } else {
        blurFilter = null;
    }
    reprocessImageOnly();
}
Also used : ConfigHarrisCorner(boofcv.abst.feature.detect.interest.ConfigHarrisCorner) ConfigShiTomasi(boofcv.abst.feature.detect.interest.ConfigShiTomasi) ConfigGeneralDetector(boofcv.abst.feature.detect.interest.ConfigGeneralDetector)

Aggregations

ConfigGeneralDetector (boofcv.abst.feature.detect.interest.ConfigGeneralDetector)1 ConfigHarrisCorner (boofcv.abst.feature.detect.interest.ConfigHarrisCorner)1 ConfigShiTomasi (boofcv.abst.feature.detect.interest.ConfigShiTomasi)1