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

Method init

IPL/src/processes/IPLLaplacian.cpp:22–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "IPLLaplacian.h"
21
22void IPLLaplacian::init()
23{
24 // init
25 _result = NULL;
26
27 // basic settings
28 setClassName("IPLLaplacian");
29 setTitle("Laplacian");
30 setCategory(IPLProcess::CATEGORY_LOCALOPERATIONS);
31 setOpenCVSupport(IPLOpenCVSupport::OPENCV_ONLY);
32 setDescription("");
33
34 // inputs and outputs
35 addInput("Image", IPL_IMAGE_COLOR);
36 addOutput("Magnitude", IPL_IMAGE_GRAYSCALE);
37 addOutput("Edge", IPL_IMAGE_GRAYSCALE);
38 addOutput("Gradient", IPL_IMAGE_GRAYSCALE);
39
40 // properties
41 addProcessPropertyInt("threshold", "Threshold", "", 1, IPL_WIDGET_SLIDER, 1, 255);
42 addProcessPropertyDouble("highThreshold", "High Threshold", "Thresholds for the hysteresis procedure", 0.6, IPL_WIDGET_SLIDER, 0.0, 1.0);
43}
44
45void IPLLaplacian::destroy()
46{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected