This function creates a data pack (3D matrix) from a set of images in a directory. All imagesshould have the same size and format. After starting the main routine just type the following command at the prompt: DATA = datapack(IMGDIR,IMGNAME,IMGN1,IMGN2,IMGFMT); DATA = datapack('/user/images/sample1','',1,333,'bmp'); Input: IMGDIR is a directory path where the images are, with format names as NAME=[IMGNAME,IMGN,'.',IMGFMT], being IMGN an integer from IMGN1 until IMGN2. IMGNAME is the pre-filename, example: if the files in IMGDIR have names as 'fig1.bmp', then IMGNAME='fig'. IMGN1 is the index of the first image, example: if the files have names from 'fig1.bmp' until 'fig4.bmp', then IMGN1=1. IMGN2 is the index of the last image, example: if the files have names from 'fig1.bmp' until 'fig4.bmp', then IMGN2=4. IMGFMT is the file format of the image files, example: if the files have names as 'fig1.bmp', then IMGFMT='bmp'. LPOS [Optional] This value is optional. It is the first line position for a window analysis. CPOS [Optional] This value is optional. It is the first column position for a window analysis. NLIN [Optional] This value is optional. It is the number of lines of a window under analysis. NCOL [Optional] This value is optional. It is the number of columns of a window under analysis. Output: DATA is the speckle data. Where DATA is a 3D matrix created grouping NTIMES=IMGN2-IMGN1+1 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. For help, bug reports and feature suggestions, please visit: http://nongnu.org/bsltl/
Package: bsltl