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

Thread Subject:
imshow Error

Subject: imshow Error

From: Michael

Date: 8 Jan, 2013 11:41:08

Message: 1 of 7

Hello all,

I've just started attempting to use the image processing toolbox and I have already run into some difficulty I can't seem to solve. When calling the imshow command I am presented with the following error. I've tried searching for a solution but they all seem to suggest that the Image Processing Tooolbox is simply not installed, however my 'ver' command shows it is and I do have a license available.

>> I=imread('33mm 0.65z 0 B.jpg');
>> save I
>> imshow(I)
??? Undefined function or method 'imshow' for input arguments of type
'uint8'.

>> ver
-------------------------------------------------------------------------------------
MATLAB Version 7.12.0.635 (R2011a)
MATLAB License Number: 82987
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java VM Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
-------------------------------------------------------------------------------------
MATLAB Version 7.12 (R2011a)
Simulink Version 7.7 (R2011a)
Control System Toolbox Version 9.1 (R2011a)
Curve Fitting Toolbox Version 3.1 (R2011a)
Fixed-Point Toolbox Version 3.3 (R2011a)
Fuzzy Logic Toolbox Version 2.2.13 (R2011a)
Global Optimization Toolbox Version 3.1.1 (R2011a)
Image Processing Toolbox Version 7.2 (R2011a)
MATLAB Coder Version 2.0 (R2011a)
MATLAB Compiler Version 4.15 (R2011a)
Neural Network Toolbox Version 7.0.1 (R2011a)
Optimization Toolbox Version 6.0 (R2011a)
Parallel Computing Toolbox Version 5.1 (R2011a)
Robust Control Toolbox Version 3.6 (R2011a)
Signal Processing Toolbox Version 6.15 (R2011a)
SimHydraulics Version 1.9 (R2011a)
SimPowerSystems Version 5.4 (R2011a)
Simscape Version 3.5 (R2011a)
Simulink Coder Version 8.0 (R2011a)
Simulink Control Design Version 3.3 (R2011a)
Statistics Toolbox Version 7.5 (R2011a)
Symbolic Math Toolbox Version 5.6 (R2011a)
System Identification Toolbox Version 7.4.2 (R2011a)
Wavelet Toolbox

Thank you in advance for any help you can give.

Subject: imshow Error

From: Flaut Hübbers

Date: 8 Jan, 2013 13:01:08

Message: 2 of 7

hi there,

from my experience matlab got problems reading images with blanks or special signs in the filename. Rename your imagefile and try it again.

Maybe you want something like this...

I = imread('33mm_065z_0_B.jpg', 'jpg');
imshow(I);
imwrite(I, 'savename.jpg', 'jpg');

cu

Subject: imshow Error

From: Michael

Date: 8 Jan, 2013 13:15:07

Message: 3 of 7

"Flaut Hübbers" wrote in message <kch5ak$c7h$1@newscl01ah.mathworks.com>...
> hi there,
>
> from my experience matlab got problems reading images with blanks or special signs in the filename. Rename your imagefile and try it again.
>
> Maybe you want something like this...
>
> I = imread('33mm_065z_0_B.jpg', 'jpg');
> imshow(I);
> imwrite(I, 'savename.jpg', 'jpg');
>
> cu


Thank you very much for your response but unfortunately this didn't work. I tried renaming an image as 'test' and called the following but it still gives the same error.

>> I = imread('test.jpg');
>> imshow(I);
??? Undefined function or method 'imshow' for input arguments of type
'uint8'.

Subject: imshow Error

From: Steven_Lord

Date: 8 Jan, 2013 14:38:08

Message: 4 of 7



"Michael " <mrg_1309@hotmail.co.uk> wrote in message
news:kch0kk$puq$1@newscl01ah.mathworks.com...
> Hello all,
>
> I've just started attempting to use the image processing toolbox and I
> have already run into some difficulty I can't seem to solve. When calling
> the imshow command I am presented with the following error. I've tried
> searching for a solution but they all seem to suggest that the Image
> Processing Tooolbox is simply not installed, however my 'ver' command
> shows it is and I do have a license available.
>
>>> I=imread('33mm 0.65z 0 B.jpg');
>>> save I
>>> imshow(I)
> ??? Undefined function or method 'imshow' for input arguments of type
> 'uint8'.
>
>>> ver
> -------------------------------------------------------------------------------------
> MATLAB Version 7.12.0.635 (R2011a)

