Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

DO I need Image processing tool box to upload image into GUI

Asked by Arun Badigannavar on 22 Jan 2013

I dont have "imshow" command in my matlab 2012b,,,,is it because i don haver image processing toolbox

1 Comment

Walter Roberson on 22 Jan 2013

Yes, imshow() is part of the Image Processing Toolbox.

Arun Badigannavar

Tags

No tags are associated with this question.

2 Answers

Answer by Jurgen on 22 Jan 2013
Edited by Jurgen on 22 Jan 2013

I think this should work?

I = imread('file_on_path.jpg') 
imagesc(I);

3 Comments

Arun Badigannavar on 23 Jan 2013

I am able to read image and show it,,,but it is squuezing image,,,i am uploading a simulink model image on gui,,,but its not so clear,,,any other way to import image roperly

Walter Roberson on 23 Jan 2013

What do you mean by "squeezing" ? Are you talking about the colors, or about the image size, or about the axis proportions ?

Arun Badigannavar on 23 Jan 2013

about the image size,,,the connections of simulink model which i am uploading are not visible and blocks are squeezed,,,and charecters which are there in the image re not clear

Jurgen
Answer by Image Analyst on 23 Jan 2013

You can use image() without the Image Processing Toolbox. You can also use imagesc() but it applies some weird colormap by default that you'll most likely need to correct with colormap() function to a more appropriate colormap, like gray. image() applies a grayscale color map by default. With either one you can still call colormap to apply whatever colormap you want.

1 Comment

Arun Badigannavar on 23 Jan 2013

AAccording Mr jurgen i tried but up;oaded image is not clear,,,irts squeezing the image...any other way to import image with altering it

Image Analyst

Contact us