efficient way to compare 2 images?
#59
(11-20-2022, 05:28 AM)madscijr Wrote:
(11-20-2022, 04:42 AM)James D Jarvis Wrote: Couldn't you just:
Put image1 on a screen
Put image2 on the screen with a XOR  

Any pixels that aren't the background color will be pixels that are different in the two images.  
Count them (well, have a program do that ).  How many pixels need to be different before you can make a decision on comparison is up to you.

That's kind of brilliant, but how do you put an image with XOR??    

Sorry for late reply, I missed the question.  As  mnrvovrfc just use PUT.  There are of course limitations because you can't rescale as quickly as you can with _putimage.
PUT (graphics statement) - QB64 Phoenix Edition Wiki
Reply


Messages In This Thread
efficient way to compare 2 images? - by madscijr - 11-18-2022, 07:51 PM
RE: efficient way to compare 2 images? - by bplus - 11-18-2022, 08:10 PM
RE: efficient way to compare 2 images? - by Pete - 11-18-2022, 08:26 PM
RE: efficient way to compare 2 images? - by Pete - 11-18-2022, 08:55 PM
RE: efficient way to compare 2 images? - by Pete - 11-18-2022, 09:30 PM
RE: efficient way to compare 2 images? - by Pete - 11-18-2022, 09:52 PM
RE: efficient way to compare 2 images? - by Pete - 11-18-2022, 11:08 PM
RE: efficient way to compare 2 images? - by bplus - 11-18-2022, 11:40 PM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 12:22 AM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 01:22 AM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 05:39 PM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 06:28 PM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 10:54 PM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 11:54 PM
RE: efficient way to compare 2 images? - by bplus - 11-19-2022, 11:57 PM
RE: efficient way to compare 2 images? - by bplus - 11-20-2022, 12:02 AM
RE: efficient way to compare 2 images? - by bplus - 11-20-2022, 12:14 AM
RE: efficient way to compare 2 images? - by bplus - 11-20-2022, 12:36 AM
RE: efficient way to compare 2 images? - by bplus - 11-20-2022, 02:37 AM
RE: efficient way to compare 2 images? - by James D Jarvis - 12-10-2022, 05:31 PM



Users browsing this thread: 17 Guest(s)