Back to Aurora Vision Library website

You are here: Start » Function Reference » Data Classification » Statistics » TableOfConfusion_Histograms

TableOfConfusion_Histograms


Header: AVL.h
Namespace: avl
Module: FoundationPro

Computes confusion matrix based on two histograms and threshold value.

Syntax

C++
C#
 
void avl::TableOfConfusion_Histograms
(
	const avl::Histogram& inPositiveValues,
	const avl::Histogram& inNegativeValues,
	float inThreshold,
	avl::ConfusionTable& outConfusionTable
)

Parameters

Name Type Default Description
Input value inPositiveValues const Histogram& Pixels values under binary classification mask
Input value inNegativeValues const Histogram& Pixels values not covered by mask
Input value inThreshold float 128.0f
Output value 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.