From: talal hammouri on 8 Aug 2010 09:35 Dear wayne, thank you very much did you mean to use imresize.m instead of imresize ? since now at this time i am out of my office i can't check to use imresiz.m if not work what do you advise me to do ? what other options ? can i reload imresize from other previous versions or would you please send me only this function"imresize" really i need it for video and image compression research. by the way no one was working on the installation that they named imresize.m also the detailed of imresize appeared when writing doc imresize but as afunction it does not works. Thank you again Talal
From: Wayne King on 8 Aug 2010 11:06 "talal hammouri" <talalah(a)yahoo.com> wrote in message <i3mbq9$h5$1(a)fred.mathworks.com>... > Dear wayne, > thank you very much > > did you mean to use imresize.m instead of imresize ? > since now at this time i am out of my office i can't check to use imresiz.m > if not work what do you advise me to do ? what other options ? can i reload imresize from other previous versions or would you please send me only this function"imresize" > > really i need it for video and image compression research. > > by the way no one was working on the installation that they named imresize.m > > also the detailed of imresize appeared when writing doc imresize but as afunction it does not works. > > Thank you again > > Talal Hi Talal, yes I mean just to query: >>which imresize Wayne
From: us on 8 Aug 2010 11:15 "talal hammouri" <talalah(a)yahoo.com> wrote in message <i3mbq9$h5$1(a)fred.mathworks.com>... > Dear wayne, > thank you very much > > did you mean to use imresize.m instead of imresize ? > since now at this time i am out of my office i can't check to use imresiz.m > if not work what do you advise me to do ? what other options ? can i reload imresize from other previous versions or would you please send me only this function"imresize" > > really i need it for video and image compression research. > > by the way no one was working on the installation that they named imresize.m > > also the detailed of imresize appeared when writing doc imresize but as afunction it does not works. > > Thank you again > > Talal note: the doc will show the function even if the img proc tbx is NOT installed (properly)... a hint: - this shows you whether you own the tbx... ver images; us
From: us on 8 Aug 2010 11:18 "Wayne King" <wmkingty(a)gmail.com> wrote in message <i3mh4u$6r$1(a)fred.mathworks.com>... > "talal hammouri" <talalah(a)yahoo.com> wrote in message <i3mbq9$h5$1(a)fred.mathworks.com>... > > Dear wayne, > > thank you very much > > > > did you mean to use imresize.m instead of imresize ? > > since now at this time i am out of my office i can't check to use imresiz.m > > if not work what do you advise me to do ? what other options ? can i reload imresize from other previous versions or would you please send me only this function"imresize" > > > > really i need it for video and image compression research. > > > > by the way no one was working on the installation that they named imresize.m > > > > also the detailed of imresize appeared when writing doc imresize but as afunction it does not works. > > > > Thank you again > > > > Talal > > Hi Talal, yes I mean just to query: > > >>which imresize > > Wayne note: both work... which imresize; which imresize.m; us
From: ImageAnalyst on 8 Aug 2010 11:45
Talal: I absolutely agree with the others. It is most likely that you have an imresize.m file somewhere in your path that is not the official one. Using the which command will find it. To get that error, the only way I'm aware of is that you don't have this: function [B,map] = imresize(varargin) as the first (non-commented) line in the m-file. Two possibilities: 1. Someone took out that line from the official imresize by deleting the line or commenting it out, or 2. You have another imresize.m somewhere on your path that is also missing that function line. If that function line is missing, then MATLAB will consider the m-file as a simple script, which is unable to take arguments. If you call it with arguments, then you'll get your error message. To solve #1, put the cursor in your imresize and type control-D to bring up the source code. Then look for the function line. If it's not at the top of the file, then that's your problem. For #2, if you don't find imresize.m's evil twin using the which command, then just use your operating system's file search capability to search your entire hard disk. -ImageAnalyst |