Represents an image structure for inference and visualization. More...
#include <MMindImage.h>
Public Member Functions | |
| StatusCode | createFromPath (const std::string &imagePath) |
| Creates an image by loading from a file path. | |
| StatusCode | show (const std::string &winName) const |
| Displays the image in a window. | |
| StatusCode | save (const std::string &savePath) const |
| Saves the image to the specified file path. | |
Public Attributes | |
| uint32_t | width {0} |
| Image width in pixels. | |
| uint32_t | height {0} |
| Image height in pixels. | |
| size_t | bytesPerRow {0} |
| Number of bytes per row (stride/pitch) | |
| std::shared_ptr< const void > | data |
| Pointer to image pixel data (BGR format, row-major) | |
Represents an image structure for inference and visualization.
This structure provides a unified image representation for the inference engine, containing both image metadata and pixel data. It supports image loading from files or other data format, visualization, and saving operations.
Definition at line 49 of file MMindImage.h.
| StatusCode mmind::dl::MMindImage::createFromPath | ( | const std::string & | imagePath | ) |
Creates an image by loading from a file path.
| [in] | imagePath | Path to the image file (supports common formats: .jpg, .png, .bmp, etc.) |
| StatusCode mmind::dl::MMindImage::save | ( | const std::string & | savePath | ) | const |
Saves the image to the specified file path.
| [in] | savePath | Destination path for saving the image. Format is determined by file extension. |
| StatusCode mmind::dl::MMindImage::show | ( | const std::string & | winName | ) | const |
Displays the image in a window.
| [in] | winName | Name of the window to display the image. |
| size_t mmind::dl::MMindImage::bytesPerRow {0} |
| std::shared_ptr<const void> mmind::dl::MMindImage::data |
Pointer to image pixel data (BGR format, row-major)
Definition at line 81 of file MMindImage.h.
| uint32_t mmind::dl::MMindImage::height {0} |
| uint32_t mmind::dl::MMindImage::width {0} |