Optical Flow

Hello. I am attempting to use NIs optical flow (HS) VI. Unfortunately, I get an error: “IMAQ Vision: Incompatible image size.”

The code is using IMAQdx for image acquisition. I have found out that this is not the issue though, as other VIs, such as colorThreshold, work perfectly fine.

The vi is attached.

desktop optical flow.vi (53.6 KB)


desktop optical flow.vi (53.6 KB)

When I started working with this VI I received the same error. The solution I found is the fact that both your current and previous image must have the same dimensions for both the x and y directions.