VfSubpixelBlob and VfPixelCounter ROI Integration for Contamination Measurement

Dear Community,

Hello

I use:
PLC : X20CP1686X
Camera: VSC123R22.041P-000
AS: V 4.12.8.41
mappVision: 5.30.1
mappView: 5.24.5

Objective / Requirements

  • Detect the entire metal plate as a single blob using VfSubpixelBlob and measure the total plate size (area).

  • Restrict the ROI to the detected plate blob region only.

  • Use VfPixelCounter to detect and count dark (black) contamination pixels inside the plate area only.

  • Calculate the contamination level either as:

    • Absolute area (mm²), or

    • Relative ratio (%) with respect to the total plate area.


Questions Regarding Function Chaining / Pipeline Integration

  1. Is it possible to pass the “Region / Contour (mask)” output of VfSubpixelBlob directly to the next Vision Function as an ROI?

  2. If supported, can VfPixelCounter use this Region directly as its ROI (instead of a rectangular ROI)?

  3. If Region transfer is not supported,
    is it possible to dynamically define the VfPixelCounter ROI using the bounding box values
    (Xmin, Xmax, Ymin, Ymax) obtained from VfSubpixelBlob?

    • Can these bounding box values be mapped to the PixelCounter ROI parameters at runtime?

    • Is it possible to apply an additional offset or margin to the ROI?

Solution was provided by Vision team, refer to Improving image quality of Copper plates in vision camera and Dynamic ROI Adjustment and Pixel Counter for Copper Plate Inspection - #3 by kovarj