| 20 | #include "IPLOpticalFlow.h" |
| 21 | |
| 22 | void IPLOpticalFlow::init() |
| 23 | { |
| 24 | // init |
| 25 | _image = NULL; |
| 26 | _previewX = NULL; |
| 27 | _previewY = NULL; |
| 28 | _keypoints = NULL; |
| 29 | |
| 30 | // basic settings |
| 31 | setClassName("IPLOpticalFlow"); |
| 32 | setTitle("Optical Flow"); |
| 33 | setCategory(IPLProcess::CATEGORY_OBJECTS); |
| 34 | setOpenCVSupport(IPLOpenCVSupport::OPENCV_ONLY); |
| 35 | |
| 36 | // inputs and outputs |
| 37 | addInput("Image", IPL_IMAGE_COLOR); |
| 38 | addOutput("Preview", IPL_IMAGE_COLOR); |
| 39 | addOutput("KeyPoints", IPL_KEYPOINTS); |
| 40 | |
| 41 | // properties |
| 42 | addProcessPropertyInt("algorithm", "Algorithm:FAST|MSER|ORB|BRISK|FREAK", "", 0, IPL_WIDGET_COMBOBOX); |
| 43 | addProcessPropertyDouble("threshold", "Threshold", "", 0.0, IPL_WIDGET_SLIDER, 0.0, 1.0); |
| 44 | addProcessPropertyBool("nonmaxSuppression", "Non Maxima Suppression", "", false); |
| 45 | } |
| 46 | |
| 47 | void IPLOpticalFlow::destroy() |
| 48 | { |
nothing calls this directly
no test coverage detected