Search found 4 matches

by brute11k
2011-06-26T03:39:16-07:00
Forum: PerlMagick
Topic: Sparse Color
Replies: 7
Views: 23539

Re: Sparse Color

I've found a little "bug" (basically it's not but anyway this is not what I've expected): So here is original: http://i.imgur.com/qFg7Z.png Output: http://i.imgur.com/UzQIg.png As you can see there is black points where should be alpha channel, but there is also should be black points here (and they...
by brute11k
2011-06-26T02:06:19-07:00
Forum: PerlMagick
Topic: Sparse Color
Replies: 7
Views: 23539

Re: Sparse Color

Finally, it works like a charm: http://paste.pocoo.org/show/420016/ There is a little fixes should come because I don't like the way it interferes with the edges (they are too sharp). So I need to blur an image with blur mask around edges, where the diffuse effect is applied. Already tested it with ...
by brute11k
2011-06-25T05:16:49-07:00
Forum: PerlMagick
Topic: Sparse Color
Replies: 7
Views: 23539

Re: Sparse Color

Okay thanks for replies, I've almost done with my script that creates Diffuse Borders like this: http://i.imgur.com/ZyNE6.jpg By the time, I have all preparations done like check files, resize, add transparent borders, write to file, etc. This is what I'm trying to do: $image->Extent(geometry=>$geom...
by brute11k
2011-06-20T09:59:31-07:00
Forum: PerlMagick
Topic: Sparse Color
Replies: 7
Views: 23539

Sparse Color

So, basically, here is command-line script: convert m_f.png txt:- | sed '1d; / 0) /d; s/:.* /,/;' | convert m_f.png -alpha off -sparse-color shepards '\@-' m_f.png I've already found function SparseColor, which can be used to interpret right side of the string: convert m_f.png -alpha off -sparse-col...