1 Create an estimated background image. An estimated background image is created using an extraction
filter to remove details from the captured image of a size less
than the specified parameters.
2 Subtract the estimated background image Input image Estimated background image Subtracted image
from the input image.
3 Optimise the image. The image optimization changes the resulting image into one that is
more suited for inspection by increasing the gain and eliminating
noise.
The stability is increased by using the shading After eliminating uneven lighting (shading) caused by
correction filter to reduce the effect of the background part variation, the (bright) defect is expanded to
noise and the shrink filter is used connect the dots. emphasise it.
EXAMPLE 4 ELIMINATING BACKGROUND NOISE DURING THE INSPECTION OF DEFECTS
IMPORTANT POINTS
Magnification
ALGORITHM OF THE SHRINK FILTER
In this processing, the
intensity of the central pixel
Shrinking
in a 3 × 3 set is replaced
with the minimum intensity of 2 5 9
the 9 pixels including the
one in the centre. This has
4 0 3
the effect of eliminating white
noise components. Image prior to filter processing Image after filter processing
0 1 2
IMPORTANT POINTS
Image prior to filter processing Image after filter processing
IMPORTANT POINTS
Image prior to filter processing Image after filter processing
EXAMPLE 8 SCRATCH DETECTION IGNORING UNEVEN LIGHTING AND HAIRLINE FRACTURES ON METAL SHAFTS
IMPORTANT POINTS
Image prior to filter processing Image after filter processing
www.keyence.com
Copyright (c) 2016 KEYENCE CORPORATION. All rights reserved. VisionSystemTips1-WW-EN-GB 1026-1 E 600I37