*snip*

> Image Processing Toolbox Version 7.2
> (R2011a)

While it is listed in the output of VER, it's possible that all the licenses
for this toolbox are already in use. Ask your license administrator (IT
staff) to double-check this.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: imshow Error

From: Michael

Date: 8 Jan, 2013 15:03:08

Message: 5 of 7


> > MATLAB Version 7.12.0.635 (R2011a)
>
> *snip*
>
> > Image Processing Toolbox Version 7.2
> > (R2011a)
>
> While it is listed in the output of VER, it's possible that all the licenses
> for this toolbox are already in use. Ask your license administrator (IT
> staff) to double-check this.
>
> --
> Steve Lord

Hi Steve,

I've been keeping an eye on the license usage and there are 4 of 6 available licenses so it shouldn't be a problem. I have run into that problem before while using the statistics toolbox and MatLab displayed a 'license error' so it doesn't sound like that.

Many thanks.

Subject: imshow Error

From: Michael

Date: 9 Jan, 2013 11:31:07

Message: 6 of 7

Just wanted to bump this thread to see if anyone can help, it would be much appreciated.

Many thanks.

Subject: imshow Error

From: dipti chaudhary

Date: 10 Jan, 2013 18:11:08

Message: 7 of 7

"Michael " <mrg_1309@hotmail.co.uk> wrote in message <kch0kk$puq$1@newscl01ah.mathworks.com>...
> Hello all,
>
> I've just started attempting to use the image processing toolbox and I have already run into some difficulty I can't seem to solve. When calling the imshow command I am presented with the following error. I've tried searching for a solution but they all seem to suggest that the Image Processing Tooolbox is simply not installed, however my 'ver' command shows it is and I do have a license available.
>
> >> I=imread('33mm 0.65z 0 B.jpg');
> >> save I
> >> imshow(I)
> ??? Undefined function or method 'imshow' for input arguments of type
> 'uint8'.
>
> >> ver
> -------------------------------------------------------------------------------------
> MATLAB Version 7.12.0.635 (R2011a)
> MATLAB License Number: 82987
> Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
> Java VM Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
> -------------------------------------------------------------------------------------
> MATLAB Version 7.12 (R2011a)
> Simulink Version 7.7 (R2011a)
> Control System Toolbox Version 9.1 (R2011a)
> Curve Fitting Toolbox Version 3.1 (R2011a)
> Fixed-Point Toolbox Version 3.3 (R2011a)
> Fuzzy Logic Toolbox Version 2.2.13 (R2011a)
> Global Optimization Toolbox Version 3.1.1 (R2011a)
> Image Processing Toolbox Version 7.2 (R2011a)
> MATLAB Coder Version 2.0 (R2011a)
> MATLAB Compiler Version 4.15 (R2011a)
> Neural Network Toolbox Version 7.0.1 (R2011a)
> Optimization Toolbox Version 6.0 (R2011a)
> Parallel Computing Toolbox Version 5.1 (R2011a)
> Robust Control Toolbox Version 3.6 (R2011a)
> Signal Processing Toolbox Version 6.15 (R2011a)
> SimHydraulics Version 1.9 (R2011a)
> SimPowerSystems Version 5.4 (R2011a)
> Simscape Version 3.5 (R2011a)
> Simulink Coder Version 8.0 (R2011a)
> Simulink Control Design Version 3.3 (R2011a)
> Statistics Toolbox Version 7.5 (R2011a)
> Symbolic Math Toolbox Version 5.6 (R2011a)
> System Identification Toolbox Version 7.4.2 (R2011a)
> Wavelet Toolbox
>
> Thank you in advance for any help you can give.



hi.
put your image into the matlab folder.mostly matlab folder is available in document.
if you put your image in desktop then give the path.
hope it helps you.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us