Add commands in the PREPROC field of a datafile
A = ADDPREPROC(A,PREPROC,PARS,OUTSIZE)
Extends the structure array of preprocessing commands, A.PREPROC( ) with one element, having two fields
Preprocessing can only be defined for raw datafiles that do not contain datasets. It is an error to define preprocessing for a datafile that points to MAT files. In that case datasets are expected and preprocessing is superfluous.
The first command in the PREPROC field should always be a file read command. The DATAFILE constructor stores by default IMREAD. Use SETPREPROC to clear the PREPROC field and replace it by another command.
PRTools needs to know the size of the output objects. If not supplied in the call, it is found by processing the first object. This may take some time.