Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6404 Discussions

Ordering of RGB is wrong in ncs-fullcheck.c

idata
Employee
1,220 Views

Probably, ordering of RGB is reversed in ncs-fullcheck.c .

 

You have to transpose RGB to BGR before subtracting means.
0 Kudos
3 Replies
idata
Employee
898 Views

This is the patch for ncs-fullcheck.c

 

149,154c149,151 < float r = imgfp32[3*i+0]; < float g = imgfp32[3*i+1]; < float b = imgfp32[3*i+2]; < imgfp32[3*i+0] = (b-mean[0])*std[0]; < imgfp32[3*i+1] = (g-mean[1])*std[1]; < imgfp32[3*i+2] = (r-mean[2])*std[2]; --- > imgfp32[3*i] = (imgfp32[3*i]-mean[0])*std[0]; > imgfp32[3*i+1] = (imgfp32[3*i+1]-mean[1])*std[1]; > imgfp32[3*i+2] = (imgfp32[3*i+2]-mean[2])*std[2];
0 Kudos
idata
Employee
898 Views

@koichi Thanks for bringing this to our attention! We'll take a look.

0 Kudos
idata
Employee
898 Views

@koichi This is indeed an issue in this sample. The next release will include the fix, and we're checking other samples as well.

 

Thanks again.

 

Neal

0 Kudos
Reply