Page 2 of 3

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:25:45-07:00
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

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:27:22-07:00
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

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:28:37-07:00
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 %%.

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:29:23-07:00
by fmw42
I only posted my result. You need to use the image that you posted by downloading it again from your post.

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:30:22-07:00
by fmw42
What is your IM version and platform? We keep asking you to always post that information.

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:33:16-07:00
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

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:34:02-07:00
by fmw42
No do not do that. Let me check with IM 7 where you have to use magick rather than convert.

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:35:19-07:00
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!

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:37:09-07:00
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

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:39:19-07:00
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

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:40:44-07:00
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

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:41:22-07:00
by diegomage
OK I will try to downgrade

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:45:15-07:00
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.

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:45:37-07:00
by fmw42

Re: cant get morpholgy of this image ?

Posted: 2017-03-25T19:46:56-07:00
by diegomage
not works I will change the version thanks