Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
6814 Discussions

I need understand with ippiCrossCorrSame_NormLevel

kirgizov
Beginner
429 Views
Iuse function ippiCrossCorrSame_NormLevel_8u_C1RSfs, but i received matrix of zerosas a result in variable nimg. Please, help me.

const int WIDTH= 10;
const int HEIGHT= 10;
const int NN=5;
int i,j;

Ipp8u img[WIDTH*HEIGHT],nimg[WIDTH*HEIGHT];
Ipp8u tm[NN*NN];
IppiSize imgSize = {WIDTH, HEIGHT};
IppiSize tmSize = {NN, NN};
ippiSet_8u_C1R( 5, img, WIDTH, imgSize );
ippiSet_8u_C1R( 2, tm, NN, tmSize );

ippiCrossCorrSame_NormLevel_8u_C1RSfs(img, WIDTH,imgSize,
tm, NN,tmSize,
nimg, WIDTH, 0);
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
429 Views

Hi,

there is comment from our expert:

CrossCorr cant be calculated in 8u data type directly the internal representation is normalized float (range 0 1.0). To have right representation of this range in 8u you should scale it to the full 8u range therefore the last parameter (scaleFactor) should be -8 at least.

Regards,
Vladimir

0 Kudos
Reply