CVB.Net 14.0
ImageExtensions Class Reference

Extension methods the Foundation Package adds to Image objects. More...

Static Public Member Functions

static void Init (this Image img, double value)
 Initialize the planes of this image to a value. More...
 
static void Init (this Image img, double[] values)
 Initialize the planes of this image to different values. More...
 
static void Init (this Image img, Rect aoi, double value)
 Initialize the planes of this image to a value. More...
 
static void Init (this Image img, Rect aoi, double[] values)
 Initialize the planes of this image to different values. More...
 
static Image SubImage (this Image img, Area2D aoi)
 Extract the content of an aoi (area of interest) into a new image using linear interpolation. More...
 
static Image SubImage (this Image img, Area2D aoi, Interpolation interpolation)
 Extract the content of an aoi (area of interest) into a new image. More...
 

Detailed Description

Extension methods the Foundation Package adds to Image objects.

Member Function Documentation

◆ Init() [1/4]

static void Init ( this Image  img,
double  value 
)
static

Initialize the planes of this image to a value.

Parameters
imgImage to be initialized.
valueValues to which the various planes are to be initialized.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Init() [2/4]

static void Init ( this Image  img,
double[]  values 
)
static

Initialize the planes of this image to different values.

Parameters
imgImage to be initialized.
valuesValues to which the various planes are to be initialized (needs at least one value per plane).
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Init() [3/4]

static void Init ( this Image  img,
Rect  aoi,
double  value 
)
static

Initialize the planes of this image to a value.

Parameters
imgImage to be initialized.
aoiRect to initialize.
valueValues to which the various planes are to be initialized.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Init() [4/4]

static void Init ( this Image  img,
Rect  aoi,
double[]  values 
)
static

Initialize the planes of this image to different values.

Parameters
imgImage to be initialized.
aoiArea of interest to initialize.
valuesValues to which the various planes are to be initialized (needs at least one value per plane).
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ SubImage() [1/2]

static Image SubImage ( this Image  img,
Area2D  aoi 
)
static

Extract the content of an aoi (area of interest) into a new image using linear interpolation.

Parameters
imgImage to work from.
aoiArea of interest to be extracted.
Returns
New image of the subregion.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ SubImage() [2/2]

static Image SubImage ( this Image  img,
Area2D  aoi,
Interpolation  interpolation 
)
static

Extract the content of an aoi (area of interest) into a new image.

Parameters
imgImage to work from.
aoiArea of interest to be extracted.
interpolationInterpolation mode to be used.
Returns
New image of the subregion.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed