◆ LayoutType
LayoutType
Enumerator |
---|
TOP | |
LEFT | |
RIGHT | |
BOTTOM | |
◆ clear()
static void OpenCVForUnity.UnityUtils.DebugMatUtils.clear |
( |
| ) |
|
|
static |
Destroys the DebugMatUtils GameObjects.
The method clear destroys DebugMatUtils-related GameObjects from the hierarchy.
◆ destroyAllWindows()
static void OpenCVForUnity.UnityUtils.DebugMatUtils.destroyAllWindows |
( |
| ) |
|
|
static |
Destroys all of the windows.
The method destroyAllWindows destroys all of the opened windows.
◆ destroyWindow()
static void OpenCVForUnity.UnityUtils.DebugMatUtils.destroyWindow |
( |
string |
winname | ) |
|
|
static |
Destroys the specified window.
The method destroyWindow destroys the window with the given name.
- Parameters
-
winname | Name of the window to be destroyed. |
◆ imshow() [1/2]
static void OpenCVForUnity.UnityUtils.DebugMatUtils.imshow |
( |
string |
winname, |
|
|
Mat |
img, |
|
|
bool |
dump = false , |
|
|
CoreModule.Rect |
roi = null , |
|
|
string |
debugText = null |
|
) |
| |
|
static |
Displays an image in the specified window.
The method imshow displays an image in the specified window.
If the image is 8-bit unsigned, it is displayed as is. If the image is 16-bit unsigned, the pixels are divided by 256. That is, the value range [0,255*256] is mapped to [0,255]. If the image is 32-bit or 64-bit floating-point, the pixel values are multiplied by 255. That is, the value range [0,1] is mapped to [0,255]. 32-bit integer images are not processed anymore due to ambiguouty of required transform. Convert to 8-bit unsigned matrix using a custom preprocessing specific to image's context.
- Parameters
-
winname | Name of the window. |
mat | Image to be shown. |
dump | Whether to display the result of mat.dump() method? |
roi | Extract the intersecting rectangle of img and roi. |
debugText | Displays the specified string in the InputField. |
◆ imshow() [2/2]
static void OpenCVForUnity.UnityUtils.DebugMatUtils.imshow |
( |
string |
winname, |
|
|
string |
debugText |
|
) |
| |
|
static |
Displays debug text in the specified window.
The method imshow displays debug text in the specified window.
- Parameters
-
winname | Name of the window. |
debugText | Displays the specified string in the InputField. |
◆ setup()
Setup the DebugMatUtils GameObject.
The method setup sets up DebugMatUtils-related GameObjects to the hierarchy. By calling this method, the initialization process that occurs when the imshow() method is called for the first time can be performed in advance.
- Parameters
-
The documentation for this class was generated from the following file:
- OpenCVForUnity/Assets/OpenCVForUnity/org/opencv/unity/DebugMatUtils/DebugMatUtils.cs