Re: Still getting trouble with ROI's [message #37885 is a reply to message #37884] |
Tue, 03 February 2004 03:17   |
Nuno Oliveira
Messages: 75 Registered: October 2003
|
Member |
|
|
Thanks, Bruce. I was looking in the tutorials and it was not clear the
working procedure of the where function (it is now?). It works on a mask
right? So if have result = where(xy) it would mean that xy is a matrix (in
the case 2-D) where de elements of the roi have value 1 and the others have
value 0.
So maybe the solution is seeking for i,j such that xy(i,j) eq 1. If true
then adding these (i,j) to a pointer and returning this two-dimensional
array? What do you say? I'm going to try.
Cheers,
Nuno.
"Bruce Bowler" <bbowler@bigelow.org> wrote in message
news:pan.2004.02.02.17.47.37.709701@bigelow.org...
> On Mon, 02 Feb 2004 16:40:14 +0000, Nuno Oliveira put fingers to keyboard
> and said:
>
> Based on the fact that xy is the result of a "where", I'd assume that the
> single number returned is the "1 dimensional index that would result if
> the 2 dimensional array were addressed at X,Y".
>
> --
> +-------------------+--------------------------------------- ------------+
> Bruce Bowler | To be great is to be misunderstood. - Ralph Waldo
> 1.207.633.9600 | Emerson
> bbowler@bigelow.org |
> +-------------------+--------------------------------------- ------------+
>
|
|
|