MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / init

Method init

IPL/src/processes/IPLNormalizeIllumination.cpp:22–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "IPLNormalizeIllumination.h"
21
22void 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
49void IPLNormalizeIllumination::destroy()
50{

Callers

nothing calls this directly

Calls 4

setClassNameFunction · 0.85
setTitleFunction · 0.85
setCategoryFunction · 0.85
setOpenCVSupportFunction · 0.85

Tested by

no test coverage detected