Keep pixel resolution when creating an image array with montage in Matlab

468 Views Asked by At

I am trying to create an image array, combining ~80 .jpg images in a single row using the function montage in Matlab.

The final figure displays my images in a row, however the resolution is reduced so the 'individual' images aren't clearly visible anymore.

Is there a way to increase the resolution of the final figure or to maintain the number of pixels of each individual image added to the row?

Thanks for your help.

myFolder = %(folder containing .jpg images);
filePattern = fullfile(myFolder, '*.jpg');
jpgFiles = dir(filePattern);
fileNames = string({jpgFiles.name});
ICE = montage(fileNames, 'size', [1 NaN]);
1

There are 1 best solutions below

1
On

ThumbnailSize property is what you are looking for. Use the following and images will be shown with their original resolutions:

ICE = montage(fileNames, 'size', [1 NaN], 'ThumbnailSize', []);