Skip to content

[pixeldata] add option to prevent inversion for monochrome1#716

Merged
Enet4 merged 2 commits intoEnet4:masterfrom
feliwir:photometric-interpretation-behaviour
Jan 10, 2026
Merged

[pixeldata] add option to prevent inversion for monochrome1#716
Enet4 merged 2 commits intoEnet4:masterfrom
feliwir:photometric-interpretation-behaviour

Conversation

@feliwir
Copy link
Contributor

@feliwir feliwir commented Dec 4, 2025

  • add photometric interpretation option to control behaviour
  • default behaviour is kept as it currently is

- add photometric interpretation option to control behaviour
- default behaviour is kept as it currently is
@feliwir feliwir force-pushed the photometric-interpretation-behaviour branch from 9695761 to 4142f96 Compare December 4, 2025 08:07
@Enet4 Enet4 added enhancement A-lib Area: library C-pixeldata Crate: dicom-pixeldata labels Dec 4, 2025
Copy link
Owner

@Enet4 Enet4 left a comment

Choose a reason for hiding this comment

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

This looks simple and solid. There appears to be no other place where the monochrome1 conversion takes place, so the conditional on the new option is in the right place. I will just remove a redundant phrase in the documentation and merge. Thank you again @feliwir. 👍

@Enet4 Enet4 merged commit 859eeec into Enet4:master Jan 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lib Area: library C-pixeldata Crate: dicom-pixeldata enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants