Hello Ganesh,
If I understand correctly, you are trying to draw a line on your image that will indicate where the line defects are occurring in the metal sheet. Is this what you are trying to do?
If you are using LabVIEW, there is a "Show Results" option in the Settings input to the Find Horizontal/Vertical Edge VIs. By setting that to show the results, the edge that is detected will be highlighted on the image.
What environment are you developing your application in? Are you using LabVIEW, Visual Basic, Visual C++, or CVI? What versions of the IMAQ driver and Vision toolkit are you using?
Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments