Page 1 of 1

How to Identifies and separate isolated shape from alpha?

Posted: 2013-06-06T11:01:25-07:00
by dcfvg
Hello,

I'm working with many drawing i make everyday.

i scan them and i remove the background using :
convert a.jpg -fuzz 25% -transparent white a.png
Now, i would like to separate isolated shape using alpha channel :

Image


I found a very clever script by fred aka mw42 who can do that with binaries files but i wasn't able to adapt it.
http://www.fmwconcepts.com/imagemagick/ ... /index.php

The render also seems to be very long : it will never finish with big files ( size > 1000*1000 ) even in binary.

Does anybody got an idea ?

thanks
d.

Re: How to Identifies and separate isolated shape from alpha

Posted: 2013-06-23T11:10:08-07:00
by fmw42
Can you provide an example image and describe exactly what you are doing and what you want to achieve?

Re: How to Identifies and separate isolated shape from alpha

Posted: 2013-06-28T22:27:26-07:00
by fmw42
I recently made some changes to my separate script to make it run 6x faster.