Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LegacyConvertedEnhancedMRImage error with color dicoms #317

Closed
aporter-turing opened this issue Jan 31, 2025 · 1 comment
Closed

LegacyConvertedEnhancedMRImage error with color dicoms #317

aporter-turing opened this issue Jan 31, 2025 · 1 comment

Comments

@aporter-turing
Copy link

aporter-turing commented Jan 31, 2025

I am attempting to use the converter to change a series of dicoms into an enhanced dicom. The dicoms are in RGB format but aren't being recognized during conversion.

    if array.ndim > 2:
        if planar_configuration is None:

           raise ValueError(
                Planar configuration needs to be specified for encoding of 
                color image frames.)
           ValueError: Planar configuration needs to be specified for encoding of color image frames.

I noticed that further along the converter pipeline the parameter planar_configuration is not given during this segment but the dicoms have the header ds.PlanarConfiguration I think this PR fixes the error above.

@CPBridge
Copy link
Collaborator

CPBridge commented Feb 9, 2025

As discussed on #318, legacy conversions can only use monochrome frames. #321 adds a check to enforce this to give a better error message.

Closing as complete

@CPBridge CPBridge closed this as completed Feb 9, 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

No branches or pull requests

2 participants