Hi, By fixing the "z" or "depth" coordinate of your point you reduce the problem to determining if the point lies outside or inside the 2D contour. Once you've done that, you can simply check if the coordinates of the point are contained (<= or =>) within the corresponding boundaries of the contour. Make sure that you check both in x and y direction at the same time.
-0leg On Fri, 16 Apr 2004, Daniel Goldenholz wrote: > Hi. I have a math question. > > Suppose that I read a non-inflated brain surface using the matlab function > "read_surf". Suppose further I have a single point which is in the same > mri coordinate system as this surface. > > My question is this: what is a smart way to figure out if that single > point is INSIDE or OUTSIDE the 3D volume called "brain" bounded by the > surface I read in? > > Thanks, > -- > Daniel Goldenholz > ----------------------------------------------------- > > _______________________________________________ > Freesurfer mailing list > [EMAIL PROTECTED] > http://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer > _______________________________________________ Freesurfer mailing list [EMAIL PROTECTED] http://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer