ImageUtils#
basic image utilities class.
ImageUtils Methods#
|
Perform a size filter on an image. |
|
Get a cv structuring ellipse element. |
|
Get an ellipse kernel, useful for optionally providing a kernel to other functions. |
|
Performs a dilate operation on an image. |
|
Performs an erode operation on an image. |
|
Performs an open operation on an image, an erosion followed by a dilation. |
|
Performs a close operation on an image, a dilation followed by an erosion. |
|
Performing some basic image noise reduction techniques. |
|
Return an image thresholded by a value of 0 to 1 relative to the max. |
|
Return an image thresholded by a value relative to the median. |
|
Return an image thresholded by a value relative to the image itself. |
|
Convert an image to a mask, where image is > 0. |
|
Build a threholded mask from an image. |
ImageUtils References#
Method Reference#
Perform a size filter on an image.
https://www.geeksforgeeks.org/python-opencv-connected-component-labeling-and-analysis/.
Get a cv structuring ellipse element.
Get an ellipse kernel, useful for optionally providing a kernel to other functions.
Performs a dilate operation on an image.
Performs an erode operation on an image.
Performs an open operation on an image, an erosion followed by a dilation.
Performs a close operation on an image, a dilation followed by an erosion.
Performing some basic image noise reduction techniques.
Use a value of None to skip an operation, the operation order is dilate (9), erode (9), open (None), close (None) – defaults in parens.
- Parameters:
mask (ndarray) – an image mask to turn into an annotation
params (ImageOperationParams) – an ImageOperationParams set
- Return type:
Return an image thresholded by a value of 0 to 1 relative to the max.
Return an image thresholded by a value relative to the median.
Return an image thresholded by a value relative to the image itself.
Convert an image to a mask, where image is > 0.