From 48c43b723024357a45a9c7a3c92d890edf3c0f00 Mon Sep 17 00:00:00 2001
From: DIB Elian <elian.dib@inria.fr>
Date: Tue, 18 Jul 2017 17:13:42 +0200
Subject: [PATCH] Small change to allow 4d light fields

---
 encodeLF.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/encodeLF.m b/encodeLF.m
index 7e353d4..412f45f 100644
--- a/encodeLF.m
+++ b/encodeLF.m
@@ -53,6 +53,7 @@ framesRec = yuv.read(name,imgRes,imgSize,yuvParams,'subName','_rec');
 %% Auxiliary functions
     function frames = LFToFrames(LF)
         s = size(LF);
+        s(numel(s)+1:5)=1;
         frames = mat2cell(LF,ones(1,s(1)),ones(1,s(2)),s(3),s(4),s(5));
     end
 
-- 
GitLab