SqueezeBrains SDK 1.13
cs_sample.h
1#pragma once
5namespace sb_cs
6{
19 public enum class SbTruth :int {
24
30
42
48
54
60
66
73
78 };
79
83 public enum class SbSampleClassifyMode
84 {
89
97 };
98
102 public enum class SbObjType :int {
105 };
106
110 public ref class SbSampleWeightsImage
111 {
112 public:
118
123 float max;
128 float min;
129 internal:
131 };
132
136 public ref class SbSample
137 {
138 public:
143 String^ uuid;
144
149 String^ image_name;
150
156
162
167 array<SbPoint^>^ vertex;
168
173 array<SbPoint^>^ vertex_warp;
174
179 String^ model_name;
180
185 float scale;
186
192
197 float weight;
198
204
210
216
221 IntPtr user_data;
222
228
234
239 float IoU;
240
241 internal:
242 SbSample(const sb_t_sample* const src);
243 SbError CopyFromNative(const sb_t_sample* const src);
244 }; // group_cs_samples // group_cs
247}
SbImage class that wraps the sb_t_image structure. You must call the Dispose() method to free all the...
Definition: cs_image.h:66
Point class that wraps the sb_t_point structure
Definition: cs_sb.h:180
Sample class that wraps the sb_t_sample structure.
Definition: cs_sample.h:137
int is_near
FALSE NEGATIVE with some other sample close to it.
Definition: cs_sample.h:233
array< SbPoint^> vertex_warp
Coordinates of the 4 vertices of the box of the sample in the warped image.
Definition: cs_sample.h:173
SbObjType type
Sample type.
Definition: cs_sample.h:191
float scale
Scale factor.
Definition: cs_sample.h:185
float weight
Weight of classification.
Definition: cs_sample.h:197
int user_data_size
Size, in bytes, of the user data.
Definition: cs_sample.h:227
IntPtr user_data
Pointer to the user data.
Definition: cs_sample.h:221
String uuid
uuid of the sample.
Definition: cs_sample.h:143
SbPoint centre
Coordinates of the centre of the sample.
Definition: cs_sample.h:155
array< SbPoint^> vertex
Coordinates of the 4 vertices of the box of the sample.
Definition: cs_sample.h:167
SbSampleWeightsImage weights_image
Image of the weights of the sample.
Definition: cs_sample.h:203
String model_name
Name of the model.
Definition: cs_sample.h:179
SbSampleClassifyMode classify_mode
Classification mode.
Definition: cs_sample.h:215
SbPoint centre_warp
Coordinates of the centre in the warped image.
Definition: cs_sample.h:161
String image_name
Name of the image file with extension without path.
Definition: cs_sample.h:149
SbTruth truth
Truth of the sample.
Definition: cs_sample.h:209
Sample weight image Class that wraps the sb_t_sample_weights_image structure.
Definition: cs_sample.h:111
float max
maximum weight corresponding, in the image, the to value 255.
Definition: cs_sample.h:123
SbImage img
Image of the weights of the sample, format is SbImageFormat::SB_IMAGE_FORMAT_BW8.
Definition: cs_sample.h:117
float min
minimum weight corresponding, in the image, the to value 1.
Definition: cs_sample.h:128
SbError
Enum error codes
Definition: cs_common.h:13
SbObjType
Sample object type that wrpas the sb_t_obj_type enum
Definition: cs_sample.h:102
SbTruth
Sample truth values that wraps the sb_t_truth enum
Definition: cs_sample.h:19
SbSampleClassifyMode
Sample classify mode that wraps the sb_t_sample_classify_mode enum
Definition: cs_sample.h:84
@ SB_OBJ_TEST
Object is not used for learning.
@ SB_OBJ_LEARNING
Object is used for learning.
@ SB_TRUTH_MODEL_DISABLED
A sample of a disabled model.
@ SB_TRUTH_UNDEFINED
Truth not defined.
@ SB_TRUTH_FALSE_NEGATIVE
Truth False Negative.
@ SB_TRUTH_OUT_OF_ROI
Truth Out Of ROI.
@ SB_TRUTH_TRUE_POSITIVE
Truth True Positive.
@ SB_TRUTH_OPTIONAL_NEGATIVE
Truth Optional Negative.
@ SB_TRUTH_OPTIONAL_POSITIVE
Truth Optional Positive.
@ SB_TRUTH_FALSE_POSITIVE
Truth False Positive.
@ SB_TRUTH_TRUE_NEGATIVE
Truth True Negative.
SB Namespace
Definition: cs_common.h:3
Sample of an image.
Definition: sb.h:8118