How to get intensity value of histogram using java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How to get intensity value of histogram using java

Intensity value of histogram

24th Oct 2016, 5:15 PM
Al mudtazar
1 Answer
+ 1
Hello Al mudtazar, it depends on the histogram. Is it a statistic table that you already created then you can use for example static methods of the objects which helps you to get values like the height of a represented intensity bar. If it is a picture you can check the pixel of one color hex-value or rgb-value for the amount and do it with a loop for all intensities. In the other way around, you have an image and you want a histogram for that image. Check each pixel for the rgb-values with a for-loop and save them into an array then create a new image with these values for your histogram. For a b/w histogram use first a gray filter on your picture. I hope I could give you some ideas to come further. And for some help with the classes of the java API take a look here:(http://docs.oracle.com/javase/7/docs/api/index.html.
4th Jan 2017, 4:23 AM
Erik