Property settings for axes of greyscale histogram on gui?

조회 수: 3 (최근 30일)
Sean
Sean 2015년 3월 2일
댓글: Sean 2015년 3월 4일
Im trying to plot a histogram of a grey scale image using a gui, I'm having trouble with the property inspector belonging to the axes which Im using in the gui.fig? how do I get the axes to be 0-256 along the x axis (greyscale) etc?

답변 (1개)

Image Analyst
Image Analyst 2015년 3월 2일
After you call bar() or plot(), just use xlim().
xlim([0, 255]);
By the way, gray levels don't go past 255 unless you have a 16 bit image or a floating point image. You can't get 256 with a uint8 image.
  댓글 수: 9
Sean
Sean 2015년 3월 4일
Here is the image
Sean
Sean 2015년 3월 4일
I tried compressing the .fig file to a zip but it is still 15.1MB which is too large to attach!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by