Trying to Put Logo on GUI - Getting Error that makes no sense

1 visualizzazione (ultimi 30 giorni)
I am trying to put a logo on my GUI. The approach I am using is the following:
axes(handles.axesOrbitalLogo);
imshow('OrbitalLogo.tif');
When I do this, I keep getting this error:
"Undefined function 'imshow' for input arguments of type 'char'."
It is as if I cannot put in the filename as a char, even though that is what everyone else I have seen do it - and have seen YouTube Videos showing that is EXACTLY how it's done. I am using MATLAB 2012a.
Please help!!
Kevin

Risposta accettata

Image Analyst
Image Analyst il 7 Set 2013
You probably don't have the Image Processing Toolbox. Type ver on the command line to check. If you don't, use image() instead of imshow(), but you'll need to call imread() first to get the data into an array. I don't believe image() takes a filename string directly.
  1 Commento
Kevin Gaukel
Kevin Gaukel il 8 Set 2013
Modificato: Kevin Gaukel il 8 Set 2013
Thank you very much. I need to tweak the image to not distort the Logo, but I see that as a minor issue. I did check ver, and it indicates "license unknown". However, the previous version we have (2010a) has the Image Processing Toolbox included. I suspect we haven't completed the migration to 2012a yet.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by