06-19-2012 08:54 PM
Hello, I need to construct a ROI in the following way. Firstly, click the PC mouse at a certain spot (A) on the template. Secondly, drag the cursor from (A) to my preferred spot (a spot I chose based on what I see on the template view). At this second step, when I release the mouse there must be a rectangular ROI shown up on the view, with a cross (X) at its corner automatically superimposed onto the desired spot (where the mouse is released). Then, finally, at the pattern recognition step, the matching ROI with the cross (X) at the respective corner will be shown up on the result image as well. Please find the illustration attached. The color of the ROI and the cross (X) are not important.
Also, is there any way I can customized the color of the ROI edges so that each edge has a different color?
Any/all help would be much appreciated. Thanks.
06-24-2012 01:50 PM
I think for the 1st question, I need to capture the cursor movement (i.e. need to know the end point of the movement) in order to superimose a cross there?
Any help please?
06-24-2012 11:57 PM
Hi LePhoung
Did you checked it out ROI Proerty node it may helps you,
with use of this get the roi information from the image and do whatever you want to do.
06-25-2012 06:50 AM
Hi ₰αÇ,
I used what you suggested already. It can only help to chose different shape of the ROI, but neither be able to get the (x,y) coordinate of the ROI corners (for rectangular ROI) nor chose different colors for each ROI edge.
06-29-2012 10:23 AM
Hi LePhoung
Are you still having the problem?
06-29-2012 01:31 PM
Yes, I think I can get the coordinates of the 4 conners of the rectangular ROI and of the matched green box. But I don't know how to match the corresponding corner, which should be marked by the cross, in the sesulting image with that in the template image (especially when the resulting image is rotated comparing to the template).
06-30-2012 11:19 AM