# Histogram of image pixel intensities and the density of a particular intensity

**URL:** <https://discourse.julialang.org/t/histogram-of-image-pixel-intensities-and-the-density-of-a-particular-intensity/49414>\
**Category:** New to Julia\
**Created:** [November 1, 2020, 3:47pm UTC](https://discourse.julialang.org/t/histogram-of-image-pixel-intensities-and-the-density-of-a-particular-intensity/49414 "2020-11-01T15:47:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashwani\_Rathee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ashwani_rathee/32/49551_2.png) [@Ashwani\_Rathee](https://discourse.julialang.org/u/Ashwani_Rathee)\
**Post date:** [November 1, 2020, 3:47pm UTC](https://discourse.julialang.org/t/histogram-of-image-pixel-intensities-and-the-density-of-a-particular-intensity/49414/1 "2020-11-01T15:47:36Z")

</div>

What I am trying to do:

 ![sphx_glr_plot_equalize_001](https://global.discourse-cdn.com/julialang/original/3X/9/3/938d01fac5169e72fb05712c9f426aaa15fe3fb9.png)  
What I able to do as of now:  
 ![Screenshot from 2020-11-01 21-15-44](https://global.discourse-cdn.com/julialang/original/3X/e/d/ede4f97a67d1baba27e83718a5a3cb9b3e71ee3f.png)

I know the layout thing,pls help with the fraction part  
how to make that line that tells fraction of representation of a particular intensity in whole spectrum…

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [November 1, 2020, 5:29pm UTC](https://discourse.julialang.org/t/histogram-of-image-pixel-intensities-and-the-density-of-a-particular-intensity/49414/2 "2020-11-01T17:29:44Z")

</div>

If this isn’t a homework question, see

[https://juliaimages.org/latest/democards/examples/spatial\_transformation/histogram\_equalization/#Histogram-equalisation](https://juliaimages.org/latest/democards/examples/spatial_transformation/histogram_equalization/#Histogram-equalisation)

If it is, you shouldn’t look, because it’s the exact answer and you’ll lose out by not figuring it out on your own. Instead, read the documentation for [https://github.com/JuliaImages/ImageContrastAdjustment.jl](https://github.com/JuliaImages/ImageContrastAdjustment.jl)
