diff options
-rw-r--r-- | pix_opencv_warpperspective.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pix_opencv_warpperspective.cc b/pix_opencv_warpperspective.cc index e0f0eba..6d1f122 100644 --- a/pix_opencv_warpperspective.cc +++ b/pix_opencv_warpperspective.cc @@ -116,9 +116,8 @@ void pix_opencv_warpperspective :: processRGBAImage(imageStruct &image) // no need to copy a lot of memory, just point to it... rgb->imageData = (char*) image.data; - cvWarpPerspective(rgb, tmp, mapMatrix, flags, cvScalar(0)); - memcpy(image.data, tmp->imageData, image.xsize*image.ysize); + memcpy(image.data, tmp->imageData, image.xsize*image.ysize*image.csize); } |