Several Intel IPP filters operate in two or more
stages. For example, the
ippiMorphOpenBorder functions perform filtering applying
Erode and Dilate filters sequentially. You should note the following when
setting borders for multistage filters:
- If you set the
ippBorderInMem type or its flag combinations, they are
applied only to the first filtering operation because the output from the first
filter does not have border pixels in memory. The second filter will use one of
the following border types to reconstruct image borders:
ippBorderRepl,
ippBorderConst,
ippBorderMirror, or
ippBorderMirrorR. To specify the border type for the
second and next stages, use the bitwise OR operation between one of the listed
above border types and
ippBorderInMem flags combination.
- If you set the border type different from
ippBorderInMem, it is applied to all stages of
filtering.