Color-/Lineshifts under Windows?

Adam Goode agoode at andrew.cmu.edu
Tue Aug 3 12:57:32 EDT 2010


On 08/03/2010 12:49 PM, Marco Feuerstein wrote:
> Hi Adam,
> 
> we are experiencing strange problems when loading MIRAX files under Windows.
> For example, when loading the dataset from
> http://openslide.cs.cmu.edu/download/openslide-testdata/Mirax/CMU-1.zip and
> setting
>    bool skip = false;
> in line 360 of test.c, some of the resulting ppm images look like the
> attached ones. Some lines are shifted, some colors, too (e.g. on
> test7-10.ppm), and sometimes a black dotted pattern appears (e.g. on
> test7-09.ppm visible on the sample).
> Do you have any idea where we can start digging into the problem?
> Thanks a lot for your help again!

Hmm, sorry you're having problems.

Can you try changing:

  FILE *f = fopen(filename, "w");

to

  FILE *f = fopen(filename, "wb");

in write_as_ppm?

Let me know if this works.



Thanks,

Adam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
Url : http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20100803/10185235/attachment.bin 


More information about the openslide-users mailing list