Utilities modulesΒΆ

ImageArray(input_array)

Class for image arrays.

load_data(img[, data_range, normalize, ...])

Load data from a numpy array, a pytorch tensor or a file path.

load_mhd(file_dir, file_name)

Load data from a .mhd file.

load_raw(file_dir, file_name)

Load data from a .raw file.

load_nifti(file_path)

Load data from a .nii file.

normalize_data(img, data_range_output[, ...])

Normalize an image to a given data range.

crop_image(img, x, y, z)

Crop the image array.

correlate_convolve_abs(img, kernel[, mode, ...])

Correlates or convolves a numpy array with a kernel.

gabor_convolve(img, scales_num, orientations_num)

Compute Log Gabor filter responses.

export_results(metrics, output_path, filename)

Export data to a csv file.

export_metadata(metrics, metrics_parameters, ...)

Export the metadata (custom parameters and package version) to a txt file.

export_image(results, img_r, img_m[, x, y, ...])

Print the reference and modified image side by side with the metric values.

find_largest_region(img[, iterations, ...])

Find the largest region in a binary image.

visualize_2d(img[, export_path])

Visualize a 2D image.

visualize_3d(img, slices[, export_path])

Visualize 3D image slices in 3 different planes.