|
Re: Target acquisition with camera- color issues
Oh, the vertical separation. I thought you meant a vertical stripe of glare and a horizontal separation.
Yes, the vertical separation is an artifact of the LV algorithm that doesn't do the mask to the entire image on the second color. It copies out small rectangular images and applies the algorithm to those. As you get close to the image and get more of an angle, the curvature of the color boundary no longer looks much like a line. I hadn't realized this would lead to issues.
To fix/improve it, I'd change the subVI that computes the top and bottom search rectangles so that they overlap with the initial rectangle by some percentage. More explicitly, the bottom of the top rect should increase by say 25% of the rect height, and the top of the bottom rect should decrease by the same amount. The subVI has a misleading name of Green Rects.vi.
Let me know if that doesn't fix it.
I'm still going to look at the glare thing, and I'll post back if the idea shows any promise.
|