Hi i need to scale a gray scale image fast, so i tried vImage and the app is crashing, please help. In the below code srcimg.data/dstimg.data is a point to unsigned char image data(single channel only gray data).
vImage_Buffer src; src.data=srcimg.data; src.height=srcimg.cols; src.width=srcimg.rows; src.rowBytes=srcimg.cols; vImage_Buffer dest; dest.data=dstimg.data; dest.height=dstimg.cols; dest.width=dstimg.rows; dest.rowBytes=dstimg.cols; vImageScale_Planar8(&src, &dest, NULL, kvImageNoFlags);