RESPITE: The CASA Toolkit Page: Documentation: Block Library Index:Frame


The Frame block is used for arranging data into a series of windowed `frames'. The framing operation may be applied to a series of samples, in which case it will output a series of 1-D frames, or it may be equally well applied to a series of N dimensional frames, in which case the output will be a series of N+1 dimensional frames.

There are three parameters: SIZE, SHIFT and SHAPE. SIZE is the width of the framing window. This is the number of input samples (or frames) that are combined to construct a single output frame. SHIFT is the amount the framing window is moved forward after each output frame has been constructed. Note, output frames will correspond to overlapping windows of input data if SHIFT is less than SIZE. After the output frame has been constructed it can be shaped with one of the following shaping functions: Rectangle, Hamming, Hanning or Triangle. These are applied by setting the parameter SHAPE to one of RECTANGLE, HAMMING, HANNING or TRIANGLE respectively. By default it takes the value RECTANGLE which leaves the data unchanged.

Inputs Meaning Sample 1-D frame $\ge$2-D frame
in1 Data to frame Yes Yes Yes

Outputs Meaning
out1 framed data

Parameters Type Default Meaning
SHIFT Integer 1 The size of the window shift
SIZE Integer 1 The width of the output frame

Documentation for CTKv1.1.4 - Last modified: Thu Jun 28 11:45:08 BST 2001