19 #ifndef SNARK_IMAGING_APPLICATIONS_PIPELINE_H_
20 #define SNARK_IMAGING_APPLICATIONS_PIPELINE_H_
26 #include <comma/application/signal_flag.h>
27 #include <snark/tbb/bursty_reader.h>
28 #include <snark/imaging/cv_mat/bursty_pipeline.h>
29 #include <snark/imaging/cv_mat/serialization.h>
30 #include <snark/imaging/cv_mat/filters.h>
37 struct bursty_reader_traits< std::pair< boost::posix_time::ptime, cv::Mat > >
39 static bool valid(
const std::pair< boost::posix_time::ptime, cv::Mat >& p ) {
return ( p.second.size().width > 0 ); }
44 namespace imaging {
namespace applications {
50 typedef std::pair< boost::posix_time::ptime, cv::Mat > pair;
60 cv_mat::serialization& m_output;
61 ::tbb::filter_t< pair, void > m_filter;
62 std::vector< cv_mat::filter > m_filters;
65 comma::signal_flag is_shutdown_;
71 #endif // SNARK_IMAGING_APPLICATIONS_PIPELINE_H_