Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Find Straight Edge Limits around zero

VBAI 2.6.1:  How do I set angle limits in the Find Straight Edge to be on either side of zero?  While the max/min limit boxes accept +5/-5, the returned angle in between 0 and 360, and there is apparently no built in logic.  I want my limits to be accept on from -5 to +5 degrees, if I stay in the 0 to 360 then it I can only input a min of 5 and max of 355, but I want just the opposite of this.  Please help.
Thanks
 
0 Kudos
Message 1 of 2
(3,067 Views)
You are right in the statement that currently there is no built in logic to hangle a range with a negative number.  You can select the +5/-5 range, but the edge find will only pass for angles between 0 and 5.  The angles that the Edge Detection algorithm uses will only return a positive angle.  This angle is referenced from the starting point of the edge and rotating counter clockwise from the positive x-axis until the edge is found.  The starting point is the point closest to the upper left corner of the ROI.  Before the functionality to return negative angles is added there is a work around that you should be able to implement.  Rotate the ROI used in the Find Straight Edge step 180 deg.  This will shift the reference for the angle of the edge 180 deg changing the +5/-5 range to 185/175. This isn't the cleanest process around, but it will give you the functionality you are looking for until the software is updated. 
Message 2 of 2
(3,036 Views)