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

Method init

IPL/src/processes/IPLMarkImage.cpp:22–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "IPLMarkImage.h"
21
22void IPLMarkImage::init()
23{
24 // init
25 _result = NULL;
26
27 // basic settings
28 setClassName("IPLMarkImage");
29 setTitle("Mark Range");
30 setCategory(IPLProcess::CATEGORY_POINTOPERATIONS);
31 setDescription("Mark a level range in the image histogram with a selected color. The background"
32 "may be cleared or it may retain the original image. The resulting"
33 "image is a color image and has to be converted if used as a mask.");
34
35 // inputs and outputs
36 addInput("Grayscale Image", IPL_IMAGE_GRAYSCALE);
37 addOutput("Image", IPL_IMAGE_COLOR);
38
39 // properties
40 addProcessPropertyDouble("min", "Min", "", 0.4, IPL_WIDGET_SLIDER, 0.0, 1.0);
41 addProcessPropertyDouble("max", "Max", "", 0.6, IPL_WIDGET_SLIDER, 0.0, 1.0);
42 addProcessPropertyInt("mode", "Mode:Show Background|Mask Only", "", 0, IPL_WIDGET_COMBOBOX);
43 addProcessPropertyColor("color", "Color", "", IPLColor(1.0,0.0,0.0), IPL_WIDGET_COLOR_RGB);
44 addProcessPropertyBool("invert", "Invert Mask", "", false, IPL_WIDGET_CHECKBOXES);
45}
46
47void IPLMarkImage::destroy()
48{

Callers

nothing calls this directly

Calls 5

setClassNameFunction · 0.85
setTitleFunction · 0.85
setCategoryFunction · 0.85
setDescriptionFunction · 0.85
IPLColorClass · 0.85

Tested by

no test coverage detected