void drawInit() { g_DepthColoring[DEPTH_OFF] = "Off"; g_DepthColoring[LINEAR_HISTOGRAM] = "Linear Histogram"; g_DepthColoring[PSYCHEDELIC] = "Psychedelic"; g_DepthColoring[PSYCHEDELIC_SHADES] = "Psychedelic (Millimeters)"; g_DepthColoring[RAINBOW] = "Rainbow"; g_DepthColoring[CYCLIC_RAINBOW] = "Cyclic Rainbow"; g_DepthColoring[CYCLIC_RAINBOW_HISTOGRAM] = "Cyclic Rainbow Histogram"; g_DepthColoring[STANDARD_DEVIATION] = "Standard Deviation"; g_ImageColoring[IMAGE_OFF] = "Off"; g_ImageColoring[IMAGE_NORMAL] = "Normal"; g_ImageColoring[DEPTH_MASKED_IMAGE] = "Depth Masked Image"; CreateRainbowPallet(); setPreset(7); TextureMapInit(&g_texBackground, 1024, 1024, 3, 1024, 1024); // load background image xnOSLoadFile("..\\..\\..\\..\\Data\\RGBViewer\\back.raw", TextureMapGetLine(&g_texBackground, 0), 1024*1024*3); TextureMapUpdate(&g_texBackground); mouseInputRegisterForSelectionRectangle(drawSelectionChanged); mouseInputRegisterForCursorMovement(drawCursorMoved); }
ofxDepthGenerator::ofxDepthGenerator(){ CreateRainbowPallet(); depth_coloring = COLORING_RAINBOW; max_number_depths = 1; last_frame_id = 0; frame_is_new = false; }
void drawInit() { g_DepthDrawColoring[DEPTH_OFF] = "Off"; g_DepthDrawColoring[LINEAR_HISTOGRAM] = "Linear Histogram"; g_DepthDrawColoring[PSYCHEDELIC] = "Psychedelic"; g_DepthDrawColoring[PSYCHEDELIC_SHADES] = "Psychedelic (Millimeters)"; g_DepthDrawColoring[RAINBOW] = "Rainbow"; g_DepthDrawColoring[CYCLIC_RAINBOW] = "Cyclic Rainbow"; g_DepthDrawColoring[CYCLIC_RAINBOW_HISTOGRAM] = "Cyclic Rainbow Histogram"; g_DepthDrawColoring[STANDARD_DEVIATION] = "Standard Deviation"; g_ColorDrawColoring[COLOR_OFF] = "Off"; g_ColorDrawColoring[COLOR_NORMAL] = "Normal"; g_ColorDrawColoring[DEPTH_MASKED_COLOR] = "Depth Masked Color"; CreateRainbowPallet(); setPreset(7); mouseInputRegisterForSelectionRectangle(drawSelectionChanged); mouseInputRegisterForCursorMovement(drawCursorMoved); }
ofxDepthGenerator::ofxDepthGenerator(){ CreateRainbowPallet(); depth_coloring = COLORING_RAINBOW; max_number_depths = 1; }