Mat Class Reference

Mirrors the sl::Mat class used in the ZED C++ SDK to store images. Can be used to retrieve individual images from GPU or CPU memory: see Camera.RetrieveImage() and Camera.RetrieveMeasure(). More...

Functions

 Mat ()
 Creates an empty Mat. More...
 
 Mat (System.IntPtr ptr)
 Creates a mat from an existing internal ptr. More...
 
 Mat (sl.Resolution resolution, MAT_TYPE type, MEM mem=MEM.CPU)
 Creates a Mat with a given resolution. More...
 
void Create (sl.Resolution resolution, MAT_TYPE type, MEM mem=MEM.CPU)
 Creates a Mat with a given resolution. More...
 
void Create (uint width, uint height, MAT_TYPE type, MEM mem=MEM.CPU)
 Creates a Mat with a given width and height. More...
 
bool IsInit ()
 True if the Mat has been initialized. More...
 
void Free (MEM mem=(MEM.GPU|MEM.CPU))
 Frees the memory of the Mat. More...
 
sl.ERROR_CODE UpdateCPUFromGPU ()
 Copies data from the GPU to the CPU, if possible. More...
 
sl.ERROR_CODE UpdateGPUFromCPU ()
 Copies data from the CPU to the GPU, if possible. More...
 
string GetInfos ()
 Returns information about the Mat. More...
 
sl.ERROR_CODE CopyTo (sl.Mat dest, sl.COPY_TYPE copyType=COPY_TYPE.CPU_CPU)
 Copies data from this Mat to another Mat (deep copy). More...
 
sl.ERROR_CODE Read (string filePath)
 Reads an image from a file. Supports .png and .jpeg. Only works if Mat has access to MEM_CPU. More...
 
sl.ERROR_CODE Write (string filePath, int compressionLevel=-1)
 Writes the Mat into a file as an image. Only works if Mat has access to MEM_CPU. More...
 
int GetWidth ()
 Returns the width of the matrix. More...
 
int GetHeight ()
 Returns the height of the matrix. More...
 
int GetChannels ()
 Returns the number of values/channels stored in each pixel. More...
 
int GetPixelBytes ()
 Returns the size in bytes of one pixel. More...
 
int GetStep (sl.MEM mem=sl.MEM.CPU)
 Returns the memory 'step' in number/length of elements - how many values make up each row of pixels. More...
 
int GetStepBytes (sl.MEM mem=sl.MEM.CPU)
 Returns the memory 'step' in bytes - how many bytes make up each row of pixels. More...
 
int GetWidthBytes ()
 Returns the size of each row in bytes. More...
 
MEM GetMemoryType ()
 Returns the type of memory (CPU and/or GPU). More...
 
bool IsMemoryOwner ()
 Returns whether the Mat is the owner of the memory it's accessing. More...
 
sl.Resolution GetResolution ()
 Returns the resolution of the image that this Mat holds. More...
 
void Alloc (uint width, uint height, MAT_TYPE matType, MEM mem=MEM.CPU)
 Allocates memory for the Mat. More...
 
void Alloc (sl.Resolution resolution, MAT_TYPE matType, MEM mem=MEM.CPU)
 Allocates memory for the Mat. More...
 
int SetFrom (Mat src, COPY_TYPE copyType=COPY_TYPE.CPU_CPU)
 Copies data from another Mat into this one(deep copy). More...
 
System.IntPtr GetPtr (MEM mem=MEM.CPU)
 
void Clone (Mat source)
 Duplicates a Mat by copying all its data into a new one (deep copy). More...
 
sl.ERROR_CODE GetValue (int x, int y, out float value, sl.MEM mem=sl.MEM.CPU)
 Returns the value of a specific point in the matrix. (MAT_32F_C1) More...
 
sl.ERROR_CODE GetValue (int x, int y, out float2 value, sl.MEM mem=sl.MEM.CPU)
 Returns the value of a specific point in the matrix. (MAT_32F_C2) More...
 
