void fcvImageGradientSobelPlanars16(const uint8_t *__restrict src, unsigned int srcWidth, unsigned int srcHeight, unsigned int srcStride, int16_t *__restrict dx, int16_t *__restrict dy )
i am new to fastcv. i am caclulating gradient matrix in x direction and y direction using above api. but i don't know how to pass parameter
here src means input image how to pass digital image there. should i pass array of pixel values or image pointer. srcStride dx and dy what value i need to give. If there is any code snippets please share and tell how to give parameter to the above api.
Thank you in advance
Hi,
Please use fcvImageGradientSobelPlanars16_v3 instead.
https://developer.qualcomm.com/docs/fastcv/api/group__image__processing....
src is the pointer for image buffer. fill it as follows:
In this case srcStride will be src_image_width * src_bpp
srcStride = 640 * 2
------------------------------
dx and dy are destination buffers where horizontal and vertical gradient will be stored