| 20 | #include "IPLLaplacian.h" |
| 21 | |
| 22 | void IPLLaplacian::init() |
| 23 | { |
| 24 | // init |
| 25 | _result = NULL; |
| 26 | |
| 27 | // basic settings |
| 28 | setClassName("IPLLaplacian"); |
| 29 | setTitle("Laplacian"); |
| 30 | setCategory(IPLProcess::CATEGORY_LOCALOPERATIONS); |
| 31 | setOpenCVSupport(IPLOpenCVSupport::OPENCV_ONLY); |
| 32 | setDescription(""); |
| 33 | |
| 34 | // inputs and outputs |
| 35 | addInput("Image", IPL_IMAGE_COLOR); |
| 36 | addOutput("Magnitude", IPL_IMAGE_GRAYSCALE); |
| 37 | addOutput("Edge", IPL_IMAGE_GRAYSCALE); |
| 38 | addOutput("Gradient", IPL_IMAGE_GRAYSCALE); |
| 39 | |
| 40 | // properties |
| 41 | addProcessPropertyInt("threshold", "Threshold", "", 1, IPL_WIDGET_SLIDER, 1, 255); |
| 42 | addProcessPropertyDouble("highThreshold", "High Threshold", "Thresholds for the hysteresis procedure", 0.6, IPL_WIDGET_SLIDER, 0.0, 1.0); |
| 43 | } |
| 44 | |
| 45 | void IPLLaplacian::destroy() |
| 46 | { |
nothing calls this directly
no test coverage detected