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
@PazhanivelVenkatt 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
- last edited on
03-09-2026
08:15 AM
by
Content Cleaner
I don't get why you are using Build cluster array instead of Bundle for cluster.
-The input to Rectangle to ROI is cluster of five elements, not cluster of array of five elements.
-no need of making array then converting to cluter.
-Just use bundle the five numbers using https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/bundle.html
-let me know if that helps.
07-11-2016 05:45 AM
Yes this worked. thanks