sl.ERROR_CODE GetValue (int x, int y, out float3 value, sl.MEM mem=sl.MEM.CPU)
 Returns the value of a specific point in the matrix. (MAT_32F_C3) More...
 
sl.ERROR_CODE GetValue (int x, int y, out float4 value, sl.MEM mem=sl.MEM.CPU)
 Returns the value of a specific point in the matrix. (MAT_32F_C4) More...
 
sl.ERROR_CODE GetValue (int x, int y, out byte value, sl.MEM mem=sl.MEM.CPU)
 Returns the value of a specific point in the matrix. (MAT_TYPE_8U_C1) More...
 
sl.ERROR_CODE GetValue (int x, int y, out char2 value, sl.MEM mem=sl.MEM.CPU)
 Returns the value of a specific point in the matrix. (MAT_TYPE_8U_C2) More...
 
sl.ERROR_CODE GetValue (int x, int y, out char3 value, sl.MEM mem=sl.MEM.CPU)
 Returns the value of a specific point in the matrix. (MAT_TYPE_8U_C3) More...
 
sl.ERROR_CODE GetValue (int x, int y, out char4 value, sl.MEM mem=sl.MEM.CPU)
 Returns the value of a specific point in the matrix. (MAT_TYPE_8U_C4) More...
 
sl.ERROR_CODE SetValue (int x, int y, ref float value, sl.MEM mem=sl.MEM.CPU)
 Sets a value to a specific point in the matrix. (MAT_32F_C1) More...
 
sl.ERROR_CODE SetValue (int x, int y, ref float2 value, sl.MEM mem=sl.MEM.CPU)
 Sets a value to a specific point in the matrix. (MAT_32F_C2) More...
 
sl.ERROR_CODE SetValue (int x, int y, ref float3 value, sl.MEM mem=sl.MEM.CPU)
 Sets a value to a specific point in the matrix. (MAT_32F_C3) More...
 
sl.ERROR_CODE SetValue (int x, int y, float4 value, sl.MEM mem=sl.MEM.CPU)
 Sets a value to a specific point in the matrix. (MAT_32F_C4) More...
 
sl.ERROR_CODE SetValue (int x, int y, ref byte value, sl.MEM mem=sl.MEM.CPU)
 Sets a value to a specific point in the matrix. (MAT_TYPE_8U_C1) More...
 
sl.ERROR_CODE SetValue (int x, int y, ref char2 value, sl.MEM mem=sl.MEM.CPU)
 Sets a value to a specific point in the matrix. (MAT_TYPE_8U_C2) More...
 
sl.ERROR_CODE SetValue (int x, int y, ref char3 value, sl.MEM mem=sl.MEM.CPU)
 Sets a value to a specific point in the matrix. (MAT_TYPE_8U_C3) More...
 
sl.ERROR_CODE SetValue (int x, int y, ref char4 value, sl.MEM mem=sl.MEM.CPU)
 Sets a value to a specific point in the matrix. (MAT_TYPE_8U_C4) More...
 
sl.ERROR_CODE SetTo (ref float value, sl.MEM mem)
 Fills the entire Mat with the given value. (MAT_32F_C1) More...
 
sl.ERROR_CODE SetTo (ref float2 value, sl.MEM mem)
 Fills the entire Mat with the given value. (MAT_32F_C2) More...
 
sl.ERROR_CODE SetTo (ref float3 value, sl.MEM mem)
 Fills the entire Mat with the given value. (MAT_32F_C3) More...
 
sl.ERROR_CODE SetTo (ref float4 value, sl.MEM mem)
 Fills the entire Mat with the given value. (MAT_32F_C4) More...
 
sl.ERROR_CODE SetTo (ref byte value, sl.MEM mem)
 Fills the entire Mat with the given value. (MAT_TYPE_8U_C1) More...
 
sl.ERROR_CODE SetTo (ref char2 value, sl.MEM mem)
 Fills the entire Mat with the given value. (MAT_TYPE_8U_C2) More...
 
