NrrdHisto: Make a histogram from a nrrd file (as a new nrrd)

Description Usage Arguments Details Value

View source: R/UNUImageProcessingFunctions.R

Description

Make a histogram from a nrrd file (as a new nrrd)

Usage

1
2
NrrdHisto(infile, outfile = sub("\\.([^.]+)$", ".histo.\\1", infile),
  maskfile, bins, min, max, blind8 = TRUE, ...)

Arguments

infile

Input/output files

outfile

Path to an output NRRD or FALSE in which case an R histogram object will be returned.

maskfile

Path to another image file defining which pixels in the input file to include.

bins

Number of bins for the histogram (see details)

min, max

Minimum and maximum values for the histogram (see details)

blind8

Whether to assume the full range (0,255) for 8 bit images without checking

...

Additional arguments passed to unu function.

Details

bins defaults to 1000 for float/double image data, to the number of levels between min and max for integer data. If min or max is not specified, they will be set to the minimum (maximum) value found in the input data.

Value

Output file or an R histogram object.


jefferis/runu documentation built on Aug. 16, 2018, 7:51 a.m.