Larvitar Documentation
Home
Guide
API
GitHub
Home
Guide
API
GitHub
  • API

    • Initializing
    • Parsing
    • Loading
    • Rendering
    • Interacting
    • Testing
    • Modules

      • Logger
      • Store
      • Managers

        • Image Manager
        • GSPS Manager
        • File Manager
      • Parsers

        • PDF Parser
        • NRRD Parser
        • ECG Parser
      • Loaders
        • DICOM Loader
        • MultiFrame Loader
        • SingleFrame Loader
        • DSA Image Loader
        • File Loader
        • Nrrd Loader
      • Interaction Tools

        • Initialize and manage Tools
        • Default and Custom Tools
        • Segmentation Tools
        • DvTools
      • Utilities

        • DICOM Anonymization
        • DICOM Customization
        • Tags
        • Utils
        • Memory
      • Post Processing

        • DSA
      • Visualizations

        • Layers
        • ECG
        • Color Maps
        • Greyscale Presentation States
      • Testing
Larvitar

DICOM Loader

The Common Loader Module provides essential utilities for handling and extracting image data from DICOM datasets. It supports the computation and retrieval of image frame metadata, enabling seamless integration with imaging workflows.

Key Responsibilities

  • Extract Image Frames: Retrieves metadata for a specific image frame from DICOM datasets.
  • Integration with DICOM Parsers: Works in conjunction with the cornerstoneDICOMImageLoader for efficient decoding.
  • Metadata Fallback: Provides fallback metadata extraction when the dataset is unavailable.

How It Works

  1. Dataset-Driven Extraction:

    • If the dataSet parameter is provided, metadata is extracted using the cornerstoneDICOMImageLoader API.
    • This ensures compatibility with DICOM standard formats.
  2. Metadata Fallback:

    • If no dataSet is available, the function falls back to extracting metadata from the provided metadata object.
  3. Structured Output:

    • Returns a standardized object containing all relevant image frame properties, including pixel configurations and optional color lookup tables.


D/Vision Lab
Last Updated:
Contributors: Laura Borghesi, Simone "Lateralus" Manini
Next
MultiFrame Loader