BlobID v2.2.2
Loading...
Searching...
No Matches
Functions | Variables
Thresholding

Functions

void BLOBID_SettingsGetThresholdType (BLOBID_UID *const option, const BLOBID_Settings *const settings)
 Returns the UID associated with the current threshold type.
 
void BLOBID_SettingsSetThresholds (const double *const thresholds, BLOBID_Settings *const settings)
 
void BLOBID_SettingsGetThresholds (double *const thresholds, const BLOBID_Settings *const settings)
 

Variables

constexpr BLOBID_UID BLOBID_THR_NONE = 1
 
constexpr BLOBID_UID BLOBID_THR_SINGLEPASS = 2
 
constexpr BLOBID_UID BLOBID_THR_DOUBLEPASS = 3
 
constexpr BLOBID_UID BLOBID_THR_TRIPLEPASS = 4
 

Detailed Description

Thresholding Type

Threshold type defines how BlobID uses thresholding logic when determining cell connectivity. The types are

Default: none

Thresholding Values

thresholds are the values used for the thresholding logic. This must be an array of 2 doubles, even if the thresholding method doesn't use all the values. The behavior for each thresholding method is:

Method thresholds[0] thresholds[1] Default
"none" - - [ 0.0 , 0.0 ]
"single" 1st pass - [ 0.1 , 0.0 ]
"double" 1st pass - [ 0.4 , 0.0 ]
"triple" 1st pass 2nd pass [ 0.3 , 0.5 ]

Note: Defaults can be changed by preprocessor flags.

Function Documentation

◆ BLOBID_SettingsGetThresholdType()

void BLOBID_SettingsGetThresholdType ( BLOBID_UID *const  option,
const BLOBID_Settings *const  settings 
)

Returns the UID associated with the current threshold type.

Parameters
optionUID
settingsThe BLOBID_Settings object

◆ BLOBID_SettingsSetThresholds()

void BLOBID_SettingsSetThresholds ( const double *const  thresholds,
BLOBID_Settings *const  settings 
)

Sets the threshold values.

Parameters
thresholdsThresholding Values
settingsThe BLOBID_Settings object

◆ BLOBID_SettingsGetThresholds()

void BLOBID_SettingsGetThresholds ( double *const  thresholds,
const BLOBID_Settings *const  settings 
)

Get the threshold values.

Parameters
thresholdsThresholding Values
settingsThe BLOBID_Settings object

Variable Documentation

◆ BLOBID_THR_NONE

constexpr BLOBID_UID BLOBID_THR_NONE = 1
constexpr

When passed to BLOBID_SettingsSetOption(), use none for thresholding.

◆ BLOBID_THR_SINGLEPASS

constexpr BLOBID_UID BLOBID_THR_SINGLEPASS = 2
constexpr

When passed to BLOBID_SettingsSetOption(), use single for thresholding.

◆ BLOBID_THR_DOUBLEPASS

constexpr BLOBID_UID BLOBID_THR_DOUBLEPASS = 3
constexpr

When passed to BLOBID_SettingsSetOption(), use double for thresholding.

◆ BLOBID_THR_TRIPLEPASS

constexpr BLOBID_UID BLOBID_THR_TRIPLEPASS = 4
constexpr

When passed to BLOBID_SettingsSetOption(), use triple for thresholding.