Mentions légales du service

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

Ensure imgSize and imgRes have at least 2 dimensions

parent d51c5e64
Branches
Tags
No related merge requests found
...@@ -2,6 +2,9 @@ function convname = params2name(name,imgSize,imgRes,subSamp,bitDepth,ext) ...@@ -2,6 +2,9 @@ function convname = params2name(name,imgSize,imgRes,subSamp,bitDepth,ext)
%PARAMS2NAME Summary of this function goes here %PARAMS2NAME Summary of this function goes here
% Detailed explanation goes here % Detailed explanation goes here
imgSize(end+1:2) = 1;
imgRes (end+1:2) = 1;
imgSize = [num2str(imgSize(2)),'x',num2str(imgSize(1))]; imgSize = [num2str(imgSize(2)),'x',num2str(imgSize(1))];
imgRes = arrayfun(@num2str,imgRes,'UniformOutput',false); imgRes = arrayfun(@num2str,imgRes,'UniformOutput',false);
imgRes = strjoin(imgRes,'x'); imgRes = strjoin(imgRes,'x');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment