Image class for MechMind DL SDK. More...
#include <MMindImageWrapper.h>
Public Member Functions | |
| MMindImage () | |
| Constructor. | |
| ~MMindImage () | |
| Destructor. | |
| !MMindImage () | |
| Finalizer. | |
| StatusCode | CreateFromPath (String^ imagePath) |
| Create image from file path. | |
| StatusCode | CreateFromRgbData (array< unsigned char >^ rgbData, int width, int height) |
| Create image from RGB byte array. | |
| StatusCode | Save (String^ savePath) |
| Save image to file. | |
| StatusCode | Show (String^ windowName) |
| Display image in a window. | |
| array< unsigned char > | GetData () |
| Get the image data as byte array. | |
| mmind::dl::MMindImage * | GetNativePtr () |
| Get native pointer (for internal use) | |
Public Attributes | |
| property unsigned int | Width |
| Get the width of the image. | |
| property unsigned int | Height |
| Get the height of the image. | |
| property size_t | BytesPerRow |
| Get the bytes per row of the image. | |
Image class for MechMind DL SDK.
Definition at line 14 of file MMindImageWrapper.h.
| Mmind::Dl::MMindImage::MMindImage | ( | ) |
Constructor.
| Mmind::Dl::MMindImage::~MMindImage | ( | ) |
Destructor.
| Mmind::Dl::MMindImage::!MMindImage | ( | ) |
Finalizer.
| StatusCode Mmind::Dl::MMindImage::CreateFromPath | ( | String^ | imagePath | ) |
Create image from file path.
| imagePath | Path to the image file |
| StatusCode Mmind::Dl::MMindImage::CreateFromRgbData | ( | array< unsigned char >^ | rgbData, |
| int | width, | ||
| int | height ) |
Create image from RGB byte array.
| rgbData | RGB image data as byte array |
| width | Image width |
| height | Image height |
| array< unsigned char > Mmind::Dl::MMindImage::GetData | ( | ) |
Get the image data as byte array.
| mmind::dl::MMindImage * Mmind::Dl::MMindImage::GetNativePtr | ( | ) |
Get native pointer (for internal use)
| StatusCode Mmind::Dl::MMindImage::Save | ( | String^ | savePath | ) |
Save image to file.
| savePath | Path to save the image |
| StatusCode Mmind::Dl::MMindImage::Show | ( | String^ | windowName | ) |
Display image in a window.
| windowName | Name of the window to display the image |
| property size_t Mmind::Dl::MMindImage::BytesPerRow |
Get the bytes per row of the image.
Definition at line 85 of file MMindImageWrapper.h.
| property unsigned int Mmind::Dl::MMindImage::Height |
Get the height of the image.
Definition at line 77 of file MMindImageWrapper.h.
| property unsigned int Mmind::Dl::MMindImage::Width |
Get the width of the image.
Definition at line 69 of file MMindImageWrapper.h.