Forums - Sobel Filter Parameters

2 posts / 0 new
Last post
Sobel Filter Parameters
guraaf
Join Date: 27 Feb 14
Posts: 5
Posted: Wed, 2014-03-05 08:18

Hello all,

This may appear really basic to some but how do I specify the kernel for the Sobel operation? For example, the gradient for X or Y directions? The API is copy-pasted below. It has source and destination pixel arrays but nothing for the gradient. Thanks,

FASTCV_API void fcvFilterSobel3x3u8_v2(const uint8_t *__restrict src,  unsigned int srcWidth,  unsigned int srcHeight,  unsigned int srcStride,  uint8_t *__restrict dst,  unsigned int dstStride  )

 

  • Up0
  • Down0
jeff4s Moderator
Join Date: 4 Nov 12
Posts: 106
Posted: Wed, 2014-03-05 12:08

Hi,

This API fcvFilterSobel3x3u8_v2 computes L1 norm of the gradient (|dx|+|dy|). If you want separate planes of gradients dx and dy, please consider fcvImageGradientSobelPlanars16_v3.

Cheers,

-Jeff

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.