Table of Contents

Class IInputArrayExtensions

Namespace
Emgu.CV
Assembly
Emgu.CV.dll

Extension methods for IInputArrays

public static class IInputArrayExtensions
Inheritance
IInputArrayExtensions
Inherited Members

Methods

ForEachDuplicateChannel(IInputArray, Action<IInputArray, int>)

Apply converter and compute result for each channel of the image, for single channel image, apply converter directly, for multiple channel image, make a copy of each channel to a temperary image and apply the convertor

public static void ForEachDuplicateChannel(this IInputArray image, Action<IInputArray, int> action)

Parameters

image IInputArray

The source image

action Action<IInputArray, int>

The converter such that accept the IntPtr of a single channel IplImage, and image channel index which returning result of type R

ForEachDuplicateChannel<TReturn>(IInputArray, Func<IInputArray, int, TReturn>)

Apply converter and compute result for each channel of the image, for single channel image, apply converter directly, for multiple channel image, make a copy of each channel to a temperary image and apply the convertor

public static TReturn[] ForEachDuplicateChannel<TReturn>(this IInputArray image, Func<IInputArray, int, TReturn> conv)

Parameters

image IInputArray

The source image

conv Func<IInputArray, int, TReturn>

The converter such that accept the IntPtr of a single channel IplImage, and image channel index which returning result of type R

Returns

TReturn[]

An array which contains result for each channel

Type Parameters

TReturn

The return type

IsUmat(IInputArray)

Determines whether the specified input array is umat.

public static bool IsUmat(this IInputArray arr)

Parameters

arr IInputArray

The array

Returns

bool

True if it is a umat