- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Probably, ordering of RGB is reversed in ncs-fullcheck.c .
You have to transpose RGB to BGR before subtracting means.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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];
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@koichi Thanks for bringing this to our attention! We'll take a look.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
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