sl.ERROR_CODE SetTo (ref char3 value, sl.MEM mem)
 Fills the entire Mat with the given value. (MAT_TYPE_8U_C3) More...
 
sl.ERROR_CODE SetTo (ref char4 value, sl.MEM mem)
 Fills the entire Mat with the given value. (MAT_TYPE_8U_C4) More...
 

Properties

IntPtr MatPtr [get]
 Returns the internal ptr of a Mat. More...
 

Detailed Description

Mirrors the sl::Mat class used in the ZED C++ SDK to store images. Can be used to retrieve individual images from GPU or CPU memory: see Camera.RetrieveImage() and Camera.RetrieveMeasure().

For more information on the Mat class it mirrors, see: https://www.stereolabs.com/docs/api_3.X/classsl_1_1Mat.html

Constructor and Destructor

◆ Mat() [1/3]

Mat ( )
inline

Creates an empty Mat.

◆ Mat() [2/3]

Mat ( System.IntPtr  ptr)
inline

Creates a mat from an existing internal ptr.

Parameters
ptrIntPtr to create the material with.

◆ Mat() [3/3]

Mat ( sl.Resolution  resolution,
MAT_TYPE  type,
MEM  mem = MEM.CPU 
)
inline

Creates a Mat with a given resolution.

Parameters
resolutionResolution for the new Mat.
typeData type and number of channels the Mat will hold. Depends on texture type: see sl.VIEW and sl.MEASURE in ZEDCommon.cs.
memWhether Mat should exist on CPU or GPU memory. Choose depending on where you'll need to access it from.

Functions

◆ Create() [1/2]

void Create ( sl.Resolution  resolution,
MAT_TYPE  type,
MEM  mem = MEM.CPU 
)
inline

Creates a Mat with a given resolution.

Parameters
resolutionResolution for the new Mat.
typeData type and number of channels the Mat will hold. Depends on texture type: see sl.VIEW and sl.MEASURE in ZEDCommon.cs.
memWhether Mat should exist on CPU or GPU memory. Choose depending on where you'll need to access it from.

◆ Create() [2/2]

void Create ( uint  width,
uint  height,
MAT_TYPE  type,
MEM  mem = MEM.CPU 
)
inline

Creates a Mat with a given width and height.

Parameters
widthWidth of the new Mat.
heightHeight of the new Mat.
typeData type and number of channels the Mat will hold. Depends on texture type: see sl.VIEW and sl.MEASURE in ZEDCommon.cs.
memWhether Mat should exist on CPU or GPU memory. Choose depending on where you'll need to access it from.

◆ IsInit()

bool IsInit ( )
inline

True if the Mat has been initialized.

Returns

◆ Free()

void Free ( MEM  mem = (MEM.GPU | MEM.CPU))
inline

Frees the memory of the Mat.

Parameters
memWhether the Mat is on CPU or GPU memory.

◆ UpdateCPUFromGPU()

sl.ERROR_CODE UpdateCPUFromGPU ( )
inline

Copies data from the GPU to the CPU, if possible.

Returns

◆ UpdateGPUFromCPU()

sl.ERROR_CODE UpdateGPUFromCPU ( )
inline

Copies data from the CPU to the GPU, if possible.

Returns

◆ GetInfos()

string GetInfos ( )
inline

Returns information about the Mat.

Returns
String providing Mat information.

◆ CopyTo()

sl.ERROR_CODE CopyTo ( sl.Mat  dest,
sl.COPY_TYPE  copyType = COPY_TYPE.CPU_CPU 
)
inline

Copies data from this Mat to another Mat (deep copy).

Parameters
destMat that the data will be copied to.
copyTypeThe To and From memory types.
Returns
Error code indicating if the copy was successful, or why it wasn't.

◆ Read()

sl.ERROR_CODE Read ( string  filePath)
inline

Reads an image from a file. Supports .png and .jpeg. Only works if Mat has access to MEM_CPU.

