PRTools contents

PRTools manual

filtim

FILTIM

Mapping to filter multiband image objects in datasets and datafiles

     B = FILTIM(A,FILTER_COMMAND,{PAR1,PAR2,....},SIZE)
     B = A*FILTIM([],FILTER_COMMAND,{PAR1,PAR2,....},SIZE)

Input
 A Dataset or datafile with multi-band image objects
 FILTER_COMMAND String with function name
 {PAR1, ... } Cell array with optional parameters to FILTER_COMMAND
 SIZE Output size of the mapping (default: input size)

Output
 B Dataset containing multi-band images processed by
 FILTER_COMMAND, band by band.

Description

For each band of each object stored in A a filter operation is performed as

      OBJECT_OUT = FILTER_COMMAND(OBJECT_IN,PAR1,PAR2,....)

The results are collected and stored in B. In case A (and thereby B) is  a datafile, execution is postponed until conversion into a dataset, or a  call to SAVEDATAFILE.

The difference between FILTIM and the similar command FILTM is that  FILTIM is aware of the band structure of the objects. As FILTIM treats  the bands separately it cannot be used for commands that change the number  of bands (like RGB2GRAY) or need to access them all.

Example(s)

 a = delft_images; b = a(120 121 131 230)*col2gray
 e = b*filtim([],'fft2')*filtim([],'abs')*filtim([],'fftshift');
 figure; show(e); figure; show((1+e)*filtim([],'log')); 

See also

datasets, datafiles, im2obj, data2im, im2feat, datgauss, datfilt, filtm,

PRTools contents

PRTools manual