12-12-2014 03:52 AM
Hello,everyone:
I want to use the optical flow(KLP) in real-time.But,there is an problem "MAQ Vision: Incompatible image size." Can anyone give me some advises?
12-12-2014 07:30 AM
Hello,
try using IMAQ SetImageSize in the initialization stage for your "previous_image" reference.
Set the size according to the camera resolution.
Best regards,
K
12-12-2014 10:53 PM
Klemen,
Thank you very much. I have added the IMAQ SETIMAGESIZE.vi before the"pervious_image",but the same problem is still happen.This time I put my vi on the web,can you help me ?
12-12-2014 10:54 PM
Klemen,
Thank you very much. I have added the IMAQ SETIMAGESIZE.vi before the"pervious_image",but the same problem is still happen.This time I put my vi on the web,can you help me ?
12-15-2014 01:08 AM - edited 12-15-2014 01:12 AM
Hello,
in the initialization of the "previous_image", you have incorrectly wired the width and height of the image (it is 480x640, instead of 640x480, which I assume your camera outputs).
In order to make the program immune to camera resolution changes, I advise you to use the width and height camera property and wire this to the setImageSize. Put a property node after the camera initialization and read the W/H attributes of the camera.
Best regards,
K