Commit 1fd83a4b authored by Jakob Soltau's avatar Jakob Soltau
Browse files

fixed bug of padToSize, switched input arguments

parent e97f29ee
Pipeline #105149 passed with stage
in 1 minute and 38 seconds
......@@ -76,9 +76,9 @@ end
padsize = floor((outputSize - imageSize)/2);
padsize2 = outputSize - (imageSize + 2 * padsize);
result = padarray(im, padsize, 'both', padval);
result = padarray(im, padsize, padval, 'both');
if any(padsize2 > 0)
result = padarray(result, padsize2, 'pre', padval);
result = padarray(result, padsize2, padval, 'pre');
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment