- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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);
링크가 복사됨
1 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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
