SqueezeBrains SDK 1.13
sb_t_blob_par Struct Reference

Defines the parameters for blob analysis. More...

#include <sb.h>

Collaboration diagram for sb_t_blob_par:

Data Fields

unsigned char lut [256]
 Lut of gray levels used to find the blobs. More...
 
sb_t_range area
 Range of area, value in pixel.
 
sb_t_range height
 Range of height, value in pixel.
 
sb_t_range width
 Range of weight, value in pixel.
 
sb_t_pixel_connection connection_type
 Pixel connection type.
 
int blob_rle
 Set to 1 if you want the rle of each blob. More...
 
int blob_contour
 Set to 1 if you want the contour of each blob. More...
 
int blob_min_rot_rect
 For each blob it enables the calculation of the smaller rotated rectangle containing the blob. More...
 
sb_t_blob_distance_mode blob_distance_mode
 Selection of the algorithm for calculating the distance between blobs. More...
 
int merge_distance
 Blobs with a distance inferior or equal to the value are merged together. More...
 
sb_t_range merge_area
 Range of area after merge, value in pixel. Used only if sb_t_blob_par::merge_distance is greater than or equal to 0.
 
sb_t_range merge_height
 Range of height after merge, value in pixel. Used only if sb_t_blob_par::merge_distance is greater than or equal to 0.
 
sb_t_range merge_width
 Range of weight after merge, value in pixel. Used only if sb_t_blob_par::merge_distance is greater than or equal to 0.
 
int keep_deleted
 If different than 0, deleted blobs are kept in the list and marked as deleted.
 
int verbosity
 Verbosity level.
 

Detailed Description

Defines the parameters for blob analysis.

Definition at line 8562 of file sb.h.

Field Documentation

◆ blob_contour

int sb_t_blob_par::blob_contour

Set to 1 if you want the contour of each blob.

See also
sb_t_blob::contour

Definition at line 8587 of file sb.h.

◆ blob_distance_mode

sb_t_blob_distance_mode sb_t_blob_par::blob_distance_mode

Selection of the algorithm for calculating the distance between blobs.

The distance between blobs is used only for the merge operation.

Definition at line 8597 of file sb.h.

◆ blob_min_rot_rect

int sb_t_blob_par::blob_min_rot_rect

For each blob it enables the calculation of the smaller rotated rectangle containing the blob.

Requires the sb_t_blob_par::blob_rle parameter to be enabled.

Definition at line 8592 of file sb.h.

◆ blob_rle

int sb_t_blob_par::blob_rle

Set to 1 if you want the rle of each blob.

See also
sb_t_blob::rle

Definition at line 8582 of file sb.h.

◆ lut

unsigned char sb_t_blob_par::lut[256]

Lut of gray levels used to find the blobs.

If the value lut[x] is 0, then the corresponding gray level x is not used. If the value lut[x] is greater than 0, then the corresponding gray level x is used. Moreover, a blob is composed of all the pixels that have the same value of the lut. The value of the lut is written in parameter sb_t_blob::lut . The blobs with different value of the lut are manage in a indipendent mode. So using different values of the lut is like doing more blob analysis with the same call of the sb_blobs_detection function.

Definition at line 8573 of file sb.h.

◆ merge_distance

int sb_t_blob_par::merge_distance

Blobs with a distance inferior or equal to the value are merged together.

Set to a negative value to disable merging. Value in pixel.
Only blob with the same value of the lut are merged togheter.

Definition at line 8603 of file sb.h.


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