frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Ordering of RGB is wrong in ncs-fullcheck.c

Probably, ordering of RGB is reversed in ncs-fullcheck.c .
You have to transpose RGB to BGR before subtracting means.

Comments

  • 3 Comments sorted by Votes Date Added
  • 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];
    
  • @koichi Thanks for bringing this to our attention! We'll take a look.

  • @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

Sign In or Register to comment.