-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
This may be partially related to #72, but seems to cover only a specific aspect of it.
The attached file is expected to be an 8-bit grayscale image stack. However, when loaded using TiffImages.jl, it is interpreted as a 16-bit RGB image.
Upon investigating, I suspect the issue may stem from this line:
Line 71 in ff965a6
| data = fixcolors(loaded, first(ifds)) |
fixcolor appears to convert eltype(data) from TiffImages.Palette{FixedPointNumbers.N0f8} to ColorTypes.RGB{FixedPointNumbers.N0f16}.
As a result, this later line:
TiffImages.jl/src/types/dense.jl
Line 138 in ff965a6
| ifd[BITSPERSAMPLE] = collect(UInt16.(bitspersample(data))) |
BITSPERSAMPLE tag from Tag(BITSPERSAMPLE, 8) to Tag(BITSPERSAMPLE, UInt16[16, 16, 16]).
I observed similar behavior with the TIF file referenced in #72.
Could you clarify whether this is the intended behavior? If not, I’d be happy to help fix it. 😃
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working