Skip to content
Snippets Groups Projects

feature/vision operator

Merged Sebastian Hahta requested to merge feature/vision-operator into master
3 files
+ 21
59
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -6,6 +6,10 @@
namespace ftl {
namespace operators {
/*
* Compute Optical flow from Channel::Colour (Left) and save the result in
* Channel::Flow using NVidia Optical Flow 1.0 (via OpenCV wrapper).
*/
class NVOpticalFlow : public ftl::operators::Operator {
public:
explicit NVOpticalFlow(ftl::Configurable*);
@@ -21,8 +25,8 @@ class NVOpticalFlow : public ftl::operators::Operator {
private:
cv::Size size_;
// TODO: Left to Flow always assumed, could also calculate something else?
const ftl::codecs::Channel channel_in_ = ftl::codecs::Channel::Left;
// TODO: Colour to Flow always assumed, could also calculate something else?
const ftl::codecs::Channel channel_in_ = ftl::codecs::Channel::Colour;
const ftl::codecs::Channel channel_out_ = ftl::codecs::Channel::Flow;
cv::Ptr<cv::cuda::NvidiaOpticalFlow_1_0> nvof_;
Loading