| 34 | #define Arithmetic_Atan2(A,B) atan2(A,B); |
| 35 | |
| 36 | void 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 | |
| 61 | void IPLArithmeticOperations::destroy() |
| 62 | { |
nothing calls this directly
no test coverage detected