SqueezeBrains SDK 1.18
cs_roi.h
1#pragma once
2namespace sb_cs
3{
17 public ref class SbRoi: SbCommon
18 {
19 public:
22
34 static SbRoi^ Create(int width, int height);
35
48 static SbRoi^ CreateHeader(int width, int height, int width_step);
49
56 SbError SetData(IntPtr data);
57
68
75
85
94 SbError SetRect(int gl, SbRect^ rect, bool reset_roi);
95
106 SbError SetCircle(int gl, int center_x, int center_y, int radius, bool reset_roi);
107
119 SbError SetEllipse(int gl, int center_x, int center_y, int radius_x, int radius_y, bool reset_roi);
120
134 SbError SetCircularCrown(int gl, int center_x, int center_y, int radius_min, int radius_max, int start_angle, int end_angle, bool reset_roi);
135
144 SbError Plot(SbImage ^img, array<unsigned char>^ lut, SbRgba color);
145
152 SbError ApplyLut(array<unsigned char>^ lut);
158 internal:
159 ~SbRoi();
160 SbRoi();
161 sb_t_roi *sb_roi;
162 }; // group_cs_roi // group_cs
165}
166
167
Common class
Definition: cs_common.h:242
SbImage class that wraps the sb_t_image structure. You must call the Dispose() method to free all the...
Definition: cs_image.h:66
Rectangle class that wraps the sb_t_rect structure
Definition: cs_sb.h:214
rgba class that wraps the sb_t_rgba structure
Definition: cs_sb.h:48
ROI Class that wraps the sb_t_roi structure. You must call the Dispose() method to free all the resou...
Definition: cs_roi.h:18
SbError SetCircularCrown(int gl, int center_x, int center_y, int radius_min, int radius_max, int start_angle, int end_angle, bool reset_roi)
Sets an angular circular crown ROI.
SbError SetEllipse(int gl, int center_x, int center_y, int radius_x, int radius_y, bool reset_roi)
Sets an elliptical ROI.
SbError Plot(SbImage ^img, array< unsigned char >^ lut, SbRgba color)
Draws the roi on the image
SbError ApplyLut(array< unsigned char >^ lut)
Apply the gray level lut to the roi image
SbRect BoundingBox()
Bounding box of the roi.
SbRgba Color()
Color RGBA of the roi (Not used for defects roi)
SbError Compress()
Compresses the ROI
static SbRoi Create(int width, int height)
Creates a ROI.
SbError SetData(IntPtr data)
Sets the pointer of the ROI data into the ROI.
SbError SetRect(int gl, SbRect^ rect, bool reset_roi)
Sets a rectangular ROI.
SbRoi Clone()
Clone a ROI
SbError SetCircle(int gl, int center_x, int center_y, int radius, bool reset_roi)
Sets a circular ROI.
SbError Reset()
Resets the ROI. The function does the following operation :
static SbRoi CreateHeader(int width, int height, int width_step)
Creates a ROI but doesn't allocate memory for the data.
SbImage img()
Image associated to the roi
SbError
Enum error codes
Definition: cs_common.h:13
SB Namespace
Definition: cs_common.h:3
Defines a roi.
Definition: sb.h:8520