| 25 | #include <iostream> |
| 26 | |
| 27 | void IPLGradientOperator::init() |
| 28 | { |
| 29 | // init |
| 30 | _result = NULL; |
| 31 | _magnitude = NULL; |
| 32 | _phase = NULL; |
| 33 | |
| 34 | // basic settings |
| 35 | setClassName("IPLGradientOperator"); |
| 36 | setTitle("Gradient Operator"); |
| 37 | setCategory(IPLProcess::CATEGORY_GRADIENTS); |
| 38 | setKeywords("Fast Gradient, Roberts, Sobel, Cubic Spline"); |
| 39 | |
| 40 | // inputs and outputs |
| 41 | addInput("Image", IPL_IMAGE_GRAYSCALE); |
| 42 | addOutput("Oriented Image", IPL_IMAGE_ORIENTED); |
| 43 | addOutput("Magnitude", IPL_IMAGE_GRAYSCALE); |
| 44 | addOutput("Phase", IPL_IMAGE_GRAYSCALE); |
| 45 | |
| 46 | // set the openCV support |
| 47 | setOpenCVSupport( IPLOpenCVSupport::OPENCV_ONLY ); |
| 48 | |
| 49 | // properties |
| 50 | addProcessPropertyInt("algorithm", "Algorithm:Fast Gradient|Roberts|Sobel|Cubic Spline", "", 0, IPL_WIDGET_RADIOBUTTONS); |
| 51 | } |
| 52 | |
| 53 | void IPLGradientOperator::destroy() |
| 54 | { |
nothing calls this directly
no test coverage detected