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

Method init

IPL/src/processes/IPLLoadImage.cpp:22–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "IPLLoadImage.h"
21
22void IPLLoadImage::init()
23{
24 // init
25 _result = NULL;
26 _path = "";
27
28 // basic settings
29 setClassName("IPLLoadImage");
30 setTitle("Load Image");
31 setCategory(IPLProcess::CATEGORY_IO);
32 setIsSource(true);
33
34 setHelpPage("helppage.html");
35
36 // inputs and outputs
37 addOutput("Image", IPL_IMAGE_COLOR);
38
39 // all properties which can later be changed by GUI
40 addProcessPropertyString("path", "File",
41 "*.bmp, *.gif, *.hdr, *.jpg, *.png, *.psd, *.tiff, *.cr2 and many more...",
42 _path, IPL_WIDGET_FILE_OPEN);
43 addProcessPropertyInt("mode", "Mode:Normal|RAW", "normal|raw", 0, IPL_WIDGET_GROUP);
44 addProcessPropertyInt("raw_width", "Width", "", 512, IPL_WIDGET_SLIDER, 1, 4096);
45 addProcessPropertyInt("raw_height", "Height", "", 512, IPL_WIDGET_SLIDER, 1, 4096);
46 addProcessPropertyInt("raw_format", "Pixel format:8 bit (Grayscale)|24 bit (RGB)|24 bit (BGR)|32 bit (RGBA)|32 bit (ABGR)", "", 0, IPL_WIDGET_COMBOBOX);
47 addProcessPropertyInt("raw_interleaved", "Byte Order:Interleaved|Planar",
48 "If you know your files's dimensions and byte order, you can load it as RAW data.",
49 0, IPL_WIDGET_COMBOBOX);
50}
51
52void IPLLoadImage::destroy()
53{

Callers

nothing calls this directly

Calls 5

setClassNameFunction · 0.85
setTitleFunction · 0.85
setCategoryFunction · 0.85
setIsSourceFunction · 0.85
setHelpPageFunction · 0.85

Tested by

no test coverage detected