All entries for Wednesday 08 November 2006
November 08, 2006
Histogram
I have made a Histogram class which generates a greyscale image from a picture. This should give better measurements for the centre of mass and the standard deviation box.
To hook it into the ImageProcessor class insert this into the main method:
Histogram histogram = new Histogram(nccTable);
int[][] greyscaleImage = histogram.GetHistogramMask(nccTable);
bImage = histogram.MaskBufferedImage(bImage, greyscaleImage);
and this should output the greyscale image.
Remember to comment out the other masks first before running!
Chris
P.S Hoi, can you post your code?
A there is a lot of redundent code left in from testing.
---------—-
Histogram.java