Arithmetic operations on cubes. More...
Public Types | |
enum | NormalizationMethod { AverageReferences1 = 0 } |
Normalization method. More... | |
enum | PixelOverflow { Unhandled = 0 , Truncate = 1 } |
Defines how arithmetic overflows and underflows are handled. More... | |
Static Public Member Functions | |
static Cube | Normalize (this ContinuousCube cube, ContinuousCube whiteCube, ContinuousCube blackCube, NormalizationMethod normalizationMethod) |
Normalizes a spectral cube. This function creates a normalized cube using the white- and black reference and the object cube. More... | |
static Cube | Normalize (this LinearNonOwningCube cube, LinearNonOwningCube whiteCube, LinearNonOwningCube blackCube, NormalizationMethod normalizationMethod) |
Normalizes a spectral cube. This function creates a normalized cube using the white- and black reference and the object cube. More... | |
static Cube | Normalize (this MappedCube cube, MappedCube whiteCube, MappedCube blackCube, NormalizationMethod normalizationMethod) |
Normalizes a spectral cube. This function creates a normalized cube using the white- and black reference and the object cube. More... | |
static Cube | Add (this Cube cube1, Cube cube2, PixelOverflow overflowHandling=PixelOverflow.Unhandled) |
Element-wise addition of two cubes. More... | |
static Cube | Subtract (this Cube minuend, Cube subtrahend, PixelOverflow overflowHandling=PixelOverflow.Unhandled) |
Element-wise subtraction of two cubes. More... | |
static Cube | Multiply (this Cube cube1, Cube cube2, PixelOverflow overflowHandling=PixelOverflow.Unhandled) |
Element-wise multiplication of two cubes. More... | |
static Cube | Divide (this Cube dividend, Cube divisor) |
Element-wise division of two cubes. More... | |
Arithmetic operations on cubes.
enum NormalizationMethod |
enum PixelOverflow |
|
static |
Element-wise addition of two cubes.
cube1 | Any kind of cube is supported as long as the dimensions match with cube2. |
cube2 | Any kind of cube is supported as long as the dimensions match with cube1. |
overflowHandling | Defines how arithmetic overflows and underflows are handled. |
Element-wise division of two cubes.
dividend | Any kind of cube is supported as long as the dimensions match with divisor. |
divisor | Any kind of cube is supported as long as the dimensions match with dividend. |
|
static |
Element-wise multiplication of two cubes.
cube1 | Any kind of cube is supported as long as the dimensions match with cube2. |
cube2 | Any kind of cube is supported as long as the dimensions match with cube1. |
overflowHandling | Defines how arithmetic overflows and underflows are handled. |
|
static |
Normalizes a spectral cube. This function creates a normalized cube using the white- and black reference and the object cube.
If you want to use this function on stacked cubes, duplicate your cube with Clone() to get a continous cube.
cube | Spectral cube to work on. |
whiteCube | The white reference contains a linear cube. The number of bands of cube, whiteCube and darkCube must be the same. |
blackCube | he black reference contains a linear cube. The number of bands of cube, whiteCube and darkCube must be the same. |
normalizationMethod | Defines the normalization method. More detailed information in NormalizationMethod. |
|
static |
Normalizes a spectral cube. This function creates a normalized cube using the white- and black reference and the object cube.
If you want to use this function on stacked cubes, duplicate your cube with Clone() to get a continous cube.
cube | Spectral cube to work on. |
whiteCube | The white reference contains a linear cube. The number of bands of cube, whiteCube and darkCube must be the same. |
blackCube | he black reference contains a linear cube. The number of bands of cube, whiteCube and darkCube must be the same. |
normalizationMethod | Defines the normalization method. More detailed information in NormalizationMethod. |
|
static |
Normalizes a spectral cube. This function creates a normalized cube using the white- and black reference and the object cube.
If you want to use this function on stacked cubes, duplicate your cube with Clone() to get a continous cube.
cube | Spectral cube to work on. |
whiteCube | The white reference contains a linear cube. The number of bands of cube, whiteCube and darkCube must be the same. |
blackCube | he black reference contains a linear cube. The number of bands of cube, whiteCube and darkCube must be the same. |
normalizationMethod | Defines the normalization method. More detailed information in NormalizationMethod. |
|
static |
Element-wise subtraction of two cubes.
minuend | Any kind of cube is supported as long as the dimensions match with subtrahend. |
subtrahend | Any kind of cube is supported as long as the dimensions match with minuend. |
overflowHandling | Defines how arithmetic overflows and underflows are handled. |