From b92e9fb821171cff4e114768ff872b26bb5e09cf Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Sun, 13 Oct 2019 13:05:08 +0300
Subject: [PATCH] Use 4 channel in file decode

---
 components/rgbd-sources/src/file_source.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/rgbd-sources/src/file_source.cpp b/components/rgbd-sources/src/file_source.cpp
index 503982d57..bef04d6a4 100644
--- a/components/rgbd-sources/src/file_source.cpp
+++ b/components/rgbd-sources/src/file_source.cpp
@@ -98,7 +98,7 @@ bool FileSource::compute(int n, int b) {
 		auto &c = *i;
 
 		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 {
 			depth_.create(cv::Size(ftl::codecs::getWidth(c.pkt.definition),ftl::codecs::getHeight(c.pkt.definition)), CV_32F);
 		}
-- 
GitLab