public class MaxEntHistogram extends Object
Constructor and Description |
---|
MaxEntHistogram(ij.ImagePlus image) |
MaxEntHistogram(int[][] histograms) |
Modifier and Type | Method and Description |
---|---|
int[][] |
get(int[][] histos) |
byte[] |
getMapping(boolean showIndex)
after quantization, returns a mapping from old pixel values
to new pixel values.
|
double |
quantize(int K)
quantizes according to maximum entropy principle,
imitating MaxEnt's dynamic programming
algorithm from ciq.ps.gz; returns the new right bin
boundaries (exclusive, so result[k-1]==256).
|
void |
quantizeNaive(int K)
use naive approach: every bin should have the same amount of
data points.
|
public MaxEntHistogram(ij.ImagePlus image)
public MaxEntHistogram(int[][] histograms)
public double quantize(int K)
public void quantizeNaive(int K)
public byte[] getMapping(boolean showIndex)
public int[][] get(int[][] histos)
Copyright © 2015–2021 Fiji. All rights reserved.