Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3f3f0334 authored by DIB Elian's avatar DIB Elian
Browse files

Added replication function

parent 5fef6fe0
Branches
No related tags found
No related merge requests found
function LFRef = replicate(LFRef,ResOff)
%REPLICATE Summary of this function goes here
% Detailed explanation goes here
LFSize = size(LFRef);
ImgSize = LFSize(1:3);
ImgRes = LFSize(4:end);
ResOff = num2cell(ResOff);
LFRef = reshape(LFRef,prod(ImgSize),prod(ImgRes));
LFRef = utils.replicate(LFRef,sub2ind(ImgRes,ResOff{:}));
LFRef = reshape(LFRef ,[ImgSize,ImgRes]);
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment