# Re: [caret-users] distance from a node

Oh! That's ridiculously easy. Those reference distances are in mm on the inflated (except for the staring sylvian, which is relative to the flat surface). You click one node on, say, the occipital pole; then you click a border point along the calcarine you guesstimate is about 24mm from the occipital pole; and you read out the Distance on the ID window. This is a 3D distance (make sure you read the Inflated surface's distance, or flat if sylvian). If your occipital pole point is offset significantly from the border point along the x or z axes, then use the Y component of the respective points and compute the difference.
```
```
For example, there's a pretty big x and z offset between this occipital pole (first) and candidate most-posterior calcarine border point:
```
Node 20734
Main Window Inflated XYZ: 15.015987396, -110.156700134, -22.251829147
Shape: -2.904558420 -2.124466896

Node 32819
```
Main Window Inflated XYZ: 27.664737701, -77.988800049, -6.281192303 Distance: 38.076580048
```   Shape: -10.455765724 -8.209010124

```
So I compute -110 - -78 = 32 -- so this point is 32mm from the occipital pole, so we need to find one whose y component of the inflated coordinate is closer to like -110 + 24 = -86.
```
Hope this helps!

On 11/30/2006 06:53 AM, Mateus Joffily wrote:
```
```Hi David,

```
Thanks for your reply. I asked for this capability because I am trying to perform a spherical registration. Many landmarks are defined as starting and terminating at a certain distance from an anatomical reference point. I thought that a tool, which allows the user to enter a reference point coordinate in the surface and, after, displays every node that is at a given geodesic distance from it, would be helpful This capability is not essential for me. I was wondering if it was already implemented in Caret.
```
Best regards,
Mateus

David Vanessen wrote:

```
```Mateus,

```
First, it is important to clarify whether your request pertains to nodes (as stated) or to foci. In Caret terminology, nodes refers specifically to the points that make up a surface and have locations specified within a coordinate file. Foci refers to stereotaxically identified locations (typically fMRI activation centers) that are specified within a foci file or foci projection file. I'm guessing you are referring to foci, but let us know.
```
```
At present, I don't think that the capability you are asking about exists for either nodes or foci. If you can let us know what you will be using this for and whether this is a pressing need, it will help us to prioritize the request. Also, if other Caret users would like to see this functionality, let us know.
```
Best regards,

David

On Nov 29, 2006, at 11:28 AM, Donna Dierker wrote:

```
If you were talking about geodesic distance (i.e., running along the contour of the fiducial surface -- not as the crow flies through the CSF/WM), then you could use the Surface: ROI feature for this purpose. (First operation Geodesic Distance, and then threshold the resulting metric at the desired distance.)
```
```
I'm not aware of something like that for 3D distances, but there's a Make Sphere feature in Window: Script Builder. Worst case, you could generate a sphere around the enclosing voxel and map that ROI volume to the surface.
```
On 11/29/2006 11:18 AM, Mateus Joffily wrote:

```
```Hi,

```
In Caret5.5, is there a way of selecting a node and finding all (or some) nodes that are at a given distance from it? I think I am looking for something similar to what is described in section 2.17.2 (Foci Data Searches) of the 'Caret Tutorial – the Basics'. But Section 2.17.2 regards only WebCaret. Does it exist something similar to Caret5.5?
```
Thanks,
Mateus
_______________________________________________
caret-users mailing list
caret-users@brainvis.wustl.edu
http://pulvinar.wustl.edu/mailman/listinfo/caret-users

```
```--
Donna L. Dierker
```
(Formerly Donna Hanlon; no change in marital status -- see http:// home.att.net/~donna.hanlon for details.)
```
_______________________________________________
caret-users mailing list
caret-users@brainvis.wustl.edu
http://pulvinar.wustl.edu/mailman/listinfo/caret-users
```
```

_______________________________________________
caret-users mailing list
caret-users@brainvis.wustl.edu
http://pulvinar.wustl.edu/mailman/listinfo/caret-users

```
```
_______________________________________________
caret-users mailing list
caret-users@brainvis.wustl.edu
http://pulvinar.wustl.edu/mailman/listinfo/caret-users

```
```

--
Donna L. Dierker
(Formerly Donna Hanlon; no change in marital status -- see
http://home.att.net/~donna.hanlon for details.)

```