unu-convert - Man Page
convert to another type (as if by cast, w/ optional clamp)
Synopsis
unu convert -t,--type <type> [-i,--input <nin>] [-clamp] [-o,--output <nout>]
Description
Convert to another type (as if by cast, w/ optional clamp). By default this does not transform, scale, or intelligently quantize values; it just copies them from one type to another, which replicates exactly what you’d get in C when you assign from a variable of one type to another, or when you cast to a different type. However, clamping values to the representable range of the output type is possible with “-clamp”. See also unu-quantize(1), unu-2op(1) x, and unu-3op(1) clamp.
- Uses nrrdConvert or nrrdClampConvert
Options
- -t <type> , --type <type>
type to convert to
- -i <nin> , --input <nin>
input nrrd
- -clamp
clamp input values to representable range of values of output type, to avoid wrap-around problems
- -o <nout> , --output <nout>
output nrrd (string); default: “-”