Thicken vs Dilate

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
vgvallee
Posts: 3
Joined: 2015-12-05T12:15:28-07:00
Authentication code: 1151

Thicken vs Dilate

Post by vgvallee »

Is there a difference between the Thicken and the Dilate methods of the Morphology function?

I'm doing this to pad my regions with 10px:

Code: Select all

image.Morphology(ImageMagick.MorphologyMethod.Dilate, ImageMagick.Kernel.Disk, "9.5", 1);
I tried to find the proper kernel to do a similar thing but haven't succeeded yet. I'm thinking that it may be faster.

Would it achieve the same results and would it be faster or am I losing my time?

Thanks.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Thicken vs Dilate

Post by dlemstra »

You can find the difference between those two Morphology methods here:

http://www.imagemagick.org/Usage/morphology/#dilate
http://www.imagemagick.org/Usage/morphology/#thicken
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply