octave-maintainers
[Top][All Lists]
Advanced

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

imwrite and cdata as double


From: bpabbott
Subject: imwrite and cdata as double
Date: Wed, 09 Feb 2011 18:56:03 +0000 (GMT)

I encountered an error using imwrite today.

When the cdata is of type double it is converted by ...

img = uint8 (img - 1);

This produces an error because the lowest color index is 1.

I'm unfamiliar with images and imwrite so I thought it prudent to check before pushing the attached change.

Ben


Attachment: changeset.patch
Description: Binary data


reply via email to

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