Template Function xf::cv::xFMagnitudeKernel(xf::cv::Mat<SRC_T, ROWS, COLS, NPC>&, xf::cv::Mat<DST_T, ROWS, COLS, NPC>&, xf::cv::Mat<DST_T, ROWS, COLS, NPC, TC>&, int, uint16_t&, uint16_t&)
Defined in File xf_magnitude.hpp
Function Documentation
-
template<int SRC_T, int DST_T, int ROWS, int COLS, int DEPTH_SRC, int DEPTH_DST, int NPC, int WORDWIDTH_SRC, int WORDWIDTH_DST, int COLS_TRIP, int TC>
void xf::cv::xFMagnitudeKernel(xf::cv::Mat<SRC_T, ROWS, COLS, NPC> &_src1, xf::cv::Mat<DST_T, ROWS, COLS, NPC> &_src2, xf::cv::Mat<DST_T, ROWS, COLS, NPC, TC> &_dst_mat, int _norm_type, uint16_t &imgheight, uint16_t &imgwidth) xFMagnitudeKernel : The Gradient Magnitude Computation Kernel. This kernel takes two gradients in AU_16SP format and computes the AU_16SP normalized magnitude. The Input arguments are src1, src2 and Norm. src1 –> Gradient X image from the output of sobel of depth AU_16SP. src2 –> Gradient Y image from the output of sobel of depth AU_16SP. _norm_type –> Either AU_L1Norm or AU_L2Norm which are o and 1 respectively. _dst –> Magnitude computed image of depth AU_16SP. Depending on NPC, 16 or 8 pixels are read and gradient values are calculated.