SHARE
TWEET

Untitled

a guest Jun 25th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void ConvertToUint8(float* mO, unsigned char* mI, int numElements, float scalingFctr)
  2. {
  3.     int ii;
  4.     for (ii = 0; ii < numElements; ii++) {
  5.         mO[ii] = (unsigned char)(mI[ii] * scalingFctr);
  6.     }
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top