07-08-2016 05:26 AM
Hi,
I'm analysing a video and would like the option to either define a RIO by clicking and dragging on the video window or by using a default region. I've manage to do the click and drag but I can't set the rectangle to be the to corner of the video. Video resolutions change between files so I need to use the info from the width and height to define the coordinates . These values then need to be passed to the IMAQ convert rectangle to RIO. The problem is I cant write to the function in the rectangle data type. I tried a standard cluster of the 5 elements which are in the rectangle data type but this doesn't work. How do I do this? The picture shows the code I have.
thanks
Stephen
Solved! Go to Solution.
07-08-2016 05:30 PM
07-09-2016 12:29 AM
use this example to solve yuor problem
07-11-2016 02:51 AM
@PalanivelThiruvenkadam wrote:
Covert the cluster to array of 4 elements then it will work for you
The above statement has to be reversed to make the concept work
07-11-2016 05:39 AM
07-11-2016 05:45 AM
Yes this worked. thanks