00001 #include <FCam/processing/Color.h>
00002 #include "Platform.h"
00003
00004 namespace FCam { namespace Dummy {
00005
00006 void Platform::rawToRGBColorMatrix(int kelvin, float *matrix) {
00007 float alpha = ((float)kelvin-3200)/(7000-3200);
00008 colorMatrixInterpolate(RawToRGBColorMatrix3200K,
00009 RawToRGBColorMatrix7000K,
00010 alpha, matrix);
00011 }
00012
00013
00014 float Platform::RawToRGBColorMatrix3200K[] = {
00015 1.20, -0.1, -0.1, -10,
00016 -0.1, 1.20, -0.1, -10,
00017 -0.1, -0.1, 1.20, -10
00018 };
00019
00020
00021 float Platform::RawToRGBColorMatrix7000K[] = {
00022 1.40, -0.2, -0.2, -10,
00023 -0.15, 1.30, -0.15, -10,
00024 0.1, 0.1, 1.00, -10
00025 };
00026
00027 std::string Platform::manufacturer = "Stanford University";
00028 std::string Platform::model = "FCam Dummy Test Rig";
00029 unsigned short Platform::minRawValue = 0;
00030 unsigned short Platform::maxRawValue = 1024;
00031 BayerPattern Platform::bayerPattern = GRBG;
00032 }}