oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Channel Transforms

Functions

Image oevislib_net.Image.ConvertGradients (bool inUseAlphaChannel)
 Creates an RGB(A) image from a 2-channel image returned by Image::gradients.
Image oevislib_net.Image.ConvertToMultiChannel (int inNewChannels=3, Optional< Region > inRoi=null)
 Creates a multichannel image from a monochromatic one by replicating its channel.
Image oevislib_net.Image.ExtractChannel (int inChannelIndex, Optional< Region > inRoi=null)
 Extracts one channel from the image.
Image oevislib_net.Image.MixChannels (int inCoeff1, int inCoeff2, int inCoeff3, int inCoeff4, int inDivider)
 Compute a linear combination of image channels.
Image oevislib_net.Image.AverageChannels (Optional< Region > inRoi=null, int inWeight1=1, int inWeight2=1, int inWeight3=1, int inWeight4=1)
 Creates a monochromatic image by averaging its channels.
static Image oevislib_net.Image.MergeChannels (Image inImage1, Image inImage2, Optional< Image > inImage3=null, Optional< Image > inImage4=null)
 Creates a multichannel image from several monochromatic ones.
void oevislib_net.Image.ReverseChannels ()
 Reverses the order of the channels in the current image (callable only on a 3-channel image).
Array< Imageoevislib_net.Image.Split ()
 Split image into its separate channels.
Image oevislib_net.Image.AddChannels (Optional< Region > inRoi=null, bool inConsiderSaturation=false)
 Creates a monochromatic image by summing the values of the current image channels.

Detailed Description

Function Documentation

◆ AddChannels()

Image oevislib_net.Image.AddChannels ( Optional< Region > inRoi = null,
bool inConsiderSaturation = false )
inline

Creates a monochromatic image by summing the values of the current image channels.

Parameters
inRoiRegion of interest.
inConsiderSaturationWhether to consider saturation or not.
Returns
Output image.

◆ AverageChannels()

Image oevislib_net.Image.AverageChannels ( Optional< Region > inRoi = null,
int inWeight1 = 1,
int inWeight2 = 1,
int inWeight3 = 1,
int inWeight4 = 1 )
inline

Creates a monochromatic image by averaging its channels.

Parameters
inRoiRegion of interest.
inWeight1Weight of the first channel. Range: [0, +inf).
inWeight2Weight of the second channel. Range: [0, +inf).
inWeight3Weight of the third channel. Range: [0, +inf).
inWeight4Weight of the fourth channel. Range: [0, +inf).
Returns
Output image.

◆ ConvertGradients()

Image oevislib_net.Image.ConvertGradients ( bool inUseAlphaChannel)
inline

Creates an RGB(A) image from a 2-channel image returned by Image::gradients.

The red channel will represent both the negative and positive values of the gradients in X direction, while the green channel will represent the gradients in Y direction. The alpha channel (if requested) is used to enhance the actual gradients found using their magnitude.

Parameters
inUseAlphaChannelWhether to use the alpha channel to enhance the values or not.
Returns
Output image.

◆ ConvertToMultiChannel()

Image oevislib_net.Image.ConvertToMultiChannel ( int inNewChannels = 3,
Optional< Region > inRoi = null )
inline

Creates a multichannel image from a monochromatic one by replicating its channel.

Parameters
inNewChannelsNew image's channels. Range: [1, 4].
inRoiRegion of interest.
Returns
Output image.

◆ ExtractChannel()

Image oevislib_net.Image.ExtractChannel ( int inChannelIndex,
Optional< Region > inRoi = null )
inline

Extracts one channel from the image.

Parameters
inChannelIndexChannel index. Range: [0, 3].
inRoiRegion of interest.
Returns
Selected channel.

◆ MergeChannels()

Image oevislib_net.Image.MergeChannels ( Image inImage1,
Image inImage2,
Optional< Image > inImage3 = null,
Optional< Image > inImage4 = null )
inlinestatic

Creates a multichannel image from several monochromatic ones.

Parameters
inImage1Image that becomes the first channel.
inImage2Image that becomes the second channel.
inImage3Image, if present, that becomes the third channel.
inImage4Image, if present, that becomes the fourth channel.
Returns
Multichannel image.

◆ MixChannels()

Image oevislib_net.Image.MixChannels ( int inCoeff1,
int inCoeff2,
int inCoeff3,
int inCoeff4,
int inDivider )
inline

Compute a linear combination of image channels.

Parameters
inCoeff1Coefficient for the first channel. Range: [0, +inf).
inCoeff2Coefficient for the second channel. Range: [0, +inf).
inCoeff3Coefficient for the third channel. Range: [0, +inf).
inCoeff4Coefficient for the fourth channel. Range: [0, +inf).
inDividerDivider. Range: [1, +inf).
Returns
Output image.

◆ ReverseChannels()

void oevislib_net.Image.ReverseChannels ( )
inline

Reverses the order of the channels in the current image (callable only on a 3-channel image).

◆ Split()

Array< Image > oevislib_net.Image.Split ( )
inline

Split image into its separate channels.

Returns
Array of images, corresponding to the existing image's channels.