Is -morphology not working?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
GregUK

Is -morphology not working?

Post by GregUK »

I am trying to follow the Morphology examples at http://www.imagemagick.org/Usage/morphology/ using IM 6.5.9-0 2010-01-11 Q16, but get the following error:

Code: Select all

>convert input.jpg -morphology Dilate Square output.jpg
convert: unrecognized option `-morphology' @ convert.c/ConvertImageCommand/1911.
Any idea why this isn't working?

Thanks.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Is -morphology not working?

Post by magick »

Morphology will be available in the next point release of ImageMagick in about a week.
GregUK

Re: Is -morphology not working?

Post by GregUK »

Excellent, thank you! :D
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Is -morphology not working?

Post by anthony »

That documentation is also slowly being added.

Morphology is new and what I am working on while on vactaion visiting relatives (wifes) in far South-west China. Network access is only via internet cafe, so my updates are slow.

At this time all the morphology stuff should be working, though it will be better once documentation is present to show what you can do with it.

At thge moment I am documenting basic convolution. This also has a separate option -convolve whcih uses older code that will eventually be replaced by the morphology version. After that the four basic morphology operators will be documented and the 'Distance' morphology operator. When complete I will then see about addint the other morphology methods, like top-hat, edge-in/out (also known as morphological gradient), hit-n-miss, pruning, thinning, thickening, and a couple of forms of skeletionization.

All this will make the later addition of things like segmentation a lot easier in the far future.

Bye for now from China.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
galv
Posts: 62
Joined: 2010-05-23T17:35:59-07:00
Authentication code: 8675308

Re: Is -morphology not working?

Post by galv »

I'm using the following IM version and -morphology yields "convert: unrecognized option `-morphology' @ convert.c/ConvertImageCommand/1900." .
Version: ImageMagick 6.5.7-8 2009-11-26 Q16 http://www.imagemagick.org

Is that because it's not in yet or is my distro (Ubuntu 10.04) using an old IM version?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Is -morphology not working?

Post by Bonzo »

As the OP was using IM 6.5.9-0 2010-01-11 Q16 and it was being implimented after that I would say yes your version is to old.

Run this to confirm:

Code: Select all

convert -list Command
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Is -morphology not working?

Post by fmw42 »

-morphology was first introduced about IM 6.5.9.3 and has gone almost steady improvement with bug fixes and additional features until the current release. The last noted change in the changelog was at 6.6.2-5 see http://www.imagemagick.org/script/changelog.php
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Is -morphology not working?

Post by anthony »

More items are planned, but my year has been increadable busy. And still not finished.

Last night I worked to 10:30PM trying to reach deadlines.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply