unu-project - Man Page

collapse scanlines to scalars along some axis

Synopsis

unu project -a,--axis <axis> -m,--measure <measr> [-t,--type <type>] [-i,--input <nin>] [-o,--output <nout>]

Description

Collapse scanlines to scalars along some axis. The scanline is reduced to a single scalar by “measuring” all the values in the scanline with some measure. The output nrrd has dimension one less than input (except when the input is itself 1-D); the output type depends on the measure in a non-trivial way, or it can be set explicitly with the “-t” option.

Options

-a <axis> , --axis <axis>

axis to project along (unsigned int)

-m <measr> , --measure <measr>

How to “measure” a scanline, by summarizing all its values with a single scalar. Possibilities include:

  • min”, “max”, “mean”, “median”, “mode”, “variance”, “skew”: (self-explanatory)
  • intc”, “slope”, “error”: intercept, slope, and error from line fitting
  • stdv”: standard deviation
  • cov”: coefficient of variation
  • product”, “sum”: product or sum of all values
  • L1”, “L2”, “NL2”, “RMS”, “Linf”: different norms
  • histo-min”, “histo-max”, “histo-mean”, “histo-median”, “histo-mode”, “histo-product”, “histo-l2”, “histo-sum”, “histo-variance”, “histo-sd”: same measures, but for situations where we’re given not the original values, but a histogram of them.
-t <type> , --type <type>

type to use for output. By default (not using this option), the output type is determined auto-magically.

-i <nin> , --input <nin>

input nrrd

-o <nout> , --output <nout>

output nrrd (string); default: “-

See Also

unu(1)

Referenced By

unu(1), unu-acrop(1), unu-env(1).

August 2021