Search found 7 matches
- 2016-09-05T19:16:26-07:00
- Forum: Users
- Topic: Finding the difference of black and transparent images
- Replies: 15
- Views: 3854
Re: Finding the difference of black and transparent images
Ah so it looks like the main reason i was struggling was because i thought -compose difference would also diff the alpha channel. Looks like magick by default only uses rgb for its operators unless told (default setting is: RGBK,sync ) Quick question: Why is it necessary to reset the channel ...
- 2016-09-05T18:37:33-07:00
- Forum: Users
- Topic: Finding the difference of black and transparent images
- Replies: 15
- Views: 3854
Re: Finding the difference of black and transparent images
Spent a bit of time to make a test image (below) and it looks like your most recent script does just as well as compare does. I just have to add threshold 0 at the very end for my own use-case since i end up multiplying this mask later on. Would you mind explaining why it works, though? Thanks so ...
- 2016-09-05T14:19:44-07:00
- Forum: Users
- Topic: Finding the difference of black and transparent images
- Replies: 15
- Views: 3854
Re: Finding the difference of black and transparent images
Yeah, that is really close to perfect. The regions are slightly off but this should be fine. Think ill run with this.
Thank you both very much
Thank you both very much
- 2016-09-05T13:38:36-07:00
- Forum: Users
- Topic: Finding the difference of black and transparent images
- Replies: 15
- Views: 3854
Re: Finding the difference of black and transparent images
Let me clarify what i mean by anything . If i was given current-frame.png and asked to circle any pixels that have changed since previous-frame.png , that is what the output would be. I was basically looking for a way to emulate the compare command with convert in order to avoid writing a temporary ...
- 2016-09-05T12:28:01-07:00
- Forum: Users
- Topic: Finding the difference of black and transparent images
- Replies: 15
- Views: 3854
Re: Finding the difference of black and transparent images
I'd want exactly like the above. Wherever anything is different: white, otherwise black.
- 2016-09-05T11:22:42-07:00
- Forum: Users
- Topic: Finding the difference of black and transparent images
- Replies: 15
- Views: 3854
Re: Finding the difference of black and transparent images
Ah that works perfectly, thanks. I forgot to mention in my original post, though, that these images don't have to be 100% black; that was just an edge case I found. Do you have a solution for a case like this?: Previous: http://puu.sh/r0Yku/50f67483c6.png Current: http://puu.sh/r0YlQ/f5d451a85f.png ...
- 2016-09-05T10:56:06-07:00
- Forum: Users
- Topic: Finding the difference of black and transparent images
- Replies: 15
- Views: 3854
Finding the difference of black and transparent images
I am trying to find the difference between images that are only black and transparent. Since compose difference is just abs(src - dest), using threshold 0 to generate a "difference mask" fails. convert current-frame.png -compose difference -composite -threshold 0 difference-mask.png Is there a way ...