Skip to content

Conversation

MMelQin
Copy link
Collaborator

@MMelQin MMelQin commented Oct 7, 2025

This Pull Request is to ensure the volume image have consistent affine and space after it is converted from DICOM instances.

As described in #557 , the affine derived from the DICOM metadata had been switched to give orientation in RAS+ space to correspond to the expectation by the MONAI models/bundles, and the affine was derived from the DICOM Image Orientation Patient metadata in LPS+. The space metadata was then supposedly to be switched to RAS in the code, but due to some confusion (partly due to the fact that the Orientation transform in MONAI v1.5.0 and below had been ignoring space metadata), it had not been done only becomes an issue with the space metadata now being parsed and handled in MONAI v1.5.1.

@MMelQin MMelQin requested a review from Copilot October 7, 2025 01:53
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates DICOM image to volume conversion to use consistent coordinate space handling and adds GPU support for image stacking operations. The changes focus on making affine and space transformations more accurate when converting DICOM images to volume images.

  • Switches from LPS to RAS coordinate space for DICOM series conversion
  • Adds CuPy support for GPU-accelerated image concatenation and stacking
  • Improves metadata handling with proper None value conversion for batch processing

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
monai/deploy/operators/dicom_series_to_volume_operator.py Changes coordinate space from LPS to RAS for DICOM conversion
monai/deploy/operators/monai_seg_inference_operator.py Adds CuPy GPU support, improves metadata handling, and updates image stacking functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

sonarqubecloud bot commented Oct 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant