cant get morpholgy of this image ?

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?".
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: cant get morpholgy of this image ?

Post by diegomage »

I use the same command and not works this could be a error of versions ??

Code: Select all

convert kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: cant get morpholgy of this image ?

Post by diegomage »

fmw42 wrote: 2017-03-25T19:22:32-07:00 Still not correct. See my listing above. Note that the type is grayscale and not binary. Also see all the graylevels in the histogram. Morphology works primarily on binary images. So you need to threshold this image.
I use the same command that you tell me but not works I use the image that you posted
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cant get morpholgy of this image ?

Post by fmw42 »

No, I doubt that.

Are you using the image you posted by downloading it from this web site or the image before you uploaded it. Some hosting services change the image format to always post JPG versions.

Are you running this in a bat file? If so you need to change % to %%.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cant get morpholgy of this image ?

Post by fmw42 »

I only posted my result. You need to use the image that you posted by downloading it again from your post.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cant get morpholgy of this image ?

Post by fmw42 »

What is your IM version and platform? We keep asking you to always post that information.
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: cant get morpholgy of this image ?

Post by diegomage »

I use this version Version: ImageMagick 7.0.4-9 Q16 x86_64 2017-02-20 http://www.imagemagick.org

I will try to downgrade to your version
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cant get morpholgy of this image ?

Post by fmw42 »

No do not do that. Let me check with IM 7 where you have to use magick rather than convert.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cant get morpholgy of this image ?

Post by fmw42 »

There is a bug. IM 7.0.5.4 does not do this correctly using:

Code: Select all

magick kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
I will report it.

This is why it is IMPORTANT that you always provide your IM version and platform!
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: cant get morpholgy of this image ?

Post by diegomage »

I use this two commands and nothing

Code: Select all

magick  kLdPK.jpg -threshold 50%  -morphology Thinning:-1 Skeleton skeleton.gif

Code: Select all

magick kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif

maybe couldbe problems with the version of problems whit the OS

I dont know
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cant get morpholgy of this image ?

Post by fmw42 »

You did not threshold it as I said above. It is not binary input when you use jpg.

But as I said above IM 7 has a bug in this command. So it will not work in IM 7
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: cant get morpholgy of this image ?

Post by diegomage »

I use this

magick kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif

convert kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif

and this

magick kLdPK.jpg -morphology Thinning:-1 Skeleton skeleton.gif

convert kLdPK.jpg -morphology Thinning:-1 Skeleton skeleton.gif
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: cant get morpholgy of this image ?

Post by diegomage »

OK I will try to downgrade
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cant get morpholgy of this image ?

Post by fmw42 »

try

Code: Select all

magick convert kLdPK.jpg -threshold 50% -morphology Thinning:-1 Skeleton skeleton.gif
If that does not work, then you will need to use IM 6 for this.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cant get morpholgy of this image ?

Post by fmw42 »

diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: cant get morpholgy of this image ?

Post by diegomage »

not works I will change the version thanks
Post Reply