03-22-2006 08:58 PM
03-23-2006 09:48 AM
I don't know of a better way to locate the edges of a rectangle than what you are doing. I would recommend using Vision Assistant (or Vision Builder AI) on one of your images to fine tune the parameters for the edge location. You may need to change the contrast level or the line spacing to get better points. Also, try to avoid the corners so you don't get points from other edges.
Other than that, I would recommend posting an image if you are still having problems.
Bruce
03-27-2006 01:31 AM
well, I have find the edges of the rectangle using the way I mentioned .
Now, I want to reconstruct the rectangle using these edged points. I don't know how to do it.
Can you help me? Thanks
03-27-2006 07:54 PM
You should have the lines that represent the four sides of the rectangles. You can use "IMAQ Lines Intersection" to get the points at each corner of the rectangle. This function is under at Vision -> Machine Vision -> Analytic Geometry.
Bruce
03-28-2006 08:16 PM
03-28-2006 08:36 PM
I adopt your suggest and use the "IMAQ Lines Intersection" ,but there is a problem I don't know.
the input of "IMAQ Lines Intersection" asks the cluster of two point-coordinates that lie on each line,
I wonder the type of the cluster of the two point-coordinates, I tried many times: cluster of two arrays,cluster of two clusters,
They are both wrong. I don't know other ways to show the point-coordinate.
03-28-2006 08:37 PM
Try an array of clusters. Each cluster is a point. The output of the Find Horizontal/Vertical Edge should be the same line - you should be able to just wire the output of Find Edge into the input of Lines Intersection.
Bruce
03-29-2006 07:36 PM
03-29-2006 08:04 PM