This function save the images inside of datapack in a set of BMP files. The formation rule of the BMP file names is: NAME=fullfile(DIRECTORY,sprintf([PRENAME,'.bmp'],II)); Being II, the number of the saved image. After starting the main routine just type the following command at the prompt: h = datapack_to_bmp(DATA,DIRECTORY,PRENAME); %% To filenames: 'seed1.bmp', 'seed2,bmp', ..., 'seed128.bmp' h = datapack_to_bmp(DATA,'','seed%d'); %% To filenames: 'img1coffee.bmp', 'img2coffee,bmp', ..., 'img100coffee.bmp' h = datapack_to_bmp(DATA,'','img%dcoffee'); %% To filenames: 'img0001.bmp', 'img0002,bmp', ..., 'img0123.bmp' h = datapack_to_bmp(DATA,'','img%04d'); Input: DATA is the speckle data pack. Where DATA is a 3D matrix created grouping NTIMES intensity matrices with NLIN lines and NCOL columns. When N=size(DATA), then N(1,1) represents NLIN and N(1,2) represents NCOL and N(1,3) represents NTIMES. DIRECTORY is the address where the BMP files will be saved. PRENAME is the format filename, example: if you search names as 'fig1.bmp', then PRENAME='fig' or PRENAME='fig%d'. If PRENAME not contain a format specifiers of family %d, them this format specifiers is added at the final of PRENAME string. The format string is similar to the function printf of others programming languages. Only are permitted format specifiers of family %d, given that will be replaced a decimal number. Output: h returns a struct with the fields, h.file{i}: The name of i-th bmp file, h.format: The format filename, h.init: The id of first element, h.dir: The directory where the images will be saved, and h.nel: The numbeer of images. For help, bug reports and feature suggestions, please visit: http://www.nongnu.org/bsltl
Package: bsltl