UNU-RMAP(1)

๐Ÿ“ฆ version 1.11.0, in fedora 43, fedora 44

๐Ÿ’– 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 -blind8 only 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