This is my first question, so maybe it is a silly one.
I have a histogram to compute a grayscale image pixel values. Something like this:
HistogramDataset dataset = new HistogramDataset();
dataset.setType(HistogramType.FREQUENCY);
dataset.addSeries("", values, 256, 0.0, 256.0);
But the histogram doesn’t show as I expect, because my values are from 0 to 22400 and how does the histogram know which bean has which value? Thanks.
Click on the
addSeries()link, which shows the corresponding source code, to see how yourvaluesare apportioned among the requested number ofbinsinbinList.