>Hi all,
>
>I have grey-scale, TIFF-formatted images that I would like to analyze in
>DX.  When I open the images in DX, they are displayed in various colors
>(although I would like the images to be displayed in their original
>9-color greyscale); could someone please tell me how to display the images
>in their original greyscale format?
>
>Additionally, I would like to designate ONE color for particular pixel
>values (that I could choose) within each image, and, subsequently,
>calculate the percent of these newly-colored pixels within each image.
>Does anyone know of a relatively easy method to do this using DX?
>
>Thanks,
>Kelly
>______________________________________________________________________________


Hm. I was able to export TIFFs with CLUTs from Photoshop that DX read in
and from which I could extract the CLUT, then use Lookup to assign the byte
values back to the looked up colors. However, there are so many flavors of
TIFF, I can't be sure you have this arrangment in yours (CLUT plus byte
values per pixel). You can look with Print ("rd") attached right after your
ReadImage to see. If so, both problems are trivial, since you can Include
on the byte values to select out only valid values, then count them; or
assign any arbitrary color/gray RGB to any pixel value. To do Include, set
min and max to the desired value, then Cull true (pointwise), then
Inquire("items", "count") (or something similar: see Inquire's Help for the
exact syntax), on the data component, or the positions component (since the
pixels are conceptually position-dependent).

Chris Pelkie
Vice President/Scientific Visualization Producer
Conceptual Reality Presentations, Inc.
30 West Meadow Drive
Ithaca, NY 14850
[EMAIL PROTECTED]

Reply via email to