Use the Edge Tool to find edges or sharp transitions in the pixels values along a given line or ROI profile. Edge locations can determine the dimensions of an object in a gauging application or identify cracks during quality control inspections.
The Edge Detection example shows you how to get the line profile, gradient information and number of edges detected along a line ROI.
The example allows you to draw the line ROI anywhere on the image and will overlay red dots on the location(s) along the line ROI where edges are detected.
The IMAQ ROIProfile.vi returns information about the line profile of the ROI selected.
The IMAQ Edge Tool 3.vi returns the gradient information as well as the edges detected along the line.
Vision Development Module.
IMAQ Edge Tool 3 Help Documentation:
http://zone.ni.com/reference/en-XX/help/370281AD-01/imaqvision/imaq_edge_tool_3/
Front Panel
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
By using the above Vi is it possible detect broken Pills ?