Why does this downscaling algorithm produce artifacts?
问题 I have a scaling algorithm which appears to scale the image to the right size, but produces artefacts(slight image corruption) in the right half of the image. As I am inexperienced using pointers, I suspect I may have blundered with my pointer arithmetic! To run the project on OSX: 1. Download from :https://www.dropbox.com/s/myme1z1mkxjwyjf/artifact.zip?dl=0 Open the xcodeproj file found in proj.ios All code that is of relevance, is in HelloWorldScene.cpp In function test(), you can comment