Parameters
filePathFile path, including file name and extension.
Returns
Error code indicating if the read was successful, or why it wasn't.

◆ Write()

sl.ERROR_CODE Write ( string  filePath,
int  compressionLevel = -1 
)
inline

Writes the Mat into a file as an image. Only works if Mat has access to MEM_CPU.

Parameters
filePathFile path, including file name and extension.
compression_levelCompression level used. Highest value means highest compression (smaller size). Range : [0 - 100].
Returns
Error code indicating if the write was successful, or why it wasn't.

◆ GetWidth()

int GetWidth ( )
inline

Returns the width of the matrix.

Returns

◆ GetHeight()

int GetHeight ( )
inline

Returns the height of the matrix.

Returns

◆ GetChannels()

int GetChannels ( )
inline

Returns the number of values/channels stored in each pixel.

Returns
Number of values/channels.

◆ GetPixelBytes()

int GetPixelBytes ( )
inline

Returns the size in bytes of one pixel.

Returns
Size in bytes.

◆ GetStep()

int GetStep ( sl.MEM  mem = sl.MEM.CPU)
inline

Returns the memory 'step' in number/length of elements - how many values make up each row of pixels.

Returns
Step length.

◆ GetStepBytes()

int GetStepBytes ( sl.MEM  mem = sl.MEM.CPU)
inline

Returns the memory 'step' in bytes - how many bytes make up each row of pixels.

Returns

◆ GetWidthBytes()

int GetWidthBytes ( )
inline

Returns the size of each row in bytes.

Returns

◆ GetMemoryType()

MEM GetMemoryType ( )
inline

Returns the type of memory (CPU and/or GPU).

Returns

◆ IsMemoryOwner()

bool IsMemoryOwner ( )
inline

Returns whether the Mat is the owner of the memory it's accessing.

Returns

◆ GetResolution()

sl.Resolution GetResolution ( )
inline

Returns the resolution of the image that this Mat holds.

Returns

◆ Alloc() [1/2]

void Alloc ( uint  width,
uint  height,
MAT_TYPE  matType,
MEM  mem = MEM.CPU 
)
inline

Allocates memory for the Mat.

Parameters
widthWidth of the image/matrix in pixels.
heightHeight of the image/matrix in pixels.
matTypeType of matrix (data type and channels; see sl.MAT_TYPE)
memWhere the buffer will be stored - CPU memory or GPU memory.

◆ Alloc() [2/2]

void Alloc ( sl.Resolution  resolution,
MAT_TYPE  matType,
MEM  mem = MEM.CPU 
)
inline

Allocates memory for the Mat.

Parameters
resolutionSize of the image/matrix in pixels.
matTypeType of matrix (data type and channels; see sl.MAT_TYPE)
memWhere the buffer will be stored - CPU memory or GPU memory.

◆ SetFrom()

int SetFrom ( Mat  src,
COPY_TYPE  copyType = COPY_TYPE.CPU_CPU 
)
inline

Copies data from another Mat into this one(deep copy).

Parameters
srcSource Mat from which to copy.
copyTypeThe To and From memory types.
Returns
ERROR_CODE (as an int) indicating if the copy was successful, or why it wasn't.

◆ GetPtr()

System.IntPtr GetPtr ( MEM  mem = MEM.CPU)
inline

◆ Clone()

void Clone ( Mat  source)
inline

Duplicates a Mat by copying all its data into a new one (deep copy).

Parameters
source

◆ GetValue() [1/8]

