Hello,
I'm writing a bash script, which has to compare two images and give me the coordignates of pixels, which are diffrent.
Is this possible to be done in Imagemagick or Am I forced to look for some other solution?
Thank you for any suggestions
Adamus
How to find coordinates of pixels that two images differ in?
- GreenKoopa
- Posts: 457
- Joined: 2010-11-04T17:24:08-07:00
- Authentication code: 8675308
Re: How to find coordinates of pixels that two images differ
Sure you could do this with ImageMagick. The output could be an image or text (but probably require some post-processing on your part to get it in the format you require).
Re: How to find coordinates of pixels that two images differ
I know how to get this as image, but I need it as text.
- GreenKoopa
- Posts: 457
- Joined: 2010-11-04T17:24:08-07:00
- Authentication code: 8675308
Re: How to find coordinates of pixels that two images differ
Your difference image could take many forms, most simply white for pixel is different and black is pixel is same (or the other way around). In any case, any image can be saved in several formats, including text. See:
http://www.imagemagick.org/Usage/files/#txt
Is that like what you need?
http://www.imagemagick.org/Usage/files/#txt
Is that like what you need?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to find coordinates of pixels that two images differ
the IM compare function allows you to create the image (you probably already know) or you could use -compose difference. you can then convert the image into txt: format and write to file, string or terminal. see http://www.imagemagick.org/Usage/files/#txt
Re: How to find coordinates of pixels that two images differ
Yes it is what I needed.
Thanks, you were really helpful.
Thanks, you were really helpful.