Changeset 133 in pacpussensors


Ignore:
Timestamp:
Feb 1, 2017, 9:37:04 AM (8 years ago)
Author:
ldecherf
Message:

dsf

Location:
trunk/Vislab
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Vislab/Display.cpp

    r131 r133  
    2424void Display::process(cv::Mat const& frame)
    2525{
    26     emit doDisplay(frame);;
     26    emit doDisplay(frame);
    2727}
    2828
  • trunk/Vislab/VislabCamera.cpp

    r132 r133  
    5252    }
    5353      //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;
    5554        curr_devices[0].log_level(2);
    5655        curr_devices[0].timeout(boost::posix_time::milliseconds(5000));
     
    6665}
    6766
    68 void
    69 VislabCamera::close()
     67void VislabCamera::close()
    7068{
    7169  curr_devices[0].stop_transmission(error);
    7270  //curr_devices[0].poweroff(error);
    7371}
     72
     73void VislabCamera::setVideoOutput(OutputInterface<cv::Mat, VislabComponent>* output)
     74{
     75        outputVideo.setOutput(output);
     76}
     77
     78void VislabCamera::setDispariteOutput(OutputInterface<cv::Mat, VislabComponent>* output)
     79{
     80        outputDisparite.setOutput(output);
     81}
  • trunk/Vislab/VislabCamera.hpp

    r131 r133  
    1515#include "Display.h"
    1616#include "VislabImageProcessor.h"
    17 
     17#include "Outputter.h"
     18#include "VislabComponent.hpp"
    1819
    1920#include <boost/asio/io_service.hpp>
     
    4243      void close();
    4344
     45          void setVideoOutput(OutputInterface<cv::Mat, VislabComponent>* output);
     46          void setDispariteOutput(OutputInterface<cv::Mat, VislabComponent>* output);
     47
    4448      std::vector<lib3dv::device> curr_devices;
    4549      DiskWriter diskwriterVideo;
     
    5054      unsigned int log_level;
    5155      lib3dv::image::type imageType;
     56          Outputter outputVideo;
     57          Outputter outputDisparite;
     58
    5259  };
    5360}
  • trunk/Vislab/VislabComponent.cpp

    r131 r133  
    9393{
    9494    // Transformer en QImage
    95     //addOutput<lib3dv::image, VislabComponent("image");
     95    addOutput<cv::Mat, VislabComponent>("image");
     96        addOutput<cv::Mat, VislabComponent>("disparity");
    9697}
    9798
Note: See TracChangeset for help on using the changeset viewer.