| 20 | #include "IPLMarkImage.h" |
| 21 | |
| 22 | void IPLMarkImage::init() |
| 23 | { |
| 24 | // init |
| 25 | _result = NULL; |
| 26 | |
| 27 | // basic settings |
| 28 | setClassName("IPLMarkImage"); |
| 29 | setTitle("Mark Range"); |
| 30 | setCategory(IPLProcess::CATEGORY_POINTOPERATIONS); |
| 31 | setDescription("Mark a level range in the image histogram with a selected color. The background" |
| 32 | "may be cleared or it may retain the original image. The resulting" |
| 33 | "image is a color image and has to be converted if used as a mask."); |
| 34 | |
| 35 | // inputs and outputs |
| 36 | addInput("Grayscale Image", IPL_IMAGE_GRAYSCALE); |
| 37 | addOutput("Image", IPL_IMAGE_COLOR); |
| 38 | |
| 39 | // properties |
| 40 | addProcessPropertyDouble("min", "Min", "", 0.4, IPL_WIDGET_SLIDER, 0.0, 1.0); |
| 41 | addProcessPropertyDouble("max", "Max", "", 0.6, IPL_WIDGET_SLIDER, 0.0, 1.0); |
| 42 | addProcessPropertyInt("mode", "Mode:Show Background|Mask Only", "", 0, IPL_WIDGET_COMBOBOX); |
| 43 | addProcessPropertyColor("color", "Color", "", IPLColor(1.0,0.0,0.0), IPL_WIDGET_COLOR_RGB); |
| 44 | addProcessPropertyBool("invert", "Invert Mask", "", false, IPL_WIDGET_CHECKBOXES); |
| 45 | } |
| 46 | |
| 47 | void IPLMarkImage::destroy() |
| 48 | { |
nothing calls this directly
no test coverage detected