Data Structures | |
| class | Image |
| Image Class for working with algorithms. More... | |
Functions | |
| int | _get_byte_size (Size size, int bits_per_pixel, bool packed_or_yuv) |
| Calculate the byte size of an image buffer for a given size and pixel format. | |
| Any | _check_and_get_icv_image (Any image_var) |
| Any | _check_icv_image (Any image_var) |
|
protected |
Calculate the byte size of an image buffer for a given size and pixel format.
| size | The image dimensions (width, height) in pixels. |
| bits_per_pixel | The number of storage bits per pixel for the pixel format. |
| packed_or_yuv | If True, assumes packed or yuv format (truncate bits to full bytes). If False, assumes other format (round up to nearest byte). |