SqueezeBrains SDK 1.13
sb_t_blob Struct Reference

Defines a blob. More...

#include <sb.h>

Collaboration diagram for sb_t_blob:

Data Fields

sb_t_point2d_f bar
 blob baricenter.
 
int area
 Area of the blob, number of the pixel.
 
int od
 Value not evaluated.
 
int lut
 Value of the lut.
 
sb_t_rect rect
 Bounding box of the blob.
 
sb_t_rle rle
 Pointer to RLE buffer. More...
 
sb_t_pointcontour
 Pointer to the array of the points of the blob contour. More...
 
int contour_size
 Number of point of the blob contour, ie the number of elements of the array contour.
 
sb_t_truth truth
 Truth value of the blob computed by the blob analysis routine, otherwise SB_TRUTH_UNDEFINED.
 
sb_t_blob_deleted deleted
 Blob is marked as deleted. More...
 
char model_name [SB_PAR_STRING_LEN]
 Model name of the blob.
 
float angle
 Rotation angle of the smaller rotated rectangle. More...
 
sb_t_point2d_f coord_min_rot_rect [4]
 Coordinates of the vertices of the smaller rotated rectangle. More...
 
float m_xx
 Moment of inertia about the x axis. More...
 
float m_yy
 Moment of inertia about the y axis. More...
 
float m_xy
 Moment of inertia about the x and y axes. More...
 

Detailed Description

Defines a blob.

Definition at line 8650 of file sb.h.

Field Documentation

◆ angle

float sb_t_blob::angle

Rotation angle of the smaller rotated rectangle.

Corresponds to the rotation of the major axis.
The angle is measured clockwise with zero corresponding to the positive x-axis.
The angle value is between 0 and 180.
The parameter is evaluated only is sb_t_blob_par::blob_min_rot_rect is set to 1, otherwise the angle is set to zero.
If you don't have the sb_t_blob_par::blob_min_rot_rect parameter available but you want to know if the rotation angle has been calculated, you have to look at the sb_t_blob::m_xx and sb_t_blob::m_yy values, it is sufficient that one of the two is not null.

Definition at line 8690 of file sb.h.

◆ contour

sb_t_point* sb_t_blob::contour

Pointer to the array of the points of the blob contour.

To make the sb_blobs_detection function return the contour of the blob you must to set sb_t_blob_par.blob_contour to 1.

See also
sb_t_blob_par::blob_contour

Definition at line 8668 of file sb.h.

◆ coord_min_rot_rect

sb_t_point2d_f sb_t_blob::coord_min_rot_rect[4]

Coordinates of the vertices of the smaller rotated rectangle.

If the parameter sb_t_blob_par::blob_min_rot_rect is set to 1 the coordinates are those of the minimum rotated rectangle, otherwise they are those of the unrotated bounding box.

Definition at line 8696 of file sb.h.

◆ deleted

sb_t_blob_deleted sb_t_blob::deleted

Blob is marked as deleted.

When parameter sb_t_blob_par::keep_deleted is set to a value different from 0, than the function sb_blobs_detection does not delete the blobs filtered due geometric restrictions, that is area and/or width and/or height out of limits, but leaves them in the list and sets the parameter deleted.

See also
sb_t_blob_par

Definition at line 8678 of file sb.h.

◆ m_xx

float sb_t_blob::m_xx

Moment of inertia about the x axis.

It is always positive.
The parameter is evaluated only is sb_t_blob_par::blob_min_rot_rect is set to 1.

Definition at line 8702 of file sb.h.

◆ m_xy

float sb_t_blob::m_xy

Moment of inertia about the x and y axes.

It can be both positive and negative.n It is negative when the principal axis has a rotation greater than 90 degrees.
The parameter is evaluated only is sb_t_blob_par::blob_min_rot_rect is set to 1.

Definition at line 8715 of file sb.h.

◆ m_yy

float sb_t_blob::m_yy

Moment of inertia about the y axis.

It is always positive.
The parameter is evaluated only is sb_t_blob_par::blob_min_rot_rect is set to 1.

Definition at line 8708 of file sb.h.

◆ rle

sb_t_rle sb_t_blob::rle

Pointer to RLE buffer.

To make the sb_blobs_detection function return the rle of the blob you must set the parameter sb_t_blob_par.blob_rle to 1.

See also
sb_t_blob_par::blob_rle

Definition at line 8662 of file sb.h.


The documentation for this struct was generated from the following file: