From 56f3bdee866a38a9391453c29e3d5d2a32d41adf Mon Sep 17 00:00:00 2001
From: Naethis <elian.di@laposte.net>
Date: Thu, 9 May 2019 23:21:03 +0200
Subject: [PATCH] Removed spatial extrapolation, renamed completeLabel to
 completeOriginal

It allows to mark missing pixels at the borders of the light field. These pixels can then be completed using SR.complete even after copying the original light field pixels using SR.completeOriginal. Otherwise we could not tell apart the extrapolated pixels from the original pixels.
---
 LFtoSR.m                              | 4 ++--
 completeLabel.m => completeOriginal.m | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
 rename completeLabel.m => completeOriginal.m (83%)

diff --git a/LFtoSR.m b/LFtoSR.m
index d3509ca..29f7f44 100644
--- a/LFtoSR.m
+++ b/LFtoSR.m
@@ -21,7 +21,7 @@ varargout = cell(1,nargin-4);
 varargout(:) = deal({cell(numLab,1)});
 
 % Initialize interpolants
-ValInt = griddedInterpolant(Color(:,:,1),Method,'nearest');
+ValInt = griddedInterpolant(Color(:,:,1),Method,'none');
 
 sizeMsg = 0;
 
@@ -61,7 +61,7 @@ for lab = 1:numLab
     end
     
     ValInt.Method = Method;
-    ValInt.ExtrapolationMethod = 'nearest';
+    ValInt.ExtrapolationMethod = 'none';
     
     for c = 1:numChan
         for v = 1:numView
diff --git a/completeLabel.m b/completeOriginal.m
similarity index 83%
rename from completeLabel.m
rename to completeOriginal.m
index 995d2d1..86e3725 100644
--- a/completeLabel.m
+++ b/completeOriginal.m
@@ -1,5 +1,5 @@
-function RefSet = completeLabel(RefSet)
-%COMPLETESET Summary of this function goes here
+function RefSet = completeOriginal(RefSet)
+%COMPLETEORIGINAL Summary of this function goes here
 %   Detailed explanation goes here
 
 [ImgSize,ImgRes,Offset,Color,Label] = SR.SetToFields(RefSet);
-- 
GitLab