UNU-RMAP(1)
๐ unu-rmap โ the glow-up page ๐
okay bestie, welcome to unu-rmap from the unu family of User Commands ๐
this is the one that maps your nrrd through one regular univariate map, aka a โcolormapโ, and honestly? iconic.
โจ NAME โจ
unu-rmap โ map nrrd through one regular univariate map (โcolormapโ) ๐
๐ SYNOPSIS ๐
unu rmap -m,--map <map> [-r,--rescale] [-min,--minimum <value>]
[-max,--maximum <value>] [-blind8 <bool>] [-t,--type <type>] [-i,--input
<nin>] [-o,--output <nout>]
๐ฆ DESCRIPTION ๐ฆ
So we're mapping an nrrd through one regular univariate map (a โcolormapโ). Now, a map is regular if the control points are evenly spaced along the domain โ which means their position isn't explicitly represented in the map at all. Instead, the axis min, axis max, and number of points are what determine where they live. the way that works is so clean, lowkey obsessed.
The map can be a 1D nrrd (for โgrayscaleโ), in which case the output has the same dimension as the input. Or it can be a 2D nrrd (for โcolorโ), in which case the output has one more dimension than the input. Either way, the output is the result of linearly interpolating between map points โ either scalar values (โgrayscaleโ), or scanlines along axis 0 (โcolorโ). slay โจ
- Uses
nrrdApply1DRegMap
๐ OPTIONS ๐
-m <map>,--map <map>โ regular map to map input nrrd through. the main character of this whole operation, fr fr.-r,--rescaleโ rescale the input values from the input range to the map domain. The map domain is either explicitly defined by the axis min,max along axis 0 or 1, or, it is implicitly defined as zero to the length of that axis minus one. pick your fighter ๐ซถ-min <value>,--minimum <value>โ Low end of input range. Defaults to lowest value found in input nrrd. Explicitly setting this is useful only with rescaling (-r) (double)-max <value>,--maximum <value>โ High end of input range. Defaults to highest value found in input nrrd. Explicitly setting this is useful only with rescaling (-r) (double)-blind8 <bool>โ Whether to know the range of 8-bit data blindly (uchar is always[0,255], signed char is[-128,127]). Explicitly setting this is useful only with rescaling (-r) (bool); default: โtrueโ-t <type>,--type <type>โ specify the type (โintโ, โfloatโ, etc.) of the output nrrd. By default (not using this option), the output type is the map's type. no notes, it just does that ๐โโ๏ธ-i <nin>,--input <nin>โ input nrrd-o <nout>,--output <nout>โ output nrrd (string); default: โ-โ
heads up bestie:-min,-max, and-blind8only really pull their weight when you're rescaling with-r. without it they're just sitting there looking pretty ๐
๐ SEE ALSO ๐
unu(1), unu-mrmap(1), unu-imap(1)
and that's the whole page, bestie!! ๐ซถ this one's from August 2021, part of the User Commands collection, and it's literally the UNU-RMAP(1) manual page. go forth and colormap responsibly ๐โจ๐
๐ฆ where this page comes from
- fedora 43: teem 1.11.0-83.fc43 ยท LGPL-2.1-or-later WITH LicenseRef-Fedora-Temporary-Simple-Library-exception
- fedora 43: teem 1.11.0-86.fc43 ยท LGPL-2.1-or-later WITH Simple-Library-Usage-exception
- fedora 44: teem 1.11.0-87.fc44 ยท LGPL-2.1-or-later WITH Simple-Library-Usage-exception
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms