| PRTools contents | 
DATA2IM
    IM = DATA2IM(A,J)
    IM = DATA2IM(A(J,:))
| Input | |
| A | Dataset or datafile containing images | 
| J | Desired images | 
| Output | |
| IM | If A is dataset, IM is a X*Y*N*K matrix with K images. | 
| K | is the number of images (length(J)) | 
| N | is the number of bands per image. | 
| N | = 3 for RGB images, N = 1 for gray value images. | 
An image, or a set of images stored in the objects or features of the dataset A are retrieved and returned as a 3D matrix IM. In case A is a datafile the images are stored in a cell array, except when a single image is requested.
| PRTools contents |