CVB.Net 14.0
Norm Class Reference

Functions for calculating different norms over the gray values of an image. More...

Static Public Member Functions

static double L1 (ImagePlane plane, ValueNormalization normalize)
 Calculate and return the L1 norm (sum of absolute values) over all the pixels inside the plane . More...
 
static double L1 (ImagePlane plane, ValueNormalization normalize, Rect aoi)
 Calculate and return the L1 norm (sum of absolute values) over all the pixels inside the plane . More...
 
static double L2 (ImagePlane plane, ValueNormalization normalize)
 Calculate and return the L2 norm (euclidean norm) over the pixels inside the plane . More...
 
static double L2 (ImagePlane plane, ValueNormalization normalize, Rect aoi)
 Calculate and return the L2 norm (euclidean norm) over the pixels inside the plane . More...
 
static double LInf (ImagePlane plane, ValueNormalization normalize)
 Calculate and return the L infinity norm (maximum norm) over the pixels inside the plane . More...
 
static double LInf (ImagePlane plane, ValueNormalization normalize, Rect aoi)
 Calculate and return the L infinity norm (maximum norm) over the pixels inside the plane . More...
 

Detailed Description

Functions for calculating different norms over the gray values of an image.

Member Function Documentation

◆ L1() [1/2]

static double L1 ( ImagePlane  plane,
ValueNormalization  normalize 
)
static

Calculate and return the L1 norm (sum of absolute values) over all the pixels inside the plane .

Parameters
planePlane to calculate the norm on.
normalizeNormalize results to [0...1] or not.
Returns
The calculated norm.
Exceptions
ObjectDisposedExceptionIf plane has been disposed.

◆ L1() [2/2]

static double L1 ( ImagePlane  plane,
ValueNormalization  normalize,
Rect  aoi 
)
static

Calculate and return the L1 norm (sum of absolute values) over all the pixels inside the plane .

Parameters
planePlane to calculate the norm on.
normalizeNormalize results to [0...1] or not.
aoiArea to calculate the norm in.
Returns
The calculated norm.
Exceptions
ObjectDisposedExceptionIf plane has been disposed.

◆ L2() [1/2]

static double L2 ( ImagePlane  plane,
ValueNormalization  normalize 
)
static

Calculate and return the L2 norm (euclidean norm) over the pixels inside the plane .

Parameters
planePlane to calculate the norm on.
normalizeNormalize results to [0...1] or not.
Returns
The calculated norm.
Exceptions
ObjectDisposedExceptionIf plane has been disposed.

◆ L2() [2/2]

static double L2 ( ImagePlane  plane,
ValueNormalization  normalize,
Rect  aoi 
)
static

Calculate and return the L2 norm (euclidean norm) over the pixels inside the plane .

Parameters
planePlane to calculate the norm on.
aoiArea to calculate the norm in.
normalizeNormalize results to [0...1] or not.
Returns
The calculated norm.
Exceptions
ObjectDisposedExceptionIf plane has been disposed.

◆ LInf() [1/2]

static double LInf ( ImagePlane  plane,
ValueNormalization  normalize 
)
static

Calculate and return the L infinity norm (maximum norm) over the pixels inside the plane .

Parameters
planePlane to calculate the norm on.
normalizeNormalize results to [0...1] or not.
Returns
The calculated norm.
Exceptions
ObjectDisposedExceptionIf plane has been disposed.

◆ LInf() [2/2]

static double LInf ( ImagePlane  plane,
ValueNormalization  normalize,
Rect  aoi 
)
static

Calculate and return the L infinity norm (maximum norm) over the pixels inside the plane .

Parameters
planePlane to calculate the norm on.
normalizeNormalize results to [0...1] or not.
aoiArea to calculate the norm in.
Returns
The calculated norm.
Exceptions
ObjectDisposedExceptionIf plane has been disposed.