Back to FabImage Library website
You are here: Start » Function Reference » Data Classification » Statistics » TableOfConfusion_Histograms

TableOfConfusion_Histograms
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Computes confusion matrix based on two histograms and threshold value.
Syntax
C++
C#
void fil::TableOfConfusion_Histograms ( const fil::Histogram& inPositiveValues, const fil::Histogram& inNegativeValues, float inThreshold, fil::ConfusionTable& outConfusionTable )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPositiveValues | const Histogram& | Pixels values under binary classification mask | |
![]() |
inNegativeValues | const Histogram& | Pixels values not covered by mask | |
![]() |
inThreshold | float | 128.0f | |
![]() |
outConfusionTable | ConfusionTable& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Histogram inNegativeValues is empty in TableOfConfusion_Histograms. |
DomainError | Histogram inPositiveValues is empty in TableOfConfusion_Histograms. |
DomainError | Histograms inPositiveValues and inNegativeValues has different domain in TableOfConfusion_Histograms. |
DomainError | inThreshold is larger than domain end in TableOfConfusion_Histograms. |
DomainError | inThreshold is smaller than domain start in TableOfConfusion_Histograms. |