eReg utils
ereg.metrics
- ereg.utils.metrics.get_ssim(ground_truth: str | Image, prediction: str | Image) float
Compare the ground truth image to the prediction image.
- Parameters:
ground_truth (Union[str, sitk.Image]) – The ground truth image.
prediction (Union[str, sitk.Image]) – The prediction image.
- Returns:
SSIM
- Return type:
float
ereg.io
- ereg.utils.io.initialize_configuration(configuration: str | dict) dict
Initialize the configuration dictionary.
- Parameters:
configuration (Union[str, dict]) – The configuration file or dictionary.
- Returns:
The configuration dictionary.
- Return type:
dict
- ereg.utils.io.read_image_and_cast_to_32bit_float(input_image: str | Image) Image
Cast an image to 32-bit float.
- Parameters:
input (sitk.Image) – The input image.
- Returns:
The casted image.
- Return type:
sitk.Image