14 #include <visp/vpImageIo.h> 15 #include <visp/vpVideoReader.h> 16 #include <visp/vpVideoWriter.h> 17 #include <visp/vpV4l2Grabber.h> 18 #include <visp/vpMbEdgeKltTracker.h> 19 #include <visp/vpMbKltTracker.h> 20 #include <visp/vpMbEdgeTracker.h> 21 #include <visp/vpDisplayX.h> 23 int main(
int argc,
char**argv)
33 vpV4l2Grabber video_reader;
40 std::cout <<
"loaded camera parameters:" << cam << std::endl;
54 video_reader.setInput(0);
55 video_reader.setScale(1);
56 video_reader.setFramerate(vpV4l2Grabber::framerate_25fps);
57 video_reader.setPixelFormat(vpV4l2Grabber::V4L2_YUYV_FORMAT);
58 video_reader.setWidth(640);
59 video_reader.setHeight(480);
60 video_reader.setNBuffers(3);
65 std::cout <<
"Loading: " << filenames << std::endl;
66 reader.setFileName( filenames.c_str() );
68 reader.setFirstFrameIndex(2);
73 vpDisplayX*
d =
new vpDisplayX();
83 tracker =
new vpMbKltTracker();
85 tracker =
new vpMbEdgeKltTracker();
87 tracker =
new vpMbEdgeTracker();
106 (iter<reader.getLastFrameIndex()-1);
110 video_reader.acquire(I);
111 vpDisplay::display(I);
119 writer.saveFrame(logI);
std::string get_input_file_pattern() const
msm::back::state_machine< Tracker_ > Tracker
bool logging_video() const
std::string get_video_channel() const
int main(int argc, char **argv)
std::string get_single_image_path() const
vpCameraParameters get_cam_calib_params() const
std::string get_data_dir() const
std::string get_log_file_pattern() const
TRACKER_TYPE get_tracker_type() const
bool using_video_camera() const
DETECTOR_TYPE get_detector_type() const
bool using_single_image() const