- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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};
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);
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page