I have to translate from Matlab to c/c++:

%in main:

% Prepare frequency polar coordinates for log Gabor filter definition
rows = sz2filt(1);
cols = sz2filt(2);

% the same function

function [imfft,newsize,padSize]=FourierTransform2D(im,Lambda_max)

% so newsize=sz2filt 

impadded = im;
impadded = padarray(impadded, padSzVec, 'replicate', 'both');
newsize = size(impadded);
The question is: rows and cols in the main will have the rows and cols of impadded image?