00001 00006 #include "liveViz.h" 00007 00008 void liveVizFloatToRGB(liveVizRequest &req, 00009 const float *floatSrc, unsigned char *destRgb, 00010 int nPixels) 00011 { 00012 for (int i=0;i<nPixels;i++) { 00013 colorScale(floatSrc[i],0,1,&destRgb[3*i]); 00014 } 00015 }