how to get the pixel value of histogram?

2 views (last 30 days)
mohammed
mohammed on 14 Jan 2014
Hello
i wants to delete or make some pixel zero , according to the bins.
im = imread ('image');
hsv_im = rgb2hsv(im);
h = hsv_im(:,:,1)
[pixelCount, grayLevels] = hist(h(:), 360);
pixelCount(20:30)=0;
Now i want to get my 'Hue' Matrix with same pixel position and zeros between the bin values from 20 to 30.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!