ETcVnBorderInterpolationMethod
Offers methods to extrapolate values of non-existing pixels. On the one hand, this is used for filtering functions to enable filtering at the image borders (where the filter mask reaches over the border). On the other hand, this is used to extrapolate the undefined pixels after a geometric image transformation.
Syntax
Definition:
TYPE ETcVnBorderInterpolationMethod :
(
TCVN_BIM_CONSTANT := 0,
TCVN_BIM_REPLICATE := 1,
TCVN_BIM_REFLECT := 2,
TCVN_BIM_WRAP := 3,
TCVN_BIM_REFLECT_101 := 4,
TCVN_BIM_DEFAULT := 4,
TCVN_BIM_TRANSPARENT := 5,
TCVN_BIM_ISOLATED_CONSTANT := 16,
TCVN_BIM_ISOLATED_REPLICATE := 17,
TCVN_BIM_ISOLATED_REFLECT := 18,
TCVN_BIM_ISOLATED_WRAP := 19,
TCVN_BIM_ISOLATED_REFLECT_101 := 20
)DINT;
END_TYPE
Values
Name |
Description |
---|---|
TCVN_BIM_CONSTANT |
iiiiiii | abcdefgh | iiiiiii (with some specified i) |
TCVN_BIM_REPLICATE |
aaaaaaa | abcdefgh | hhhhhhh |
TCVN_BIM_REFLECT |
gfedcba | abcdefgh | hgfedcb |
TCVN_BIM_WRAP |
bcdefgh | abcdefgh | abcdefg |
TCVN_BIM_REFLECT_101 |
hgfedcb | abcdefgh | gfedcba |
TCVN_BIM_DEFAULT |
Choose this if you don't know which method to select (same as REFLECT_101). |
TCVN_BIM_TRANSPARENT |
Corresponding pixels in the destination image will not be modified. Only available for geometric image transformations. |
TCVN_BIM_ISOLATED_CONSTANT |
Similar to CONSTANT, but ROIs are handled as isolated, which means surrounding image pixels outside the ROI are ignored. |
TCVN_BIM_ISOLATED_REPLICATE |
Similar to REPLICATE, but ROIs are handled as isolated, which means surrounding image pixels outside the ROI are ignored. |
TCVN_BIM_ISOLATED_REFLECT |
Similar to REFLECT, but ROIs are handled as isolated, which means surrounding image pixels outside the ROI are ignored. |
TCVN_BIM_ISOLATED_WRAP |
Similar to WRAP, but ROIs are handled as isolated, which means surrounding image pixels outside the ROI are ignored. |
TCVN_BIM_ISOLATED_REFLECT_101 |
Similar to REFLECT_101, but ROIs are handled as isolated, which means surrounding image pixels outside the ROI are ignored. |
Weiterführende Informationen
Die Randinterpolation wird verwendet, um Pixelwerte außerhalb des Bildes zu simulieren. Dies ist z.B. bei der Anwendung eines Filters oder eines morphologischen Operators auf ein Bild notwendig. Wenn beispielsweise ein Filter über das Bild iteriert, muss festgelegt sein, wie sich der Filter an den Bildrändern verhält, wo Teile des Filterkernels außerhalb des Bildes liegen. Dazu werden die nicht vorhandenen Pixel außerhalb des Bildes simuliert, um die Filteroperation dennoch durchführen zu können. Die Art und Weise, wie diese Simulation durchgeführt wird, wird mit dem Enum ETcVnBorderInterpolationMethod
festgelegt. Häufig ist der Wert TCVN_BIM_REFLECT
eine gute Wahl; dieser spiegelt die äußeren Bildpixel mit dem Bildrand als Spiegelebene.