10-16-2008 03:24 AM
i use the IMAQ overlay Retangle.vi to the image,and then i want to extract the portion inside the retangle to process,how can i do it?
thanks
10-16-2008 03:52 AM
10-16-2008 03:57 AM - edited 10-16-2008 03:58 AM
10-16-2008 05:08 AM - edited 10-16-2008 05:16 AM
but if it is a rotated retangle(such as rotated 45° ),it can not work well as you said
10-16-2008 05:23 AM - edited 10-16-2008 05:25 AM
please see my another POST "How to overlay a part of image with inclined retangle "
How to overlay a part of image with inclined retangle
10-16-2008 05:36 AM
10-16-2008 05:46 AM
10-15-2009 06:45 AM
Hi!
Same trouble!! I need a function so that it can extract a rotated rectangle. Extract.vi only returns a part of an image parallel to X and Y axis. I'd like to get one function that you can pass 4 point (coordinates) and maybe an angle of rotation so you get a rotated rentangle.
I know IMAQ rotate.vi does exists but it doesn't help, I need what I told before!!
Thanks
10-15-2009 07:04 AM
Same trouble!! I need a function so that it can extract a rotated rectangle. Extract.vi only returns a part of an image parallel to X and Y axis. I'd like to get one function that you can pass 4 point (coordinates) and maybe an angle of rotation so you get a rotated rentangle.
I know IMAQ rotate.vi does exists but it doesn't help, I need what I told before!!
10-15-2009 08:56 AM
Hi, Greg,
Do not search "ready-for-use-super-puper-universal-tool", just use suggested functions in combination:
Just starting point for you:
And result:
Now you have two images - one is extracted and masked (areas outside of rotated rectangle are filled with black. The second image is rotated and cropped to size of the original rotated rectangle. I have used fixed coords, but they should be calculated based on original size and angle (simple arithmetic).
best regards,
Andrey.