From e32f0baf588b518f7a04baaa850a688525c1600a Mon Sep 17 00:00:00 2001 From: Elian Dib <elian.dib@inria.fr> Date: Sun, 16 Sep 2018 22:08:00 +0200 Subject: [PATCH] Changed warp set functions input --- warpHLRASet.m | 6 +++++- warpSet.m | 6 +++++- warpUnwarpSet.m | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/warpHLRASet.m b/warpHLRASet.m index fe08459..7eefae7 100644 --- a/warpHLRASet.m +++ b/warpHLRASet.m @@ -1,7 +1,9 @@ -function [Val,Lab,Pos,DispX,DispY] = warpHLRASet(Val,Lab,Pos,DispX,DispY,varargin) +function SRSet = warpHLRASet(SRSet,varargin) %WARPHLRASET Summary of this function goes here % Detailed explanation goes here +[Val,Lab,Pos,DispX,DispY] = SR.SetToFields(SRSet); + Mask = Lab; for it = 1:numel(Lab) @@ -16,4 +18,6 @@ end for it = 1:numel(Lab) Lab{it} = it*double(Mask{it}); end + +SRSet = SR.FieldsToSet(Val,Lab,Pos,DispX,DispY); end \ No newline at end of file diff --git a/warpSet.m b/warpSet.m index 886cfc0..4f57cbe 100644 --- a/warpSet.m +++ b/warpSet.m @@ -1,7 +1,9 @@ -function [Val,Lab,Pos,DispX,DispY] = warpSet(Val,Lab,Pos,DispX,DispY,varargin) +function SRSet = warpSet(SRSet,varargin) %WARPSET Summary of this function goes here % Detailed explanation goes here +[Val,Lab,Pos,DispX,DispY] = SR.SetToFields(SRSet); + Mask = Lab; for it = 1:numel(Lab) @@ -16,4 +18,6 @@ end for it = 1:numel(Lab) Lab{it} = it*double(Mask{it}); end + +SRSet = SR.FieldsToSet(Val,Lab,Pos,DispX,DispY); end \ No newline at end of file diff --git a/warpUnwarpSet.m b/warpUnwarpSet.m index 939537f..432d665 100644 --- a/warpUnwarpSet.m +++ b/warpUnwarpSet.m @@ -1,7 +1,9 @@ -function [Val,Lab,Pos,DispX,DispY] = warpUnwarpSet(Val,Lab,Pos,DispX,DispY,varargin) +function [SRSet,PSNRout] = warpUnwarpSet(SRSet,varargin) %WARPSET Summary of this function goes here % Detailed explanation goes here +[Val,Lab,Pos,DispX,DispY] = SR.SetToFields(SRSet); + Mask = Lab; PSNRout = cell(size(Val)); for it = 1:numel(Lab) @@ -16,4 +18,6 @@ end for it = 1:numel(Lab) Lab{it} = it*double(Mask{it}); end + +SRSet = SR.FieldsToSet(Val,Lab,Pos,DispX,DispY); end \ No newline at end of file -- GitLab