4 ms·
The code works as-is in Mathematica 9 (though with the URL modified to point to archive.org), so there's likely a difference between your version of 8 and 9.0.0
by nswanberg 12y ago
The code works as-is in Mathematica 9 (though with the URL modified to point to archive.org), so there's likely a difference between your version of 8 and 9.0.0.0.
- sillysaurus3 12y agoCan you try http://i.imgur.com/WwQ8P5R.jpg http://i.imgur.com/WwQ8P5R.jpg instead of the archive.org link? I rehosted the image on imgur, but it looks like imgur re-compresses the jpg, resulting in differences in the image. If so, then that demonstrates just how brittle this solution is.
- mcescalante 12y agoI can confirm with this screenshot (http://cl.ly/image/2Q2e3k1w0g25 http://cl.ly/image/2Q2e3k1w0g25) that imgur does indeed do some sort of compression that makes this solution break with an imgur link for Mathematica 9. I may investigate a bit further. I had previously tested with an uncompressed image, and the same technique did produce the expected results from the answer on Stackexchange. UPDATE: Changed the correlation value from .12 to .2 and the compressed imgur image has some interesting results (3 circles, one of them is on Waldo): http://cl.ly/image/0Z3k150S2z10 http://cl.ly/image/0Z3k150S2z10
- sillysaurus3 12y agoChanged the correlation value from .12 to .2 and the compressed imgur image has some interesting results (3 circles, one of them is on Waldo): http://cl.ly/image/0Z3k150S2z10 http://cl.ly/image/0Z3k150S2z10 Yeah, I'm getting the exact same results. So it looks like compression is messing with the algorithm's correlation ability. I think the problem is that red color values are often thrown out in image compression (moreso than intensity / green channels).