Abstract
Digital image processing is a cornerstone of modern vision systems. In the context of virtual instrument systems, these processes are realized through modular computer software. This paper explores the development of an assembly vision system using National Instruments' LabVIEW and LabWindows/CVI platforms. By leveraging the IMAQ Vision library, the system implements a suite of algorithms—including nonlinear median filtering, RGC thresholding, and morphological operations—to achieve robust object segmentation and analysis without requiring extensive professional programming experience.
Introduction: The Virtual Instrument Paradigm
In industrial assembly and inspection, traditional methods often relied on manual oversight or inflexible analog signals. As hardware has evolved, the challenge has shifted toward creating software-driven systems capable of handling real-world noise, such as poor lighting and sensor interference. This research utilizes the "virtual instrument" paradigm, where hardware serves as a modular backbone (via GPIB, PXI, or DAQ) while the "intelligence" resides in software modules. This approach allows for rapid development and high flexibility in professional image analysis systems.
Image Pre-processing: Noise Reduction and Thresholding
The processing pipeline begins with noise mitigation. To combat pulse interference from image scanning, a nonlinear median filter using a 5x5 matrix template is employed. Unlike linear filters that blur edges, this rank-order filter preserves sharp boundaries, which is critical for accurate measurement in assembly tasks.
Following noise reduction, the system must convert the image to a binary format. Standard gray-level thresholding often fails under sub-optimal lighting conditions where the intensity difference between the object and background is minimal.
As shown in the intensity profile above, small amplitude jumps (labeled A-G) represent the transitions between objects and the background. To address this, the system utilizes an RGC threshold algorithm, which provides superior performance over standard methods when lighting is uneven.
Morphological Segmentation
Initial thresholding often results in binary images where objects appear to touch or overlap, and internal "holes" exist due to lighting reflections. The system applies mathematical morphology to refine these results:
- Hole Filling: A "closed" morphological algorithm fills internal gaps within binary objects.
- Regional Segmentation (Corrosion): To separate touching objects (referred to as "grains"), the system uses a 7x7 structural element to perform four consecutive "corrosion" (erosion) operations. This physically separates the digital representations of the objects.
Feature Extraction and Results
Once the objects are successfully segmented, the system automatically calculates geometric features for each identified component. This includes area, perimeter, major/minor axes, and centroid coordinates. In a complex test scenario involving overlapping and noisy inputs, the system successfully identified and logged data for 31 distinct objects.
The modular nature of the LabVIEW-based system ensures it can run effectively across various hardware platforms, from standard PCs to embedded workstations. While the current iteration requires some manual calibration for thresholding, the pipeline demonstrates a highly effective transition from raw, noisy sensor data to automated physical dimension logging.
Conclusion
By combining nonlinear filtering with sophisticated morphological operations, this virtual instrument approach provides a robust solution for assembly line vision. The system effectively overcomes the limitations of simple histogram-based segmentation, ensuring that even under poor lighting conditions, individual components can be accurately isolated and measured for quality control.
Summary updated