help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave 3.8.0 imread and imwrite


From: Carnë Draug
Subject: Re: Octave 3.8.0 imread and imwrite
Date: Sat, 22 Feb 2014 17:31:48 +0000

On 21 February 2014 14:22,  <address@hidden> wrote:
> I am trying to do something very simple and it is not working the way I would
> expect. the file input.jpg is a an 8bit grayscale image. If I read it in
> with imread the array ends up as a uint8 array
>
>
>                 AID=imread("input.jpg");
>                 imwrite(AID, "test.bmp");
>                 imwrite(AID, "test.jpg");
>
> When I write it out, test.bmp is a 24bit image and has a red tinge to it.
> The test.jpg is an 8bit image bit it is not correct as the white background
> in the image becomes a dark gray.
>
> This has worked forever with 3.2.4 and 3.6.4.
>
> What am I doing wrong?

Unless you give us a way to reproduce the problem, we can't do much.
Can you send us the picture? If it was working before and not anymore,
it may be a regression (there was a lot of changes in imwrite and
imread for Octave 3.8.0). The bug tracker may be the right place to
report this.

Carnë


reply via email to

[Prev in Thread] Current Thread [Next in Thread]