Mech-DLK SDK (C#) 3.0.0
Mech-DLK SDK (C#) Reference Documentation
 
Loading...
Searching...
No Matches
MMindImageWrapper.h
Go to the documentation of this file.
1#pragma once
2
3#include "DataStructures.h"
4#include "interface/MMindImage.h"
5
6using namespace System;
7
8namespace Mmind {
9namespace Dl {
10
14 public ref class MMindImage : IDisposable
15 {
16 private:
17 mmind::dl::MMindImage* _nativeImage;
18 bool _disposed;
19
20 public:
25
30
35
41 StatusCode CreateFromPath(String^ imagePath);
42
50 StatusCode CreateFromRgbData(array<unsigned char>^ rgbData, int width, int height);
51
57 StatusCode Save(String^ savePath);
58
64 StatusCode Show(String^ windowName);
65
69 property unsigned int Width
70 {
71 unsigned int get();
72 }
73
77 property unsigned int Height
78 {
79 unsigned int get();
80 }
81
85 property size_t BytesPerRow
86 {
87 size_t get();
88 }
89
94 array<unsigned char>^ GetData();
95
99 mmind::dl::MMindImage* GetNativePtr();
100 };
101
102}} // namespace Mmind::Dl
property unsigned int Height
Get the height of the image.
array< unsigned char > GetData()
Get the image data as byte array.
property unsigned int Width
Get the width of the image.
StatusCode Save(String^ savePath)
Save image to file.
MMindImage()
Constructor.
StatusCode CreateFromRgbData(array< unsigned char >^ rgbData, int width, int height)
Create image from RGB byte array.
StatusCode Show(String^ windowName)
Display image in a window.
StatusCode CreateFromPath(String^ imagePath)
Create image from file path.
~MMindImage()
Destructor.
property size_t BytesPerRow
Get the bytes per row of the image.
mmind::dl::MMindImage * GetNativePtr()
Get native pointer (for internal use)
StatusCode
Status codes for MechMind DL SDK operations.
Definition Enums.h:12