dataeval.utils.preprocessing¶
Utility functions for preprocessing images and bounding boxes.
Classes¶
A bounding box representation that supports multiple coordinate formats. |
|
Supported bounding box coordinate formats. |
Functions¶
|
Extract a region from an image based on a bounding box. |
|
Return the image filtered using a 3x3 edge detection kernel. |
|
Approximates the bit depth of the image using the min and max pixel values. |
|
Normalize the image shape into (C,H,W) format. |
|
Rescales the image using the bit depth provided. |
|
Resizes a grayscale (HxW) 8-bit image using PIL or scipy.ndimage.zoom. |
|
Convert an image of arbitrary channels (CHW) to a single-channel uint8 grayscale image (HW). |