How to specify ranges for x and y axes to display histogram analysis of image result using 'stem()'?
조회 수: 2 (최근 30일)
이전 댓글 표시
I am performing histogram analysis for an image. I have used 'stem()' to display the result. In that I have to remove the 1st stem and I have to specify x and y axes ranges as 0 to 260 and 0 to 1000 respectively. Help me to solve this. I have attached the image, code and histogram output here. Please refer it.
Image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170911/image.jpeg)
code: I2=imread(a.tif); R=imhist(I2(:,:,1)); figure, stem(R,’r’), title(‘lenaenc red channel’);
OUTPUT:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170912/image.jpeg)
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!