News for hackers. Stuff that matters.
Re:Detecting duplicate images with Python by feelstupid on Thursday April 03, 2014 @09:24AM (#7522600)
I can't work out why the width would be need to be 1px bigger in width? I don't see the explanation in #3. Also, the array in #3 shows a 9x9 grid of 81 values when there are only 72 pixels?
Re:Detecting duplicate images with Python by sp332 on Thursday April 03, 2014 @09:59AM (#7522802)
If you only have 8 samples per row, then you have 7 adjacent pairs. If you use a bit to represent the differences, you'll only have 7 bits. If you want 8 bits, you need 8 differences, so 9 samples.
Re:Detecting duplicate images with Python by feelstupid on Thursday April 03, 2014 @10:07AM (#7522851)
That makes sense, but why does the example have a 9 by 9 grid, would it be a 9 columns but only 8 rows?
Re:Detecting duplicate images with Python by razius on Thursday April 03, 2014 @11:42AM (#7523584)
Yes, you are right, it's a mistake in the text. I'll correct it.