From: Mira Ab on
Im reading an input of 800 by 480 by 3 into simulink from the webcam. But the webcam only have a resolution of 640 by 480 by 3. When i run simulink, the error states that there is a "imresize" matlab command mismatch.


The input size cannot be change as it will affect the whole process of it. So what changes can be made to solve this mismatch?
From: Walter Roberson on
Mira Ab wrote:
> Im reading an input of 800 by 480 by 3 into simulink from the webcam.
> But the webcam only have a resolution of 640 by 480 by 3. When i run
> simulink, the error states that there is a "imresize" matlab command
> mismatch.
>
> The input size cannot be change as it will affect the whole
> process of it. So what changes can be made to solve this mismatch?

I don't know Simulink, but it sounds like you could insert an block to
resize the image to 800 x 480 between the fetching of the image from the
webcam and the part that expects the larger size.

Resizing the image *will* distort the aspect ratio unless you just pad
the matrix (a possibility to be seriously considered), but I can't tell
you anything about what to expect the consequences of the aspect ratio
change to be, because you have not told us anything about the processing
you are doing.


There is, by the way, no reason to post exactly the same question
several times the same day. If your posting shows in on the Mathworks
newsreader then it _did_ make it to the outside world; if no-one answers
for a while then either no-one competent to answer happened to read the
question, or the people didn't have time to answer, or your question was
too vague to be answerable without a lot of back-and-forth interaction
to find out what you are REALLY trying to do (hint, hint.)