floating point grayscale image?
floating point grayscale image?
- Subject: floating point grayscale image?
- From: Roberto Abraham <email@hidden>
- Date: Sun, 2 Dec 2001 13:29:23 -0500 (EST)
I'm trying to create an image (directly in memory, i.e. I'm not reading it
from a file) and display it as a grayscale intensity map. Each pixel is a
floating point number. I'm afraid I'm hoplessly new to both Cocoa and to
Objective-C programming and am having some trouble figuring out how best
to go about displaying my data once I've created it in memory. Should I be
looking at the NSBitmapImageRep class or is there some more sensible class
I should be looking at? I've been puzzling over the Application Kit
documentation for a little while and it looks to me like NSBitmapImageRep
is *almost* what I want but that it is not designed to work with arrays of
floating point numbers. Perhaps I am mistaken? The dynamic range of my
image is rather large and I'd rather not have to try to quantize this down
to an 8 bit integer grayscale. Can anyone offer some sage advice on how
best to display my data as an image?
Cheers,
Bob Abraham
--
------------------------------------------------------------------------
Prof. Roberto Abraham | Office: Rm.1405A
Dept. of Astronomy & Astrophysics | Phone (direct): 416-946-7289
University of Toronto | Phone (cellular): 416-830-8172
60 St. George St | Phone (department): 416-978-2016
Toronto, ON M5S 3H8 | Departmental FAX: 416-946-7287
Canada |
------------------------------------------------------------------------