| 20 | #include "IPLNormalizeIllumination.h" |
| 21 | |
| 22 | void IPLNormalizeIllumination::init() |
| 23 | { |
| 24 | // init |
| 25 | _result = NULL; |
| 26 | _illumination = NULL; |
| 27 | _cycles = 1; |
| 28 | _factor = 1; |
| 29 | |
| 30 | // basic settings |
| 31 | setClassName("IPLNormalizeIllumination"); |
| 32 | setTitle("Normalize Illumination"); |
| 33 | setCategory(IPLProcess::CATEGORY_LOCALOPERATIONS); |
| 34 | |
| 35 | // inputs and outputs |
| 36 | addInput("Image", IPL_IMAGE_COLOR); |
| 37 | addOutput("Image", IPL_IMAGE_COLOR); |
| 38 | addOutput("Illumination Image", IPL_IMAGE_COLOR); |
| 39 | |
| 40 | // set the openCV support |
| 41 | setOpenCVSupport( IPLOpenCVSupport::OPENCV_ONLY ); |
| 42 | |
| 43 | // properties |
| 44 | addProcessPropertyInt("mean", "Local Average:Mean|Gaussian Mean|Median|Bilateral Filter", "", 0, IPL_WIDGET_RADIOBUTTONS); |
| 45 | addProcessPropertyInt("cycles", "Filter Size (2n+1)", "", 10, IPL_WIDGET_SLIDER, 1, 50); |
| 46 | addProcessPropertyDouble("factor", "Illumination Scale", "", 1.0, IPL_WIDGET_SLIDER, 0.0, 5.0); |
| 47 | } |
| 48 | |
| 49 | void IPLNormalizeIllumination::destroy() |
| 50 | { |
nothing calls this directly
no test coverage detected