Widget Well-Known Member Licensed User Longtime User Sep 6, 2011 #1 I'm not sure this can be done quickly. But I have a couple dozen small bitmaps of the same dimension and I'd like to know if they contain roughly the same image. Let's say someone takes a picture of the sky and it is grey because it is overcast. I have another picture that is also of the same overcast sky. I'd like to be able to do an XOR on both bitmaps and determine if there are only a few differences, or many differences. Now of course I could go through each bitmap pixel by pixel, but that would be incredibly slow. I'm wondering if I could load each bitmap into an binary array so I could quickly perform an XOR operations on the two? A low number of non-zero elements tells me how similar the images are. Any idea'rs? Widget
I'm not sure this can be done quickly. But I have a couple dozen small bitmaps of the same dimension and I'd like to know if they contain roughly the same image. Let's say someone takes a picture of the sky and it is grey because it is overcast. I have another picture that is also of the same overcast sky. I'd like to be able to do an XOR on both bitmaps and determine if there are only a few differences, or many differences. Now of course I could go through each bitmap pixel by pixel, but that would be incredibly slow. I'm wondering if I could load each bitmap into an binary array so I could quickly perform an XOR operations on the two? A low number of non-zero elements tells me how similar the images are. Any idea'rs? Widget
NeoTechni Well-Known Member Licensed User Longtime User Sep 6, 2011 #2 When i made a program to check for motion on a webcam i only checked 1 pixel per 16x16 pixel block (the 16 was of course a variable) i got it to run quite fast on a pc but you wouldnt need it to run realtime it would return a smaller greyscale image where the darker the pixel the more change there was between the colors rgb values Upvote 0
When i made a program to check for motion on a webcam i only checked 1 pixel per 16x16 pixel block (the 16 was of course a variable) i got it to run quite fast on a pc but you wouldnt need it to run realtime it would return a smaller greyscale image where the darker the pixel the more change there was between the colors rgb values
Widget Well-Known Member Licensed User Longtime User Sep 7, 2011 #3 NeoTechni, That should speed things up a bit. Thanks. I may even try using OutputStream.InitializeToBytesArray on images that pass the random pixel check of yours. Widget Upvote 0
NeoTechni, That should speed things up a bit. Thanks. I may even try using OutputStream.InitializeToBytesArray on images that pass the random pixel check of yours. Widget
NeoTechni Well-Known Member Licensed User Longtime User Sep 9, 2011 #4 Widget said: NeoTechni, That should speed things up a bit. Thanks. Click to expand... You're welcome. Considering all the help I've gotten from the other people here, I'd like to contribute some other than annoying people Upvote 0
Widget said: NeoTechni, That should speed things up a bit. Thanks. Click to expand... You're welcome. Considering all the help I've gotten from the other people here, I'd like to contribute some other than annoying people