MorphOpDilate

Declaration: MorphOpDilate (MorphKernelType: TMorphKernelType; Size: integer; Input: TDouble2DArray; var Output: TDouble2DArray): integer;
The MorphOpDilate function dilates the image contained in the array Input and writes the result to the array Output. The parameter MorphKernelType controls the kind of morphological kernel to be applied, the parameter Size specifies the size of the kernel. Please note that for Size = 1 and Size = 2 the two kernels mktSpade and mktCircle are indistinguishable.

The function returns the following error codes:

 0 .... everything is OK
-1 ... Size is out of range (valid: 1..100)
-2 ... size of Input data is smaller than the Size parameter