IMAQ Count Objects 2 VI
Owning Palette: Count and Measure ObjectsInstalled With: NI Vision Development ModuleLocates, counts, and measures objects in a rectangular search area. This VI uses a threshold on the pixel intensities to segment the objects from their background.
Settings is a cluster defining the parameters of the algorithm and the information that is overlaid on the result image.
|
|||||||||||||||||||||||||||
Image is a reference to the source image. |
|||||||||||||||||||||||||||
Search Rect (entire image) specifies the rectangular region of the image where the objects are located. The default value specifies a search on the entire image.
|
|||||||||||||||||||||||||||
Coordinate System specifies the coordinate system to which the Search Rect is linked. If the Coordinate System input is used (connected), the location of the Search Rect is shifted and rotated by the difference between the reference position of the coordinate system and its new location. |
|||||||||||||||||||||||||||
error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
|||||||||||||||||||||||||||
Objects is an array of clusters that return the following elements for each object located.
|
|||||||||||||||||||||||||||
Image Out is a reference to the destination image. The search area and/or the result of the measurement may be overlaid on the image according to the settings. |
|||||||||||||||||||||||||||
Number of Objects is the number of objects located in the search area based on the input Settings. |
|||||||||||||||||||||||||||
Coordinate System (duplicate) is a reference to the coordinate system. |
|||||||||||||||||||||||||||
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
Details
Optional filters give the capability to ignore the objects smaller or larger than given sizes. Other options allow rejecting the objects touching the borders of the search area and ignoring the holes that the segmentation process may create in the objects. The segmented objects are then located and measured. IMAQ Count Objects 2 can overlay on the image returned the position of the search area, the centers and bounding rectangles of the objects detected.