Skip to content

Correct way to read photometric interpretation? #254

Open
@aconbere

Description

@aconbere

What's the intended way to access the photometric interpretation tag? By the time I have a decoder it's been parsed and stored in the Image. But the image field is private and the Decoder doesn't offer a method to access it. Should I just fall back on munging about with tags?

        let photometric_interpretation = tag_reader
            .find_tag(Tag::PhotometricInterpretation)?
            .map(Value::into_u16)
            .transpose()?
            .and_then(PhotometricInterpretation::from_u16)
            .ok_or(TiffUnsupportedError::UnknownInterpretation)?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions