where help [message #7998] |
Mon, 27 January 1997 00:00  |
Phil Williams
Messages: 78 Registered: April 1996
|
Member |
|
|
How do I get the x,y coords from the result of where?
Here's what I did:
IDL> t = where(slice eq max(slice))
IDL> print,slice(t)
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28
IDL> print,size(slice)
2 256 256 2 65536
IDL> y = t/255
IDL> x = t - (y*255)
IDL> print,slice(x,y)
0 0 0 0 0 0 10 10 10
11 9 10 0 10 10 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0
I also tried
IDL> print,slice(y,x)
0 0 0 0 0 0 0 0 0
0 0 0 0 12 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 10 11 19
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 10 0 0
0 10 0
IDL> print,max(slice)
28
What is going on??? Any help would be GREATLY appreciated!
Phil
--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
|
|
|