Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: histogram in matlab

Subject: histogram in matlab

From: huda nawaf

Date: 09 Aug, 2007 22:06:23

Message: 1 of 4

HI
What is the function that I can use to compute the gray
level histogram in Matlab?

thanks,huda

Subject: Re: histogram in matlab

From: us

Date: 09 Aug, 2007 22:45:10

Message: 2 of 4

huda nawaf
<SNIP it's all in the language...

> What is the function that I can use to compute the gray
level histogram in Matlab...

a hint:

     help histc;

% an image
     img=uint8(floor(256*rand(50,50)));
% the engine
     n=histc(img(:),0:255);
% the result
     subplot(2,1,1);
     image(img);
     axis image;
     colormap(gray(256));
     subplot(2,1,2);
     stem(n);
     set(gca,'xlim',[0,255]);

us

Subject: Re: histogram in matlab

From: huda nawaf

Date: 21 Aug, 2007 08:51:06

Message: 3 of 4

"huda nawaf" <halmamory@yahoo.com> wrote in message
<f9g34v$hi8$1@fred.mathworks.com>...
> HI
> What is the function that I can use to compute the gray
> level histogram in Matlab?
>
> thanks,huda
>
hi dear,
thank you very much,I tried execute the code that you sent
and I gained the result .

Subject: Re: histogram in matlab

From: huda nawaf

Date: 01 Sep, 2007 17:19:15

Message: 4 of 4

"huda nawaf" <halmamory@yahoo.com> wrote in message
<fae91q$lg4$1@fred.mathworks.com>...
> "huda nawaf" <halmamory@yahoo.com> wrote in message
> <f9g34v$hi8$1@fred.mathworks.com>...
> > HI
> > What is the function that I can use to compute the
gray
> > level histogram in Matlab?
> >
> > thanks,huda
> >
> hi dear,
> thank you very much,I tried execute the code that you
sent
> and I gained the result .
hello again
I need now the histogram of color image .How?
best,huda

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
image us 09 Aug, 2007 18:50:26
histogram us 09 Aug, 2007 18:50:26
histc us 09 Aug, 2007 18:50:26
code us 09 Aug, 2007 18:50:26
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics