[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: saving a NxM matrix as a color-mapped image of size NxM
From: |
James Sherman Jr. |
Subject: |
Re: saving a NxM matrix as a color-mapped image of size NxM |
Date: |
Thu, 13 Dec 2012 10:42:53 -0500 |
On Thu, Dec 13, 2012 at 10:10 AM, <address@hidden> wrote:
> Dear James,
>
>
> On 12/12/12 09:16:02, James Sherman Jr. wrote:
>> Well, its not specifically tied to imwrite (I oversimplified in my
>> original message). I believe its more specific to your version of
>> graphicsmagik (where the error message came from). My graphicsmagik
>> on my machine can work with 16bit, so (if needed for whatever reason)
>> I can do 16 bit. Since yours is 8 bit, it can only handle 2^8 = 256
>
> Hm, my octave reports when using imwrite:
> warning: your version of ImageMagick limits images to 16 bits per pixel
> That sounds like I could do 16 bit per pixel but how would I tell octaves
> imwrite to do either 8 or 16 bit per pixel?
>
> Thanks for Your help
> Lynx
Sorry, I meant to say ImageMagick (not graphicsmagik). ImageMagick is
a separate program that (as you may have surmised) Octave calls to
write and read images. It can be found here:
http://www.imagemagick.org/script/index.php
The first thing to do would be to install the 16 bit version. Second,
you may have to tell Octave to use the new ImageMagick, though I'm not
sure what exactly is needed to so this (you may need to rebuild Octave
with a certain flag to tell it where the new ImageMagick installation
is, but I'm not sure about this process). Hopefully someone else with
more knowledge than I could be more detailed.