fixed failure in opencv_test_photo

make sure ptr<> is called with proper parameter, otherwise the assertion fails