Click or drag to resize
CudaImageTColor, TDepth Class
An CudaImage is very similar to the Emgu.CV.Image except that it is being used for GPU processing
Inheritance Hierarchy
          Emgu.CV.CudaCudaImageTColor, TDepth

Namespace:  Emgu.CV.Cuda
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public class CudaImage<TColor, TDepth> : GpuMat<TDepth>, 
	IImage, IDisposable, IInputOutputArray, IInputArrayOfArrays, IOutputArrayOfArrays, 
	IOutputArray, IInputArray, ICloneable
where TColor : struct, new(), IColor
where TDepth : new()

Type Parameters

Color type of this image (either Gray, Bgr, Bgra, Hsv, Hls, Lab, Luv, Xyz, Ycc, Rgb or Rbga)
Depth of this image (either Byte, SByte, Single, double, UInt16, Int16 or Int32)

The CudaImageTColor, TDepth type exposes the following members.

Public methodCudaImageTColor, TDepth
Create an empty CudaImage
Public methodCudaImageTColor, TDepth(Size)
Create a CudaImage of the specific size
Public methodCudaImageTColor, TDepth(IInputArray)
Create a GPU image from a regular image
Public methodCudaImageTColor, TDepth(Int32, Int32)
Create a CudaImage of the specific size
Public methodCudaImageTColor, TDepth(Int32, Int32, Boolean)
Create a CudaImage of the specific size
Public methodCudaImageTColor, TDepth(CudaImageTColor, TDepth, Range, Range)
Create a CudaImage from the specific region of image. The data is shared between the two CudaImage
Public propertyBitmap
convert the current CudaImage to its equivalent Bitmap representation
Public propertyDepth
Depth type
(Inherited from GpuMat.)
Public propertyIsContinuous
True if the data is continues
(Inherited from GpuMat.)
Public propertyIsEmpty
True if the matrix is empty
(Inherited from GpuMat.)
Public propertyNumberOfChannels
Number of channels
(Inherited from GpuMat.)
Public propertyPtr
Pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Public propertySize
Get the GpuMat size: width == number of columns, height == number of rows
(Inherited from GpuMat.)
Public propertyType
Get the type of the GpuMat
(Inherited from GpuMat.)
Public methodClone
Make a clone of the GpuMat
(Inherited from GpuMat.)
Public methodClone(Stream)
Create a clone of this CudaImage
Public methodCol
Returns a CudaImage corresponding to the ith column of the CudaImage. The data is shared with the current Image.
Public methodColRange
Returns a CudaImage corresponding to the [startend) columns of the CudaImage. The data is shared with the current Image.
Public methodConvertTOtherColor, TOtherDepth
Convert the current CudaImage to the specific color and depth
Public methodConvertFromTSrcColor, TSrcDepth
Convert the source image to the current image, if the size are different, the current image will be a resized version of the srcImage.
Public methodConvertTo
This function has several different purposes and thus has several synonyms. It copies one GpuMat to another with optional scaling, which is performed first, and/or optional type conversion, performed after: dst(I)=src(I)*scale + (shift,shift,...) All the channels of multi-channel GpuMats are processed independently. The type conversion is done with rounding and saturation, that is if a result of scaling + conversion can not be represented exactly by a value of destination GpuMat element type, it is set to the nearest representable value on the real axis. In case of scale=1, shift=0 no prescaling is done. This is a specially optimized case and it has the appropriate convertTo synonym.
(Inherited from GpuMat.)
Public methodCopyTo
Copy the source GpuMat to destination GpuMat, using an optional mask.
(Inherited from GpuMat.)
Public methodCreate
allocates new GpuMat data unless the GpuMat already has specified size and type
(Inherited from GpuMat.)
Public methodDispose
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)
Protected methodDisposeObject
Release the unmanaged memory associated with this GpuMat
(Inherited from GpuMat.)
Public methodDownload
Downloads data from device to host memory.
(Inherited from GpuMat.)
Public methodEquals(Object) (Inherited from Object.)
Public methodEquals(GpuMat)
Returns true if the two GpuMat equals
(Inherited from GpuMat.)
Protected methodFinalize
(Inherited from DisposableObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetInputArray
Pointer to the InputArray
(Inherited from GpuMat.)
Public methodGetInputOutputArray
Pointer to the InputOutputArray
(Inherited from GpuMat.)
Public methodGetOutputArray
Pointer to the OutputArray
(Inherited from GpuMat.)
Public methodGetSubRect
Returns a CudaImage corresponding to a specified rectangle of the current CudaImage. The data is shared with the current matrix. In other words, it allows the user to treat a rectangular part of input array as a stand-alone array.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMergeFrom
Makes multi-channel array out of several single-channel arrays
(Inherited from GpuMat.)
Public methodMinMax
Returns the min / max location and values for the image
(Inherited from GpuMat.)
Protected methodReleaseManagedResources
Release the managed resources. This function will be called during the disposal of the current object. override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.)
Public methodReshape
Changes shape of GpuMat without copying data.
(Inherited from GpuMat.)
Public methodResize
Resize the CudaImage. The calling GpuMat be GpuMat%lt;Byte>. If stream is specified, it has to be either 1 or 4 channels.
Public methodRow
Returns a CudaImage corresponding to the ith row of the CudaImage. The data is shared with the current Image.
Public methodRowRange
Returns a CudaImage corresponding to the [startend) rows of the CudaImage. The data is shared with the current Image.
Public methodSave
Save the GpuMat to a file
(Inherited from GpuMat.)
Public methodSetTo
Copies scalar value to every selected element of the destination GpuMat: arr(I)=value if mask(I)!=0
(Inherited from GpuMat.)
Public methodSplit
Split current GpuMat into an array of single channel GpuMat where each element in the array represent a single channel of the original GpuMat
(Inherited from GpuMat.)
Public methodToImage
Convert the current CudaImage to a regular Image.
Public methodToMat
Convert the GpuMat to Mat
(Inherited from GpuMat.)
Public methodToMatrix
Convert this GpuMat to a Matrix
(Inherited from GpuMatTDepth.)
Public methodToString (Inherited from Object.)
Public methodUpload
Upload data to GpuMat
(Inherited from GpuMat.)
Protected field_ptr
A pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Extension Methods
Public Extension MethodIsUmat
Determines whether the specified input array is umat.
(Defined by IInputArrayExtensions.)
See Also