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

Code:
%in main:

[imfft,sz2filt,padSize]=FourierTransform2D(rgbDecorr(:,:,1),achrLambda_max);
% 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?