SB SDK 1.11
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 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.
 
sb_t_range merge_height
 Range of height after merge, value in pixel.
 
sb_t_range merge_width
 Range of weight after merge, value in pixel.
 
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 7847 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 7872 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 7867 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 ina 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 7858 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 7878 of file sb.h.


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