%Pad The Original Image
function [r,c,padIMG]=padO(img)
[iLength,iWidth]=size(img);
iDiag=sqrt(iLength^2 + iWidth^2);
LengthPad=ceil(iDiag - iLength) + 2;
WidthPad=ceil(iDiag - iWidth) + 2;
padIMG = zeros(iLength+LengthPad, iWidth+WidthPad);
%figure,imshow(padIMG);
padIMG(ceil(LengthPad/2):(ceil(LengthPad/2)+iLength-1), ...
       ceil(WidthPad/2):(ceil(WidthPad/2)+iWidth-1)) = img;
%Size of Original padIMG
   [r,c]=size(padIMG);
end
Sable
github-repos/MATLAB/Sable-mcbench-benchmarks/mcbench-benchmarks-ba13b2f0296ef49491b95e3f984c7c41fccdb6d8/41709-reconstruction-of-image-from-projections-by-algebraic-reconstruction-technique/ARTCode/padO.m
mcbench-benchmarks
github-repos/MATLAB/Sable-mcbench-benchmarks
ba13b2f0296ef49491b95e3f984c7c41fccdb6d8