Issue 29 in pylibtiff: incorrectly imports big-endian 16bit uints

5 views
Skip to first unread message

pyli...@googlecode.com

unread,
Jan 27, 2014, 10:24:09 PM1/27/14
to pylibtif...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 29 by tcasw...@gmail.com: incorrectly imports big-endian 16bit
uints
http://code.google.com/p/pylibtiff/issues/detail?id=29

What steps will reproduce the problem?
1. load data from a big-endian uint16 file

What is the expected output? What do you see instead?

It looks like the bytes are not swapped so the returned values are in the
bit order ([8, 9, .. 15, 0, 1, ... 7]).

There is already a function `IsByteSwapped` which will determine if the
swap is needed.

What version of the product are you using? On what operating system?

master, linux

See test images at
https://github.com/soft-matter/pims/blob/master/pims/tests/data/stuck.tif


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages