Aurora Visio Studio TOP » Program Examples » Plate Measurement
Plate Measurement
目的
The aim of the program is to measure the the length of a metal plate.
Input
An image of a metal plate.
Output
Calculated distance between horizontal edges.
ヒント
The solution of this problem is immediate if a proper filter for measuring object width is used.
接続のラベル付けについては こちらを参照ください。
Solution (AVS)
-
In Workspace Explorer open workspace Examples and in Film strip window select Plate dataset. Drag the Image channel to the ACQUIRE section.
-
Add the MeasureObjectWidth filter.
-
Connect outImage with the inImage.
-
Click on the MeasureObjectWidth filter and make the following changes in Properties window (in the bottom left corner):
- Click the "..." button at the inScanField input to open the GUI for specifying scanning field.
- Set the scanning field as it is shown in the below image. Please remember that ScanField defines a rectangular field in which a series of scans will be performed.
- Set the inScanCount to 20 to increase the number of scanning segments that are used to detect the horizontal edges of the plate.
- Set the inStripeScanParams.StripePolarity to Bright as the plate is brighter than the background.
- Set the inStripeScanParams.MinStripeWidth to 500 to reject noise which is narrower than the object.
マクロフィルタ メイン
使用したフィルタ
アイコン | 名前 | 説明 |
---|---|---|
MeasureObjectWidth | ストライプ検出を使用してオブジェクトの幅を測定します。 |
その他の資料
- 1D Edge Detection - エッジ検出フィルターがどのように機能するかを説明しています。