unu-i2w - Man Page

converts from 1-D index to world position

Synopsis

unu i2w <center> <minPos> <maxPos> <num> <index>

Description

Converts from 1-D index to world position, given the centering of the data (cell vs. node), the range of positions, and the number of intervals into which position has been quantized. This is a demo/utility, which does not actually operate on any nrrds. Previously available as the stand-alone idx2pos binary.

Uses NRRD_POS macro

Options

<center>

which centering applies to the quantized position. Possibilities are:

  • cell” for histogram bins, quantized values, and pixels-as-squares
  • node” for non-trivially interpolated sample points
<minPos>

smallest position associated with index 0 (double)

<maxPos>

highest position associated with highest index (double)

<num>

number of intervals into which position has been quantized (double)

<index>

the input index position, to be converted to world (double)

See Also

unu(1)

Referenced By

unu(1).

April 2021