Resizes mat according to new_height and new_width parameters.
a resized matrix with padding background if new_height or new_width is larger than original mat dimensions.
a numeric matrix.
an unsigned integer, giving the new height of returned mat. Default is 0 for no change.
an unsigned integer, giving the new width of returned mat. Default is 0 for no change.
logical, if true adds normal noise when at least one new dimension is larger than original mat dimensions Rcpp::rnorm() function is used. Default is true.
double, mean value of the background added if add_noise is true. Default is 0.
double, standard deviation of the background added if add_noise is true. Default is 0.