|
static void | clear () |
| Destroys the DebugMatUtils GameObjects.
|
|
static void | setup (LayoutType type=LayoutType.RIGHT) |
| Sets up the DebugMatUtils GameObject.
|
|
static void | imshow (string winname, Mat img, bool dump=false, CoreModule.Rect roi=null, string debugText=null, bool isDataSRGB=true) |
| Displays a Mat image.
|
|
static void | imshow (string winname, Mat img, bool isDataSRGB) |
| Displays a Mat image.
|
|
static void | imshow (string winname, Mat img, bool dump, in(int x, int y, int width, int height) roi, string debugText=null, bool isDataSRGB=true) |
| Displays a Mat image.
|
|
static void | imshow (string winname, Mat img, bool dump, in Vec4i roi, string debugText=null, bool isDataSRGB=true) |
| Displays a Mat image.
|
|
static void | imshow (string winname, string debugText) |
| Displays debug text.
|
|
static void | imshow (string winname, Texture img, bool dump=false, DumpMode dumpMode=DumpMode.GetRawTextureDataMode, CoreModule.Rect roi=null, string debugText=null) |
| Displays a Texture image.
|
|
static void | imshow (string winname, Texture img, bool dump, DumpMode dumpMode, in(int x, int y, int width, int height) roi, string debugText=null) |
| Displays a Texture image.
|
|
static void | imshow (string winname, Texture img, bool dump, DumpMode dumpMode, in Vec4i roi, string debugText=null) |
| Displays a Texture image.
|
|
static void | destroyWindow (string winname) |
| Destroys the specified window.
|
|
static void | destroyAllWindows () |
| Destroys all opened windows.
|
|
static void OpenCVForUnity.UnityUtils.DebugMatUtils.imshow |
( |
string | winname, |
|
|
Mat | img, |
|
|
bool | dump, |
|
|
in Vec4i | roi, |
|
|
string | debugText = null, |
|
|
bool | isDataSRGB = true ) |
|
static |
Displays a Mat image.
This method displays a Mat image.
If the image is 8-bit unsigned, it is displayed as is. If the image is 16-bit unsigned, the pixel values are divided by 256, mapping the value range [0, 255*256] to [0, 255]. If the image is 32-bit or 64-bit floating-point, the pixel values are multiplied by 255, mapping the value range [0, 1] to [0, 255]. 32-bit integer images are not supported due to ambiguity in the required transformation. If necessary, please preprocess the image to convert it to an 8-bit unsigned matrix. A new window will not be created if the number of image windows exceeds 50. Additionally, if a LayoutType is specified, please call the setup method() before the imshow method() is invoked for the first time.
- Parameters
-
winname | The name of the window. If the same name is already added, it will be overwritten. |
img | The Mat image to be displayed. |
dump | Specifies whether to display the result of the mat.dump() method. |
roi | The part of the image to be displayed (extracts the intersecting area of img and roi). |
debugText | The debug text to be displayed in the InputField. |
isDataSRGB | The isDataSRGB property of the Texture2D used when displaying the Mat image. If true, the data is assumed to be in sRGB color space. |
static void OpenCVForUnity.UnityUtils.DebugMatUtils.imshow |
( |
string | winname, |
|
|
Mat | img, |
|
|
bool | dump, |
|
|
in(int x, int y, int width, int height) | roi, |
|
|
string | debugText = null, |
|
|
bool | isDataSRGB = true ) |
|
static |
Displays a Mat image.
This method displays a Mat image.
If the image is 8-bit unsigned, it is displayed as is. If the image is 16-bit unsigned, the pixel values are divided by 256, mapping the value range [0, 255*256] to [0, 255]. If the image is 32-bit or 64-bit floating-point, the pixel values are multiplied by 255, mapping the value range [0, 1] to [0, 255]. 32-bit integer images are not supported due to ambiguity in the required transformation. If necessary, please preprocess the image to convert it to an 8-bit unsigned matrix. A new window will not be created if the number of image windows exceeds 50. Additionally, if a LayoutType is specified, please call the setup method() before the imshow method() is invoked for the first time.
- Parameters
-
winname | The name of the window. If the same name is already added, it will be overwritten. |
img | The Mat image to be displayed. |
dump | Specifies whether to display the result of the mat.dump() method. |
roi | The part of the image to be displayed (extracts the intersecting area of img and roi). |
debugText | The debug text to be displayed in the InputField. |
isDataSRGB | The isDataSRGB property of the Texture2D used when displaying the Mat image. If true, the data is assumed to be in sRGB color space. |
static void OpenCVForUnity.UnityUtils.DebugMatUtils.imshow |
( |
string | winname, |
|
|
Mat | img, |
|
|
bool | dump = false, |
|
|
CoreModule.Rect | roi = null, |
|
|
string | debugText = null, |
|
|
bool | isDataSRGB = true ) |
|
static |
Displays a Mat image.
This method displays a Mat image.
If the image is 8-bit unsigned, it is displayed as is. If the image is 16-bit unsigned, the pixel values are divided by 256, mapping the value range [0, 255*256] to [0, 255]. If the image is 32-bit or 64-bit floating-point, the pixel values are multiplied by 255, mapping the value range [0, 1] to [0, 255]. 32-bit integer images are not supported due to ambiguity in the required transformation. If necessary, please preprocess the image to convert it to an 8-bit unsigned matrix. A new window will not be created if the number of image windows exceeds 50. Additionally, if a LayoutType is specified, please call the setup method() before the imshow method() is invoked for the first time.
- Parameters
-
winname | The name of the window. If the same name is already added, it will be overwritten. |
img | The Mat image to be displayed. |
dump | Specifies whether to display the result of the mat.dump() method. |
roi | The part of the image to be displayed (extracts the intersecting area of img and roi). |
debugText | The debug text to be displayed in the InputField. |
isDataSRGB | The isDataSRGB property of the Texture2D used when displaying the Mat image. If true, the data is assumed to be in sRGB color space. |
static void OpenCVForUnity.UnityUtils.DebugMatUtils.imshow |
( |
string | winname, |
|
|
Mat | img, |
|
|
bool | isDataSRGB ) |
|
static |
Displays a Mat image.
This method displays a Mat image.
If the image is 8-bit unsigned, it is displayed as is. If the image is 16-bit unsigned, the pixel values are divided by 256, mapping the value range [0, 255*256] to [0, 255]. If the image is 32-bit or 64-bit floating-point, the pixel values are multiplied by 255, mapping the value range [0, 1] to [0, 255]. 32-bit integer images are not supported due to ambiguity in the required transformation. If necessary, please preprocess the image to convert it to an 8-bit unsigned matrix. A new window will not be created if the number of image windows exceeds 50. Additionally, if a LayoutType is specified, please call the setup method() before the imshow method() is invoked for the first time.
- Parameters
-
winname | The name of the window. If the same name is already added, it will be overwritten. |
img | The Mat image to be displayed. |
isDataSRGB | The isDataSRGB property of the Texture2D used when displaying the Mat image. If true, the data is assumed to be in sRGB color space. |
static void OpenCVForUnity.UnityUtils.DebugMatUtils.imshow |
( |
string | winname, |
|
|
Texture | img, |
|
|
bool | dump, |
|
|
DumpMode | dumpMode, |
|
|
in Vec4i | roi, |
|
|
string | debugText = null ) |
|
static |
Displays a Texture image.
This method displays a Texture image.
The supported texture classes are Texture2D and RenderTexture. A new window will not be created if the number of image windows exceeds 50. Additionally, if a LayoutType is specified, please call the setup method to initialize before invoking the imshow method for the first time.
- Parameters
-
winname | The name of the window. If the same name is already added, it will be overwritten. |
img | The Texture to be displayed. |
dump | Specifies whether to dump the pixel data of the Texture. The pixel data will be reordered to match the format returned by the mat.dump() method, with the origin located at the top-right corner. |
dumpMode | Specifies the dump mode (default is GetRawTextureDataMode). In GetRawTextureDataMode, if the TextureFormat is a compressed format, the raw byte data from the GetRawTextureData() method will be dumped as-is. Otherwise, the data will be reordered and dumped as pixel data with the origin in the top-right corner. In GetTexture32Mode, the Color32 array obtained via the GetPixels32() method will be reordered and dumped as pixel data with the origin in the top-right corner. If RenderTexture is specified for img, dumpMode is ignored and the data is always dumped in 4 channels per pixel. |
roi | The part of the image to be displayed (extracts the intersecting area of img and roi). |
debugText | The debug text to be displayed in the InputField. |
static void OpenCVForUnity.UnityUtils.DebugMatUtils.imshow |
( |
string | winname, |
|
|
Texture | img, |
|
|
bool | dump, |
|
|
DumpMode | dumpMode, |
|
|
in(int x, int y, int width, int height) | roi, |
|
|
string | debugText = null ) |
|
static |
Displays a Texture image.
This method displays a Texture image.
The supported texture classes are Texture2D and RenderTexture. A new window will not be created if the number of image windows exceeds 50. Additionally, if a LayoutType is specified, please call the setup method to initialize before invoking the imshow method for the first time.
- Parameters
-
winname | The name of the window. If the same name is already added, it will be overwritten. |
img | The Texture to be displayed. |
dump | Specifies whether to dump the pixel data of the Texture. The pixel data will be reordered to match the format returned by the mat.dump() method, with the origin located at the top-right corner. |
dumpMode | Specifies the dump mode (default is GetRawTextureDataMode). In GetRawTextureDataMode, if the TextureFormat is a compressed format, the raw byte data from the GetRawTextureData() method will be dumped as-is. Otherwise, the data will be reordered and dumped as pixel data with the origin in the top-right corner. In GetTexture32Mode, the Color32 array obtained via the GetPixels32() method will be reordered and dumped as pixel data with the origin in the top-right corner. If RenderTexture is specified for img, dumpMode is ignored and the data is always dumped in 4 channels per pixel. |
roi | The part of the image to be displayed (extracts the intersecting area of img and roi). |
debugText | The debug text to be displayed in the InputField. |
Displays a Texture image.
This method displays a Texture image.
The supported texture classes are Texture2D and RenderTexture. A new window will not be created if the number of image windows exceeds 50. Additionally, if a LayoutType is specified, please call the setup method to initialize before invoking the imshow method for the first time.
- Parameters
-
winname | The name of the window. If the same name is already added, it will be overwritten. |
img | The Texture to be displayed. |
dump | Specifies whether to dump the pixel data of the Texture. The pixel data will be reordered to match the format returned by the mat.dump() method, with the origin located at the top-right corner. |
dumpMode | Specifies the dump mode (default is GetRawTextureDataMode). In GetRawTextureDataMode, if the TextureFormat is a compressed format, the raw byte data from the GetRawTextureData() method will be dumped as-is. Otherwise, the data will be reordered and dumped as pixel data with the origin in the top-right corner. In GetTexture32Mode, the Color32 array obtained via the GetPixels32() method will be reordered and dumped as pixel data with the origin in the top-right corner. If RenderTexture is specified for img, dumpMode is ignored and the data is always dumped in 4 channels per pixel. |
roi | The part of the image to be displayed (extracts the intersecting area of img and roi). |
debugText | The debug text to be displayed in the InputField. |