} Point
ITK-SNAP Logo

Latest News:
04/22/24: ITK-SNAP 4.2.0 has been released!

PmWiki

pmwiki.org

edit SideBar

Convert3D::Point

Point Specification

Syntax

<number>x<number>x<number><coord_spec> 

or

<number><coord_spec> 

where coord_spec is one of %, vox or mm.

Definition

A point refers to a position in space. It can be specified in physical coordinates? or in voxel coordinates?. It can also be specified in percent, in which case the percent is mapped to voxel coordinates?.

A point is specified as three numbers separated by 'x', followed by a suffix indicating what coordinates it is specified in. For example, 10x23x11vox or -12x43x0mm. You can also specify just one number, in which case that number will be used in all dimensions, i.e., 14vox is equivalent to 14x14x14vox.

Examples

For example, if we have an image with the following header:

Dimensions: 100x200x50
NIfTI Transform:
  1.2 0.0 0.0 10.0
  0.0 0.0 1.0 10.0
  0.0 1.0 0.0 10.0
  0.0 0.0 0.0  0.0

Then the following commands will all access the same point:

[@

c3d image.nii -probe

Page last modified on June 22, 2009, at 12:54 PM

    SourceForge.net Logo   Valid XHTML 1.0 Transitional