MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / initialize

Method initialize

tools/streamer_recorder/recorder.cpp:62–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void Recorder::initialize()
63{
64 std::cout << "Initialize Recorder." << std::endl;
65
66 /////// RECORD VIDEO, NOT READY YET (RECORD IMAGE FOR NOW) ///////
67
68 // // out_capture.open("TestVideo.avi", CV_FOURCC('M','J','P','G'), 30, cv::Size(depth->height, depth->width)); // JPEG
69 // out_capture.open("TestVideo.avi", CV_FOURCC('P','I','M','1'), 30, cv::Size(depth->height, depth->width),1); // MPEG, last argument defines image color yes o (channel 3 or 1)
70 // // out_capture.open("TestVideo.avi", CV_FOURCC('D','I','V','X'), 30, cv::Size(depth->height, depth->width));
71
72 // if( !out_capture.isOpened() )
73 // {
74 // std::cout << "AVI file can not open." << std::endl;
75 // return 1;
76 // }
77
78 /////////////////////////////////////////////////////////////////
79
80 // record image: define compression parameters and frame counter
81 img_comp_param.push_back(CV_IMWRITE_JPEG_QUALITY); //specify the compression technique
82 img_comp_param.push_back(100); //specify the compression quality
83 frameID = 0;
84
85 // record timeStamp
86 t_start = getMilliCount();
87}
88
89void Recorder::record(libfreenect2::Frame* frame, const std::string& frame_type)
90{

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected