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

Method init

IPL/src/processes/IPLGradientOperator.cpp:27–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include <iostream>
26
27void IPLGradientOperator::init()
28{
29 // init
30 _result = NULL;
31 _magnitude = NULL;
32 _phase = NULL;
33
34 // basic settings
35 setClassName("IPLGradientOperator");
36 setTitle("Gradient Operator");
37 setCategory(IPLProcess::CATEGORY_GRADIENTS);
38 setKeywords("Fast Gradient, Roberts, Sobel, Cubic Spline");
39
40 // inputs and outputs
41 addInput("Image", IPL_IMAGE_GRAYSCALE);
42 addOutput("Oriented Image", IPL_IMAGE_ORIENTED);
43 addOutput("Magnitude", IPL_IMAGE_GRAYSCALE);
44 addOutput("Phase", IPL_IMAGE_GRAYSCALE);
45
46 // set the openCV support
47 setOpenCVSupport( IPLOpenCVSupport::OPENCV_ONLY );
48
49 // properties
50 addProcessPropertyInt("algorithm", "Algorithm:Fast Gradient|Roberts|Sobel|Cubic Spline", "", 0, IPL_WIDGET_RADIOBUTTONS);
51}
52
53void IPLGradientOperator::destroy()
54{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected