Page 1 of 1

How to use Morphology method?

Posted: 2011-12-15T11:53:08-07:00
by abjones
Howdy Folks,

I want to manipulate an image as from the command line

Code: Select all

convert target.png -morphology dilate disk:5 result.png
Can someone tell me how to correctly write my perl code:

Code: Select all

$error=$image->Morphology(kernel=>"dilate disk:5");
Thanks
Blair Jones

Re: How to use Morphology method?

Posted: 2011-12-15T12:05:44-07:00
by magick
Try something like this:
  • $x = $image->Morphology(method=>'Dilate',kernel=>'Diamond',iterations=>2);

Re: How to use Morphology method?

Posted: 2011-12-15T12:57:45-07:00
by abjones
$error = $image->Morphology(method=>'Dilate',kernel=>'Disk:5');

Perfect!!! Thanks so much!
Blair Jones