sl.ERROR_CODE GetValue ( int  x,
int  y,
out float  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Returns the value of a specific point in the matrix. (MAT_32F_C1)

Parameters
xColumn the point is in.
yRow the point is in.
valueGets filled with the current value.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the get was successful, or why it wasn't.

◆ GetValue() [2/8]

sl.ERROR_CODE GetValue ( int  x,
int  y,
out float2  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Returns the value of a specific point in the matrix. (MAT_32F_C2)

Parameters
xColumn the point is in.
yRow the point is in.
valueGets filled with the current value.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the get was successful, or why it wasn't.

◆ GetValue() [3/8]

sl.ERROR_CODE GetValue ( int  x,
int  y,
out float3  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Returns the value of a specific point in the matrix. (MAT_32F_C3)

Parameters
xColumn the point is in.
yRow the point is in.
valueGets filled with the current value.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the get was successful, or why it wasn't.

◆ GetValue() [4/8]

sl.ERROR_CODE GetValue ( int  x,
int  y,
out float4  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Returns the value of a specific point in the matrix. (MAT_32F_C4)

Parameters
xColumn the point is in.
yRow the point is in.
valueGets filled with the current value.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the get was successful, or why it wasn't.

◆ GetValue() [5/8]

sl.ERROR_CODE GetValue ( int  x,
int  y,
out byte  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Returns the value of a specific point in the matrix. (MAT_TYPE_8U_C1)

Parameters
xColumn the point is in.
yRow the point is in.
valueGets filled with the current value.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the get was successful, or why it wasn't.

◆ GetValue() [6/8]

sl.ERROR_CODE GetValue ( int  x,
int  y,
out char2  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Returns the value of a specific point in the matrix. (MAT_TYPE_8U_C2)

Parameters
xColumn the point is in.
yRow the point is in.
valueGets filled with the current value.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the get was successful, or why it wasn't.

◆ GetValue() [7/8]

sl.ERROR_CODE GetValue ( int  x,
int  y,
out char3  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Returns the value of a specific point in the matrix. (MAT_TYPE_8U_C3)

Parameters
xColumn the point is in.
yRow the point is in.
valueGets filled with the current value.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the get was successful, or why it wasn't.

◆ GetValue() [8/8]

sl.ERROR_CODE GetValue ( int  x,
int  y,
out char4  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Returns the value of a specific point in the matrix. (MAT_TYPE_8U_C4)

Parameters
xColumn the point is in.
yRow the point is in.
valueGets filled with the current value.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the get was successful, or why it wasn't.

◆ SetValue() [1/8]

sl.ERROR_CODE SetValue ( int  x,
int  y,
ref float  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Sets a value to a specific point in the matrix. (MAT_32F_C1)

Parameters
xColumn the point is in.
yRow the point is in.
valueValue to which the point will be set.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the set was successful, or why it wasn't.

◆ SetValue() [2/8]

sl.ERROR_CODE SetValue ( int  x,
int  y,
ref float2  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Sets a value to a specific point in the matrix. (MAT_32F_C2)

Parameters
xColumn the point is in.
yRow the point is in.
valueValue to which the point will be set.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the set was successful, or why it wasn't.

◆ SetValue() [3/8]

sl.ERROR_CODE SetValue ( int  x,
int  y,
ref float3  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Sets a value to a specific point in the matrix. (MAT_32F_C3)

Parameters
xColumn the point is in.
yRow the point is in.
valueValue to which the point will be set.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the set was successful, or why it wasn't.

◆ SetValue() [4/8]

sl.ERROR_CODE SetValue ( int  x,
int  y,
float4  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Sets a value to a specific point in the matrix. (MAT_32F_C4)

Parameters
xColumn the point is in.
yRow the point is in.
valueValue to which the point will be set.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the set was successful, or why it wasn't.

◆ SetValue() [5/8]

sl.ERROR_CODE SetValue ( int  x,
int  y,
ref byte  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Sets a value to a specific point in the matrix. (MAT_TYPE_8U_C1)

Parameters
xColumn the point is in.
yRow the point is in.
valueValue to which the point will be set.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the set was successful, or why it wasn't.

◆ SetValue() [6/8]

sl.ERROR_CODE SetValue ( int  x,
int  y,
ref char2  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Sets a value to a specific point in the matrix. (MAT_TYPE_8U_C2)

Parameters
xColumn the point is in.
yRow the point is in.
valueValue to which the point will be set.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the set was successful, or why it wasn't.

◆ SetValue() [7/8]

sl.ERROR_CODE SetValue ( int  x,
int  y,
ref char3  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Sets a value to a specific point in the matrix. (MAT_TYPE_8U_C3)

Parameters
xColumn the point is in.
yRow the point is in.
valueValue to which the point will be set.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the set was successful, or why it wasn't.

◆ SetValue() [8/8]

sl.ERROR_CODE SetValue ( int  x,
int  y,
ref char4  value,
sl.MEM  mem = sl.MEM.CPU 
)
inline

Sets a value to a specific point in the matrix. (MAT_TYPE_8U_C4)

Parameters
xColumn the point is in.
yRow the point is in.
valueValue to which the point will be set.
memWhether point is on CPU memory or GPU memory.
Returns
Error code indicating if the set was successful, or why it wasn't.

◆ SetTo() [1/8]

sl.ERROR_CODE SetTo ( ref float  value,
sl.MEM  mem 
)
inline

Fills the entire Mat with the given value. (MAT_32F_C1)

Parameters
valueValue with which to fill the Mat.
memWhich buffer to fill - CPU or GPU memory.
Returns
Whether the set was successful, or why it wasn't.

◆ SetTo() [2/8]

sl.ERROR_CODE SetTo ( ref float2  value,
sl.MEM  mem 
)
inline

Fills the entire Mat with the given value. (MAT_32F_C2)

Parameters
valueValue with which to fill the Mat.
memWhich buffer to fill - CPU or GPU memory.
Returns
Whether the set was successful, or why it wasn't.

◆ SetTo() [3/8]

sl.ERROR_CODE SetTo ( ref float3  value,
sl.MEM  mem 
)
inline

Fills the entire Mat with the given value. (MAT_32F_C3)

Parameters
valueValue with which to fill the Mat.
memWhich buffer to fill - CPU or GPU memory.
Returns
Whether the set was successful, or why it wasn't.

◆ SetTo() [4/8]

sl.ERROR_CODE SetTo ( ref float4  value,
sl.MEM  mem 
)
inline

Fills the entire Mat with the given value. (MAT_32F_C4)

Parameters
valueValue with which to fill the Mat.
memWhich buffer to fill - CPU or GPU memory.
Returns
Whether the set was successful, or why it wasn't.

◆ SetTo() [5/8]

sl.ERROR_CODE SetTo ( ref byte  value,
sl.MEM  mem 
)
inline

Fills the entire Mat with the given value. (MAT_TYPE_8U_C1)

Parameters
valueValue with which to fill the Mat.
memWhich buffer to fill - CPU or GPU memory.
Returns
Whether the set was successful, or why it wasn't.

◆ SetTo() [6/8]

sl.ERROR_CODE SetTo ( ref char2  value,
sl.MEM  mem 
)
inline

Fills the entire Mat with the given value. (MAT_TYPE_8U_C2)

Parameters
valueValue with which to fill the Mat.
memWhich buffer to fill - CPU or GPU memory.
Returns
Whether the set was successful, or why it wasn't.

◆ SetTo() [7/8]

sl.ERROR_CODE SetTo ( ref char3  value,
sl.MEM  mem 
)
inline

Fills the entire Mat with the given value. (MAT_TYPE_8U_C3)

Parameters
valueValue with which to fill the Mat.
memWhich buffer to fill - CPU or GPU memory.
Returns
Whether the set was successful, or why it wasn't.

◆ SetTo() [8/8]

sl.ERROR_CODE SetTo ( ref char4  value,
sl.MEM  mem 
)
inline

Fills the entire Mat with the given value. (MAT_TYPE_8U_C4)

Parameters
valueValue with which to fill the Mat.
memWhich buffer to fill - CPU or GPU memory.
Returns
Whether the set was successful, or why it wasn't.

Property Documentation

◆ MatPtr

IntPtr MatPtr
get

Returns the internal ptr of a Mat.