public class IntegralHistogram2d extends Object
Constructor and Description |
---|
IntegralHistogram2d() |
Modifier and Type | Method and Description |
---|---|
static long[] |
integralHistogram2d(short[] pixels,
int width,
int height,
int nBins,
double min,
double max)
Returns a byte[] of dimensions (width + 1) * (height + 1) * nBins,
representing the integral histogram of the 2d image.
|
static void |
main(String[] args) |
static short[] |
median(int width,
int height,
long[] hist,
int nBins,
double min,
double max,
int radius) |
static ij.process.ShortProcessor |
median(ij.process.ShortProcessor sp,
int nBins,
double min,
double max,
int radius) |
public static final long[] integralHistogram2d(short[] pixels, int width, int height, int nBins, double min, double max)
pixels
- The image.width
- The width of the image.height
- The height of the image.nBins
- The desired number of histogram bins.min
- The lowest value, under which all values are stashed into the first bin.max
- The highest value, above which all values are stashed into the last bin.public static final short[] median(int width, int height, long[] hist, int nBins, double min, double max, int radius)
width
- The width of the image.height
- The height of the image.hist
- The array containing the integral histogram as generated by integralHistogram2d(short[], int, int, int, double, double)
.nBins
- The number of bins of the integral histogram.min
- The lowest value, under which all values are stashed into the first bin.max
- The highest value, above which all values are stashed into the last bin.radius
- The radius to approximate the median.public static final ij.process.ShortProcessor median(ij.process.ShortProcessor sp, int nBins, double min, double max, int radius)
public static final void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.