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