ENHANCE-PET / PUMA

Tool to multiplex different tracer PET data from the same patient.
10 stars 1 forks source link

Feature Request: Add RGB Composite Image Creation Functionality to PUMA #12

Closed LalithShiyam closed 10 months ago

LalithShiyam commented 10 months ago

Description

The purpose of this feature is to enhance the PUMA toolkit by adding the capability to create composite RGB images from multiple NIfTI files. This feature will allow researchers to blend up to three separate images into a single RGB composite, enhancing the visualization of overlapping anatomical or functional data.

Motivation

Currently, PUMA excels at aligning PET tracer images spatially. The next logical step is to offer a seamless way to visualize these alignments. By introducing an RGB composite creator, users can generate a single image that carries detailed channel-wise information, aiding in more intuitive data interpretation and presentation.

Feature Details

Proposed Function Signature

def blend_images(*image_paths, output_path):
    """
    Blends multiple NIfTI images into a single composite RGB image.

    :param image_paths: Paths to NIfTI images to blend.
    :type image_paths: str
    :param output_path: Path to save the blended composite image.
    :type output_path: str
    """

Use Cases

  1. A researcher wants to overlay a PET image showing metabolic activity with another showing blood flow or PSMA expression. Using this feature, they can easily see areas of overlap and distinction in one composite image.
  2. May be - just may be we can visualise the hallmarks of cancer in a single multiplexed image.

Acceptance Criteria

Impact

This feature will significantly expand the visualization capabilities of PUMA, making it a more comprehensive tool for medical image analysis. It will facilitate better data interpretation and enhance the ability to communicate findings visually.

LalithShiyam commented 10 months ago

Solved it here with this commit 873ffbcc481cb612e15c752215782d6b1a14cbd8