Skip to content
Snippets Groups Projects
Commit b92e9fb8 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Use 4 channel in file decode

parent d310a97a
Branches
Tags 0.5.1
1 merge request!132Resolves #199 use of channel id in streams
Pipeline #15361 failed
...@@ -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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment