Color-/Lineshifts under Windows?

Marco Feuerstein feuerste at cs.tum.edu
Tue Aug 3 20:18:13 EDT 2010


Thanks for your quick reply.
Writing in binary seems to fix the color problems, but the black dotted pattern remains (see updated test7-09.ppm).
Does this also happen under Linux?
Best,
Marco


> -----Original Message-----
> From: Adam Goode [mailto:agoode at andrew.cmu.edu]
> Sent: Dienstag, 3. August 2010 18:58
> To: Marco Feuerstein
> Cc: openslide-users at lists.andrew.cmu.edu
> Subject: Re: Color-/Lineshifts under Windows?
> 
> 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: test7-09.ppm
Type: application/octet-stream
Size: 120015 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20100804/04496af8/attachment-0001.obj 


More information about the openslide-users mailing list