synthval.utilities#
Module providing utility functions and classes for handling image datasets and feature extraction.
This module contains utility functions for image processing, such as converting DICOM and other image formats to PIL Images, and managing datasets of extracted features for training and testing. The dataset management is integrated with pyNeVer’s training and testing strategies.
Functions#
- get_stream_logger(logger_origin: str) -> logging.Logger
Utility function to instantiate a stream logger.
- get_pil_image(image_path: str) -> PIL.Image.Image
Utility function to convert a DICOM or generic image file to a PIL Image.
Classes#
- FeaturesDataset(pynever.datasets.Dataset)
A dataset class for managing features extracted from original and synthetically generated images for use in PyNEVER training and testing.
Classes#
Utility class for the management of the dataset composed by the feature extracted from the original images |
Functions#
|
Utility function to instantiate a stream logger. |
|
Utility function to convert a .dcm or generic image to a PIL Image. |
Module Contents#
- synthval.utilities.get_stream_logger(logger_origin)#
Utility function to instantiate a stream logger.
- Parameters:
logger_origin (str) – Origin of the logger.
- Returns:
The stream logger.
- Return type:
logging.Logger
- synthval.utilities.get_pil_image(image_path)#
Utility function to convert a .dcm or generic image to a PIL Image.
- Parameters:
image_path (str) – Path to the image to convert.
- Returns:
The converted PIL Image.
- Return type:
PIL.Image