SqueezeBrains SDK 1.13
cs_blob.h
1#pragma once
5namespace sb_cs
6{
19 public enum class SbPixelConnection :int {
22 };
23
27 public enum class SbBlobDistanceMode :int {
29 SB_BLOB_DISTANCE_MODE_CONTOUR = SB_BLOB_DISTANCE_MODE_CONTOUR //|< The distance between blobs is calculated using the contour.
30 };
31
35 public enum class SbBlobDeleted :int {
39 };
40
44 public ref class SbBlobPar {
45 public:
46 array<unsigned char>^ lut;
74 internal:
75 SbBlobPar(const sb_t_blob_par* const src);
76 SbError CopyFromNative(const sb_t_blob_par* const src);
77 SbError CopyToNative(sb_t_blob_par* dst);
78 };
79
83 public ref class SbBlob {
84 public:
86 int area;
87 int od;
88 int lut;
90 String^ model_name;
104 array<SbPoint^>^ contour;
109 float angle;
114 array<SbPoint2dF^>^ coord_min_rot_rect;
119 float m_xx;
124 float m_yy;
130 float m_xy;
131 internal:
132 SbBlob(const sb_t_blob* const src);
133 SbError CopyFromNative(const sb_t_blob* const src);
134 };
135 // group_cs_blob // group_cs
138}
Blob class that wraps the sb_t_blob structure
Definition: cs_blob.h:83
int area
Area of the blob, number of the pixel.
Definition: cs_blob.h:86
float m_xy
Moment of inertia about the x and y axes.
Definition: cs_blob.h:130
int lut
Value of the lut.
Definition: cs_blob.h:88
SbTruth truth
Truth value of the blob.
Definition: cs_blob.h:91
String model_name
Model name of the blob.
Definition: cs_blob.h:90
SbPoint2dF bar
blob baricenter.
Definition: cs_blob.h:85
int od
Optical density.
Definition: cs_blob.h:87
SbRect rect
Bounding box of the blob.
Definition: cs_blob.h:89
SbBlobDeleted deleted
Blob is marked as deleted.
Definition: cs_blob.h:99
float angle
Rotation angle of the smaller rotated rectangle.
Definition: cs_blob.h:109
array< SbPoint2dF^> coord_min_rot_rect
Coordinates of the vertices of the smaller rotated rectangle.
Definition: cs_blob.h:114
float m_xx
Moment of inertia about the x axis.
Definition: cs_blob.h:119
float m_yy
Moment of inertia about the y axis.
Definition: cs_blob.h:124
array< SbPoint^> contour
Array of the points of the contour.
Definition: cs_blob.h:104
Blob analysis parameters Class that wraps the structure sb_t_blob_par
Definition: cs_blob.h:44
int blob_rle
Set to a value != 0 if you want the rle of the shape each blob.
Definition: cs_blob.h:51
int blob_min_rot_rect
For each blob it enables the calculation of the smaller rotated rectangle containing the blob.
Definition: cs_blob.h:57
SbBlobDistanceMode blob_distance_mode
Selection of the algorithm for calculating the distance between blobs.
Definition: cs_blob.h:62
int merge_distance
blobs with a distance inferior or equal to the value are merged together.
Definition: cs_blob.h:68
SbRange merge_width
Range of weight after merge, value in pixel.
Definition: cs_blob.h:71
int keep_deleted
If different than 0, deleted blobs are kept in the list and marked as deleted.
Definition: cs_blob.h:72
SbPixelConnection connection_type
Pixel connection type.
Definition: cs_blob.h:50
SbRange height
Range of height, value in pixel.
Definition: cs_blob.h:48
int blob_contour
Set to a value != 0 if you want the contour of each blob.
Definition: cs_blob.h:52
int verbosity
Verbosity level.
Definition: cs_blob.h:73
SbRange width
Range of weight, value in pixel.
Definition: cs_blob.h:49
SbRange merge_area
Range of area after merge, value in pixel.
Definition: cs_blob.h:69
SbRange area
Range of area, value in pixel.
Definition: cs_blob.h:47
SbRange merge_height
Range of height after merge, value in pixel.
Definition: cs_blob.h:70
Point class that wraps the sb_t_point2d_f structure
Definition: cs_sb.h:202
Range value class that wraps the sb_t_range structure
Definition: cs_sb.h:136
Rectangle class that wraps the sb_t_rect structure
Definition: cs_sb.h:224
@ SB_BLOB_DISTANCE_MODE_CONTOUR
The distance between blobs is calculated using the contour.
Definition: sb.h:8556
SbPixelConnection
Pixel connection type that wraps the sb_t_pixel_connection enum
Definition: cs_blob.h:19
SbBlobDistanceMode
Blobs distance algorithm that wraps the sb_t_blob_distance_mode enum
Definition: cs_blob.h:27
SbBlobDeleted
Blob deleted status that wraps the sb_t_blob_deleted enum
Definition: cs_blob.h:35
@ SB_PIXEL_CONNECTION_8
8 connection
@ SB_PIXEL_CONNECTION_4
4 connection
@ SB_BLOB_DISTANCE_MODE_BOUNDING_BOX
The distance between blobs is calculated using the unrotated bounding box.
@ SB_BLOB_DELETED_AFTER_MERGE
Blob is deleted after merge.
@ SB_BLOB_OK
Blob is not deleted.
@ SB_BLOB_DELETED_BEFORE_MERGE
Blob is deleted before merge.
SbError
Enum error codes
Definition: cs_common.h:13
SbTruth
Sample truth values that wraps the sb_t_truth enum
Definition: cs_sample.h:19
SB Namespace
Definition: cs_common.h:3
Defines the parameters for blob analysis.
Definition: sb.h:8563
Defines a blob.
Definition: sb.h:8651