Skip to content
Snippets Groups Projects

Resolves #199 use of channel id in streams

Merged Nicolas Pope requested to merge feature/199/chanstream into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -98,7 +98,7 @@ bool FileSource::compute(int n, int b) {
@@ -98,7 +98,7 @@ bool FileSource::compute(int n, int b) {
auto &c = *i;
auto &c = *i;
if (c.spkt.channel == Channel::Colour) {
if (c.spkt.channel == Channel::Colour) {
rgb_.create(cv::Size(ftl::codecs::getWidth(c.pkt.definition),ftl::codecs::getHeight(c.pkt.definition)), CV_8UC3);
rgb_.create(cv::Size(ftl::codecs::getWidth(c.pkt.definition),ftl::codecs::getHeight(c.pkt.definition)), CV_8UC4);
} else {
} else {
depth_.create(cv::Size(ftl::codecs::getWidth(c.pkt.definition),ftl::codecs::getHeight(c.pkt.definition)), CV_32F);
depth_.create(cv::Size(ftl::codecs::getWidth(c.pkt.definition),ftl::codecs::getHeight(c.pkt.definition)), CV_32F);
}
}
Loading