linumpy.utils_images#
Functions#
|
Normalize an image between 0 and 1. |
|
Combine the two images into a single RGB image. |
|
Match the shape of two images by padding the smallest one. |
|
|
|
Apply a shift to the image in the xy plane. |
Module Contents#
- linumpy.utils_images.normalize(img, saturation=99.7)[source]#
Normalize an image between 0 and 1.
Parameters.#
- imgnp.ndarray
The image to normalize.
- saturationfloat, optional
The saturation value for the normalization
- returns:
The normalized image.
- rtype:
np.ndarray
- Parameters:
img (numpy.ndarray)
saturation (float)
- Return type:
- linumpy.utils_images.get_overlay_as_rgb(img1, img2)[source]#
Combine the two images into a single RGB image.
Parameters.#
- img1np.ndarray
The first image.
- img2np.ndarray
The second image.
- returns:
The overlay image.
- rtype:
np.ndarray
- Parameters:
img1 (numpy.ndarray)
img2 (numpy.ndarray)
- Return type:
- linumpy.utils_images.match_shape(img1, img2)[source]#
Match the shape of two images by padding the smallest one.
Parameters.#
- img1np.ndarray
The first image.
- img2np.ndarray
The second image.
- returns:
The two images with the same shape.
- rtype:
Tuple[np.ndarray, np.ndarray]
- Parameters:
img1 (numpy.ndarray)
img2 (numpy.ndarray)
- Return type:
- linumpy.utils_images.display_overlap(img1, img2, title=None, do_normalization=False)[source]#
- Return type:
None