guide bar orientation must be normalized to be parallel with the actual search direction because the orientation of the guide bar is unambiguous.i know that This ambiguity can be done by searching the nearest extrema points between the two guide bars, as image2,when these extrema points are known, we can form a reference vector from the extrema point to the centroid of the guide bar.
The dot product of the reference vector and the bar orientation tells us if the bar orientation is defined in “right” or “wrong” direction. If the dot product is positive, the directions of these vectors correlate, when the original bar orientation can be used as search direction. Otherwise, we must change the bar orientation vector to the opposite direction. so i need to know the right direction v=[cos(phi);-sin(phi)] of each ba