LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqFindEdge and imaqFindEdge2

Hello all,

 

Smiley Happy

 

I''m trying to program an picture process application with NI Vision Assistant, but I've got some problems. I'm actually trying to use the  "Straight Edge (Rake)" detector of edges in an image (see NI VIsion).

When I put "Generate C code" in a new labwindows CVI project, Vision Assistant generate a code and process the "Straight Edge (Rake)" with "imaqFindEdge". It does'nt works, cause this function seems to be "obsolete" (I saw it in the documentation "NIVisionCVI.chm" wich talks about another function "imaqFindEdge2 " wich can do this also).

 

I've changed a little bit my parameters to put them into this imaqFindEdge2, and Labwindows CVI can now compute my code. The problem is that the repport that this function returns to me seem to be totally empty, all values are 0 ... I've computed a coordinate system with imaqbuildcoodinatesystem(), and i've puted this coordinate system into imaqFindEdge2, also as the old and also as the new coordinate system cause i don't have to change my coordinate system, i just want to find the edge.

 

Furthermore, when I display the processing image (with , obviously, all the value in the edgeoptions on TRUE) the red line (wich indicate the founded edge)  does not appear ! Ther's only the yellow points and the blue research lines ... I think there's a link between these two problems.

 

So to conclude, I don't understand why it doesn't works and also why the first function imaqFindEdge is obsolete (cause using it seems to be easier). If someone can use Straight Edge (Rake) in C code with imaqFindEdge or imaqFindEdge2, I would be glad to get an example of his code. Smiley Very Happy

 

Thanks a lot,


best regards all.

 

 

PS. I've also already saw this page http://forums.ni.com/t5/Measurement-Studio-for-VC/imaqFindEdge2/td-p/1194867 wich helped me in the Straight Edge (Rake) programation using imaqFindEdge2.

0 Kudos
Message 1 of 1
(2,879 Views)