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

Method init

IPL/src/processes/IPLArithmeticOperations.cpp:36–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#define Arithmetic_Atan2(A,B) atan2(A,B);
35
36void IPLArithmeticOperations::init()
37{
38 // init
39 _result = NULL;
40 _inputA = NULL;
41 _inputB = NULL;
42 _operation = 0;
43
44 // basic settings
45 setClassName("IPLArithmeticOperations");
46 setTitle("Arithmetic Operations");
47 setCategory(IPLProcess::CATEGORY_ARITHMETIC);
48 setDescription("Performs arithmetic operations based on two input images.");
49 setKeywords("add, substract, multiply, divide, minimum, maximum, and, or, xor, exclusive or, not, atan, arcus tangens");
50
51 // inputs and outputs
52 addInput("Image A", IPL_IMAGE_COLOR);
53 addInput("Image B", IPL_IMAGE_COLOR);
54 addOutput("Image", IPL_IMAGE_COLOR);
55
56 // properties
57 addProcessPropertyInt("operation", "Operation:ADD|SUB|MUL|DIV|MIN|MAX|AND|OR|XOR|NOT|ATAN2",
58 "Boolean operations need binary images as input", 0, IPL_WIDGET_RADIOBUTTONS);
59}
60
61void IPLArithmeticOperations::destroy()
62{

Callers

nothing calls this directly

Calls 5

setClassNameFunction · 0.85
setTitleFunction · 0.85
setCategoryFunction · 0.85
setDescriptionFunction · 0.85
setKeywordsFunction · 0.85

Tested by

no test coverage detected