Hi again,
I am (still) having difficulty with the Compute module, and I think it's
due to the fact that I have scalar data, not vector data. My module
pathway is as follows:
ReadImage -> Mark (colors) -> Colormap (setting the hue to a single color
and setting the value to represent the landmark on an image) -> Color ->
Collect -> Compute (input a; expression a.0) -> Print (rd; data)
There are 5 components:
0 = positions
1 = connections
2 = colors
3 = box
4 = data (generic array: 32620 items, unsigned byte, real,
scalar)
Again, all I need to do (it sounds relatively simple) is to calculate
the percentage (of pixel-values) of these newly-colored structures within
each image. Could I change an output in one of these aforementioned
modules in order to alleviate my problem?
Any help would be greatly appreciated.....
Thanks,
Kelly
______________________________________________________________________________
Kelly G. Gallagher
New Mexico State University, Department of Biology, Department 3AF, Box 30001,
Las Cruces, New Mexico 88003, phone: (505) 646-3611 / fax: (505)646-5665
______________________________________________________________________________
On Wed, 13 Sep 2000, David Thompson wrote:
> Images do not necessarily have data. When they are Imported, they
> have colors. If you "Mark" colors, then the colors become the 'data'
> component and you can work on them. You may then want to "Compute"
> with an expression of a.0 to extract only one of the colors from the
> 3-vector color component.
>
> David
>
> >Hi all,
> >
> >I have been successful in assigning colors to given structures in
> >'.tiff', greyscale images (via the ColorMap, Color, Mark, and Collect
> >modules). Now, I would like to calculate the percentage (of
> >pixel-values per image) of these newly-colored structures. Thus far, I
> >have attempted to use the following modules: Include, Inquire, Compute,
> >and Statistics, yet I seem to receive error messages such as "Invalid
> >data: missing data component" or "Invalid data: input must be an array".
> >Somehow, through the flow of the modules, I must've lost the "positions"
> >and/or "data" array (I think this is my problem). Can someone please tell
> >me how to complete the solution to my problem?
> >
> >Thanks,
> >Kelly
> >______________________________________________________________________________
> >Kelly G. Gallagher
> >New Mexico State University, Department of Biology, Department 3AF, Box
> >30001,
> >Las Cruces, New Mexico 88003, phone: (505) 646-3611 / fax: (505)646-5665
> >______________________________________________________________________________
>
> --
> .............................................................................
> David L. Thompson The University of Montana
> mailto:[EMAIL PROTECTED] Computer Science Department
> http://www.cs.umt.edu/u/dthompsn Missoula, MT 59812
> Work Phone : (406)257-8530
>