Defines the Image.
More...
#include <MMindImage.h>
|
| int | width = 0 |
| | The width of the image.
|
| |
| int | height = 0 |
| | The height of the image.
|
| |
| int | channel = 0 |
| | The number of channels in the image.
|
| |
| int | depth = 0 |
| | The depth of the image.
|
| |
| std::shared_ptr< unsigned char > | data = nullptr |
| | The pointer of the image data.
|
| |
◆ ~MMindImage()
| mmind::dl::MMindImage::~MMindImage |
( |
| ) |
|
Releases the memory of the image.
◆ createFromPath()
| StatusCode mmind::dl::MMindImage::createFromPath |
( |
const std::string & |
imagePath | ) |
|
Creates an image from its path.
- Parameters
-
| [in] | imagePath | Image storage path. |
- Returns
- See StatusCode for details.
◆ save()
| StatusCode mmind::dl::MMindImage::save |
( |
const std::string & |
savePath | ) |
|
Saves the image to a specified directory.
- Parameters
-
| [in] | savePath | The path to save the image. |
- Returns
- See StatusCode for details.
◆ show()
| StatusCode mmind::dl::MMindImage::show |
( |
const std::string & |
winName | ) |
|
Visualizes an image.
- Parameters
-
| [in] | winName | The window name for visualizing an image. |
- Returns
- See StatusCode for details.
- Note
- The size of the image display window equals to that of the image.
◆ channel
| int mmind::dl::MMindImage::channel = 0 |
The number of channels in the image.
◆ data
| std::shared_ptr<unsigned char> mmind::dl::MMindImage::data = nullptr |
The pointer of the image data.
◆ depth
| int mmind::dl::MMindImage::depth = 0 |
◆ height
| int mmind::dl::MMindImage::height = 0 |
◆ width
| int mmind::dl::MMindImage::width = 0 |
The documentation for this struct was generated from the following file: