ai_ct_scans.image_processing_utils module

Module containing generic image processing functionality.

ai_ct_scans.image_processing_utils.normalise(image)

Normalise an image.

Parameters

image (np.ndarray) – A 2D greyscale image.

Returns

A 2D greyscale image with 8 bit intensity values.

Return type

(np.ndarray)

ai_ct_scans.image_processing_utils.overlay_warp_on_slice(aligned_slice, warp_slice)

Generate an image showing a 2D aligned scan slice with a heatmap overlaid representing the magnitude of the warp at each pixel.

Parameters
  • aligned_slice (np.ndarray) – A 2D greyscale image from a scan.

  • warp_slice (np.ndarray) – A 2D greyscale array representing the magnitude of the warp. Should be the same shape as aligned_slice.

Returns

An image of the 2D scan slice with warp heatmap overlaid.

Return type

(np.ndarray)