From: shilpa khinvasara on 23 Jul 2010 02:17 Sir, Will u pls help in witing the code for counting pixels in each bin in an 18,,3,3 quantized image. ur help is of grt help thanx shilpa
From: Walter Roberson on 23 Jul 2010 02:33 shilpa khinvasara wrote: > Sir, > > Will u pls help in witing the code for counting pixels in each bin in an > 18,,3,3 quantized image. > ur help is of grt help > thanx > shilpa Posting the same question over and over again isn't helping you. I refer you to my earlier answer: >> shilpa khinvasara wrote: >> > can u pls tell me how to count pixels in each bin and plot its histogrsm >> The following will accomplish both aims simultaneously: >> hist(L(:),max(L(:)) >> You could easily have found hist() by searching the matlab >> documentation for information about histograms. The only vaguely >> tricky part of the above line is the specification of the number of >> bins to use. Have you *tried* the above code with a matrix L of counts? For example, L = round(20*rand(50,70)); What did you find when you read the documentation for hist() ? If you had a problem with the above code structure, then what happened when you experimented with hist() ?
|
Pages: 1 Prev: Setting object handle inside a loop Next: MPEG-1/2 Encoder/Decoder for MATLAB |