Property settings for axes of greyscale histogram on gui?

2 ビュー (過去 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 Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by