Re: how to plot a image histogram to
- From: ImageAnalyst <imageanalyst@xxxxxxxxxxxxxx>
- Date: Sun, 22 Mar 2009 11:38:31 -0700 (PDT)
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.
.
- Follow-Ups:
- Re: how to plot a image histogram to
- From: islinaismail
- Re: how to plot a image histogram to
- References:
- how to plot a image histogram to
- From: islinaismail
- how to plot a image histogram to
- Prev by Date: question on mex
- Next by Date: Re: Compression
- Previous by thread: how to plot a image histogram to
- Next by thread: Re: how to plot a image histogram to
- Index(es):
Relevant Pages
|