ImageSize
Description
Obtains the image size information.
Structure Definition
1 2 3 4 5 6 7 8 9 10 11 12 | namespace MxBase{ struct ImageSize { size_t height; size_t width; ImageSize() = default; ImageSize(size_t height, size_t width) { this->width = width; this->height = height; } } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 | namespace MxTools{ struct ImageSize { size_t height; size_t width; size_t area; ImageSize(int height, int width) { this->width = static_cast<size_t>(width); this->height = static_cast<size_t>(height); this->area = static_cast<size_t>(height * width); } } } |
Parameters
Parameter |
Description |
|---|---|
height |
Height of the image |
width |
Width of the image |
area |
Area of the image |
Parent topic: General Data Structures