◆ copyFromMat()
static void OpenCVForUnity.UnityUtils.MatUtils.copyFromMat |
( |
Mat |
mat, |
|
|
IntPtr |
intPtr |
|
) |
| |
|
static |
Copies OpenCV Mat data to Pixel Data IntPtr.
This method copies the OpenCV Mat data to the pixel data IntPtr.
The pixel data must have the same byte size as the Mat data ([total() * elemSize()] byte).
Because this method doesn't check bounds, is faster than Mat.get().
This method copies only when mat.isContinuous() is false and mat.dims() = 2. When mat.isContinuous() is true, there is no restriction on the number of mat dimensions.
- Parameters
-
mat | a Mat object. |
intPtr | the pixel data must have the same byte size as the Mat data ([total() * elemSize()] byte). |
◆ copyFromMat< T >() [1/3]
Copies OpenCV Mat data to Pixel Data Array.
This method copies the OpenCV Mat data to the pixel data Array.
The pixel data Array must have the same byte size as the Mat data ([total() * elemSize()] byte).
Because this method doesn't check bounds, is faster than Mat.get().
This method copies only when mat.isContinuous() is false and mat.dims() = 2. When mat.isContinuous() is true, there is no restriction on the number of mat dimensions.
- Parameters
-
mat | a Mat object. |
array | the pixel data Array must have the same byte size as the Mat data ([total() * elemSize()] byte). |
◆ copyFromMat< T >() [2/3]
Copies OpenCV Mat data to Pixel Data NativeArray.
This method copies the OpenCV Mat data to the pixel data NativeArray.
The pixel data Array must have the same byte size as the Mat data ([total() * elemSize()] byte).
Because this method doesn't check bounds, is faster than Mat.get().
This method copies only when mat.isContinuous() is false and mat.dims() = 2. When mat.isContinuous() is true, there is no restriction on the number of mat dimensions.
- Parameters
-
mat | a Mat object. |
array | the pixel data Array must have the same byte size as the Mat data ([total() * elemSize()] byte). |
◆ copyFromMat< T >() [3/3]
- Copies OpenCV Mat data to Pixel Data NativeArray.
This method copies the OpenCV Mat data to the pixel data NativeArray.
The pixel data Array must have the same byte size as the Mat data ([total() * elemSize()] byte).
Because this method doesn't check bounds, is faster than Mat.get().
This method copies only when mat.isContinuous() is false and mat.dims() = 2. When mat.isContinuous() is true, there is no restriction on the number of mat dimensions.
- Parameters
-
- Parameters
-
array | the pixel data Array must have the same byte size as the Mat data ([total() * elemSize()] byte). |
◆ copyToMat()
static void OpenCVForUnity.UnityUtils.MatUtils.copyToMat |
( |
IntPtr |
intPtr, |
|
|
Mat |
mat |
|
) |
| |
|
static |
Copies Pixel Data IntPtr to OpenCV Mat data.
This method copy the pixel data IntPtr to the OpenCV Mat data.
The Mat object must have the same byte size as the pixel data ([total() * elemSize()] byte).
Because this method doesn't check bounds, is faster than Mat.put().
This method copies only when mat.isContinuous() is false and mat.dims() = 2. When mat.isContinuous() is true, there is no restriction on the number of mat dimensions.
- Parameters
-
intPtr | a pixel data IntPtr. |
mat | the Mat object must have the same byte size as the pixel data ([total() * elemSize()] byte). |
◆ copyToMat< T >() [1/3]
Copies Pixel Data Array to OpenCV Mat data.
This method copies the pixel data Array to the OpenCV Mat data.
The Mat object must have the same byte size as the pixel data Array ([total() * elemSize()] byte).
Because this method doesn't check bounds, is faster than Mat.put().
This method copies only when mat.isContinuous() is false and mat.dims() = 2. When mat.isContinuous() is true, there is no restriction on the number of mat dimensions.
- Parameters
-
array | a pixel data Array. |
mat | the Mat object must have the same byte size as the pixel data Array ([total() * elemSize()] byte). |
◆ copyToMat< T >() [2/3]
Copies Pixel Data NativeArray to OpenCV Mat data.
This method copies the pixel data NativeArray to the OpenCV Mat data.
The Mat object must have the same byte size as the pixel data Array ([total() * elemSize()] byte).
Because this method doesn't check bounds, is faster than Mat.put().
This method copies only when mat.isContinuous() is false and mat.dims() = 2. When mat.isContinuous() is true, there is no restriction on the number of mat dimensions.
- Parameters
-
array | a pixel data Array. |
mat | the Mat object must have the same byte size as the pixel data Array ([total() * elemSize()] byte). |
◆ copyToMat< T >() [3/3]
Copies Pixel Data NativeArray to OpenCV Mat data.
This method copies the pixel data NativeArray to the OpenCV Mat data.
The Mat object must have the same byte size as the pixel data Array ([total() * elemSize()] byte).
Because this method doesn't check bounds, is faster than Mat.put().
This method copies only when mat.isContinuous() is false and mat.dims() = 2. When mat.isContinuous() is true, there is no restriction on the number of mat dimensions.
- Parameters
-
array | a pixel data Array. |
mat | the Mat object must have the same byte size as the pixel data Array ([total() * elemSize()] byte). |
The documentation for this class was generated from the following file:
- OpenCVForUnity/Assets/OpenCVForUnity/org/opencv/unity/MatUtils.cs