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??

Subject: imshow??

From: g heath

Date: 13 Sep, 2007 10:11:32

Message: 1 of 9

I have used this code to simply display an image::

I = imread('Image2.tif');
imshow(I)

however I get this error message..


??? Undefined function or method 'imshow' for input
arguments of type 'uint8'.

Error in ==> imageload at 7
 imshow(I)

does anyone have any ideas about why the funcion wont accept
unit8 data, as far as I know it should.. thanks, greg

Subject: imshow??

From: us

Date: 13 Sep, 2007 10:38:22

Message: 2 of 9

g heath:
<SNIP down to bad news...

> ??? Undefined function or method 'imshow' for input
> arguments of type 'uint8'.

do you have the (correct) <image proc tbx>?
us

Subject: imshow??

From: g heath

Date: 13 Sep, 2007 10:45:28

Message: 3 of 9

Im guessin you mean is the toolbox right? when i run ver i get:

MATLAB Version 7.3.0.267 (R2006b)
MATLAB License Number: 143840
Operating System: Microsoft Windows XP Version 5.1 (Build
2600: Service Pack 2)
Java VM Version: Java 1.5.0 with Sun Microsystems Inc. Java
HotSpot(TM) Client VM mixed mode
-------------------------------------------------------------------------------------
MATLAB
Version 7.3 (R2006b)
Signal Processing Toolbox
Version 6.6 (R2006b)

im assuming all the functionality is included with this
license?? thanks for the help

Subject: imshow??

From: Dave Robinson

Date: 13 Sep, 2007 11:11:25

Message: 4 of 9

"g heath" <Gregory_Heath@mathworks.com> wrote in message
<fcb4c7$1h2$1@fred.mathworks.com>...
> Im guessin you mean is the toolbox right? when i run ver
i get:
>
> MATLAB Version 7.3.0.267 (R2006b)
> MATLAB License Number: 143840
> Operating System: Microsoft Windows XP Version 5.1 (Build
> 2600: Service Pack 2)
> Java VM Version: Java 1.5.0 with Sun Microsystems Inc.
Java
> HotSpot(TM) Client VM mixed mode
> ----------------------------------------------------------
---------------------------
> MATLAB
> Version 7.3 (R2006b)
> Signal Processing Toolbox
> Version 6.6 (R2006b)
>
> im assuming all the functionality is included with this
> license?? thanks for the help

imshow() isn't available in the Signal Processing Toolbox.
it is in the Image Processing Toolbox, which is a different
animal. If you don't have that then you are scuppered.

Regards

Dave Robinson

Subject: imshow??

From: us

Date: 13 Sep, 2007 11:12:24

Message: 5 of 9

g heath:
<SNIP shall not be happy...

> MATLAB
> Version 7.3 (R2006b)
> Signal Processing Toolbox
> Version 6.6 (R2006b)

unfortunately, <imshow> is part of the <image processing
toolbox>, which you don't have...
your output would have to show this

MATLAB Version 7.5 (R2007b)
...
Image Processing Toolbox Version 6.0 (R2007b)
...

us

Subject: imshow??

From: g heath

Date: 13 Sep, 2007 11:53:56

Message: 6 of 9

Okay cool, is it not strange that I can access imread
though? How would i go about obtaining the image processing
toolbox? And also how come the error msg doesnt say.."you
dont have the image processing toolbox" or "function not
supplied" rather than complaining over the data type supplied?

Again, thanks or the help..greg

Subject: imshow??

From: Steve Eddins

Date: 13 Sep, 2007 12:36:32

Message: 7 of 9

g heath wrote:
> Okay cool, is it not strange that I can access imread
> though?

imread is in MATLAB.

> How would i go about obtaining the image processing
> toolbox?

Purchase it from The MathWorks.

> And also how come the error msg doesnt say.."you
> dont have the image processing toolbox" or "function not
> supplied" rather than complaining over the data type supplied?

MATLAB does not carry with it a list of functions that are in all
MathWorks products, so it cannot automatically infer that you were
trying to use a function in a product you do not have. The first part
of the error message, "undefined function," was the key part.

--
Steve Eddins
http://blogs.mathworks.com/steve

Subject: imshow??

From: Peter Boettcher

Date: 13 Sep, 2007 15:01:21

Message: 8 of 9

"g heath" <Gregory_Heath@mathworks.com> writes:

> Okay cool, is it not strange that I can access imread
> though? How would i go about obtaining the image processing
> toolbox? And also how come the error msg doesnt say.."you
> dont have the image processing toolbox" or "function not
> supplied" rather than complaining over the data type supplied?

You can probably just use image or imagesc instead, and be completely
happy. These are in base MATLAB. A good bit of image processing can
be done without the IPT. reading, writing, filtering, scaling, 2D
interpolation, are all supported.

-Peter

Subject: imshow??

From: Amanda Galtman

Date: 14 Sep, 2007 13:08:54

Message: 9 of 9


"Steve Eddins" <Steve.Eddins@mathworks.com> wrote in message
news:fcbase$ins$1@fred.mathworks.com...
>g heath wrote:
>> Okay cool, is it not strange that I can access imread
>> though?
>
> imread is in MATLAB.
>
>> How would i go about obtaining the image processing
>> toolbox?
>
> Purchase it from The MathWorks.
>
>> And also how come the error msg doesnt say.."you
>> dont have the image processing toolbox" or "function not
>> supplied" rather than complaining over the data type supplied?
>
> MATLAB does not carry with it a list of functions that are in all MathWorks
> products, so it cannot automatically infer that you were trying to use a
> function in a product you do not have. The first part of the error message,
> "undefined function," was the key part.
>
> --
> Steve Eddins
> http://blogs.mathworks.com/steve

One other small fact to throw in -- if you had a suspicion that the "undefined
function" was part of a MathWorks add-on product that you might want to obtain,
then you could check this list to see what product the function is in:

Function List - All Products
http://www.mathworks.com/support/functions/alpha_list.html

HTH,
Amanda

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