function [annotation, img] = LMimpad(annotation, img, PADSIZE, PADVAL) % [annotation, img] = LMimpad(annotation, img, PADSIZE, PADVAL) % % [annotation, img] = LMimpad(annotation, img, [256 256], 0) % PADSIZE = nrows x ncols (final image size) % PADVAL = value for the border [nrows, ncols, cols]=size(img); if PADSIZE(1)