itkwasm_dicom.apply_presentation_state_to_image#
Module Contents#
Functions#
Apply a presentation state to a given DICOM image and render output as pgm bitmap or dicom file. |
API#
- itkwasm_dicom.apply_presentation_state_to_image.apply_presentation_state_to_image(image_in: os.PathLike, presentation_state_file: os.PathLike, config_file: str = '', frame: int = 1, no_presentation_state_output: bool = False, no_bitmap_output: bool = False) Tuple[Dict, itkwasm.Image]#
Apply a presentation state to a given DICOM image and render output as pgm bitmap or dicom file.
- Parameters:
image_in (os.PathLike) – Input DICOM file
presentation_state_file (os.PathLike) – Process using presentation state file
config_file (str) – filename: string. Process using settings from configuration file
frame (int) – frame: integer. Process using image frame f (default: 1)
no_presentation_state_output (bool) – Do not get presentation state information in text stream.
no_bitmap_output (bool) – Do not get resulting image as bitmap output stream.
- Returns:
Output overlay information
- Return type:
Dict
- Returns:
Output image
- Return type:
Image