Property settings for axes of greyscale histogram on gui?
Mostra commenti meno recenti
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?
Risposte (1)
Image Analyst
il 2 Mar 2015
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 Commenti
Sean
il 2 Mar 2015
Sean
il 2 Mar 2015
Image Analyst
il 3 Mar 2015
You forgot to attach gui.m. If it's a script, then it should be the same as when you type each line into the command window one line at a time.
Sean
il 3 Mar 2015
Sean
il 3 Mar 2015
Image Analyst
il 3 Mar 2015
You still forgot to attach the files. If you want me to try anything, attach the m and fig files and the image file.
Sean
il 4 Mar 2015
Sean
il 4 Mar 2015
Sean
il 4 Mar 2015
Categorie
Scopri di più su Histograms in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



