Re: how to plot a image histogram to



On Mar 22, 2:03 pm, islinaism...@xxxxxxxxx wrote:
Hye...

My problem is how to convert the gray scale image into image histogram
so that i can analyze the intensity of the image pixels.The histogram
must consist of the vertical axis being a ratio between a pixel
intensity value of “x” to the total number of pixels in an image. The
horizontal axis will contain the pixel value “x”.Can anyone help me on
the coding?

Really need a help from you guys!
---------------------------------------------------------------------------------------------------
Have you tried the hist or imhist() function? To get precentage,
simply divide the array it returns by the number of pixels in your
array. I hope that's what you want, because what you actually
described is NOT the histogram despite you calling it that (you're
simply dividing the image by the number of pixels in the image). A
histogram is the COUNT of the number of pixels at an intensity value,
not the intensity value itself like you said.
.



Relevant Pages

  • Re: count pixels in HSV image
    ... I already gave you the code needed to count the pixels in each bin and plot its histogram. ... You failed to populate the S array before you use it in the loop that follows. ... I see no reason why you would want to use a nested "for" loop to build the "q" array values. ...
    (comp.soft-sys.matlab)
  • Re: What Is the Formal Definition of Contrast of an Image?
    ... I've using the following to do a contrast adjustment: ... Take a histogram of the intensity values of the pixels in the image. ... The low value is the value that is 5% above the lowest histogram value. ...
    (sci.image.processing)
  • Re: how to plot a image histogram to
    ... so that i can analyze the intensity of the image pixels.The histogram ... must consist of the vertical axis being a ratio between a pixel ... simply divide the array it returns by the number of pixels in your ...
    (comp.soft-sys.matlab)
  • Re: how to select a certain percentage of "bright" pixels from an array
    ... If I have a 2D array, all elements of which are real numbers. ... And I'd like to keep 20% of the pixels whose values are higher than ... If the values are integers then histogram the values into integer bins, and work out which bin straddles the 20% boundary. ...
    (comp.soft-sys.matlab)
  • Re: Touching characters Vs Hand struck words: discrimination.
    ... locations that are white black edges and have a black white edge not ... more than s pixels away, where s ist the accepted stroke thickness. ... down directly to touching components will result in vertical edges ... I couldn't follow the histogram approach. ...
    (sci.image.processing)