User`s guide
6 Morphological Operations
The stre l function creates a circular STREL object with a radius of 15
pixels. When working with the Openi ng block, pick a STREL object tha t
fits within the objects you want to keep. It often takes experimentation to
find the n eig hbo rhood or STREL object that best suits your application.
8 Use the Video Viewer1 block to view the background estimated by the
Openin g block. Accept the default parameters.
9 Use the first Sum block to subtract the estimated background from the
original image. Set the block parameters as follows:
• Icon shape =
rectangular
• List of signs = -+
10 Use the Video Viewer2 block to view the result of subtracting the
background from the original image. A ccept the default parameters.
11 Use the Constant block to define an offset value. Set the Constant value
parameter to
80.
12 Use the Data Type Conversion block to convert the offset v alue to an 8-bit
unsigned integer. Set the Outp ut data type mode parameter to
uint8.
6-14