- Timestamp:
- Feb 1, 2017, 9:37:04 AM (8 years ago)
- Location:
- trunk/Vislab
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Vislab/Display.cpp
r131 r133 24 24 void Display::process(cv::Mat const& frame) 25 25 { 26 emit doDisplay(frame); ;26 emit doDisplay(frame); 27 27 } 28 28 -
trunk/Vislab/VislabCamera.cpp
r132 r133 52 52 } 53 53 //disk_writer = boost::shared_ptr< ::disk_writer>(new ::disk_writer(paths, data_format, autonumber, params, guid_type, log_level)); 54 std::cout << "[II] 3dv-client: banane" << std::endl;55 54 curr_devices[0].log_level(2); 56 55 curr_devices[0].timeout(boost::posix_time::milliseconds(5000)); … … 66 65 } 67 66 68 void 69 VislabCamera::close() 67 void VislabCamera::close() 70 68 { 71 69 curr_devices[0].stop_transmission(error); 72 70 //curr_devices[0].poweroff(error); 73 71 } 72 73 void VislabCamera::setVideoOutput(OutputInterface<cv::Mat, VislabComponent>* output) 74 { 75 outputVideo.setOutput(output); 76 } 77 78 void VislabCamera::setDispariteOutput(OutputInterface<cv::Mat, VislabComponent>* output) 79 { 80 outputDisparite.setOutput(output); 81 } -
trunk/Vislab/VislabCamera.hpp
r131 r133 15 15 #include "Display.h" 16 16 #include "VislabImageProcessor.h" 17 17 #include "Outputter.h" 18 #include "VislabComponent.hpp" 18 19 19 20 #include <boost/asio/io_service.hpp> … … 42 43 void close(); 43 44 45 void setVideoOutput(OutputInterface<cv::Mat, VislabComponent>* output); 46 void setDispariteOutput(OutputInterface<cv::Mat, VislabComponent>* output); 47 44 48 std::vector<lib3dv::device> curr_devices; 45 49 DiskWriter diskwriterVideo; … … 50 54 unsigned int log_level; 51 55 lib3dv::image::type imageType; 56 Outputter outputVideo; 57 Outputter outputDisparite; 58 52 59 }; 53 60 } -
trunk/Vislab/VislabComponent.cpp
r131 r133 93 93 { 94 94 // Transformer en QImage 95 //addOutput<lib3dv::image, VislabComponent("image"); 95 addOutput<cv::Mat, VislabComponent>("image"); 96 addOutput<cv::Mat, VislabComponent>("disparity"); 96 97 } 97 98
Note:
See TracChangeset
for help on using the changeset viewer.