unu-w2i - Man Page

converts from 1-D world to index position

Synopsis

unu w2i <center> <minPos> <maxPos> <num> <world>

Description

Converts from 1-D world to index 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 pos2idx binary.

Uses NRRD_IDX 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)

<world>

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

See Also

unu(1)

Referenced By

unu(1).

April 2021