components.fft.tile

pyctools.components.fft.tile.Tile

Arrange image in overlapping tiles.

pyctools.components.fft.tile.UnTile

Rearrange overlapping tiles to form an image.

class Tile(config={}, **kwds)[source]

Bases: pyctools.core.base.Transformer

Arrange image in overlapping tiles.

This can be used with the FFT component if you need FFTs of overlapping tiles, so you can reconstruct an image later on without visible tile edges.

The xoff and yoff configuration sets the distance from the edge of one tile to the same edge on the next. For complete overlap they are usually set to half the tile width & height.

These parameters are added to the output frame’s metadata for use by UnTile.

Config

xtile

int

Horizontal tile size.

ytile

int

Vertical tile size.

xoff

int

Horizontal tile offset. Typically set to xtile // 2.

yoff

int

Vertical tile offset. Typically set to ytile // 2.

class UnTile(config={}, **kwds)[source]

Bases: pyctools.core.base.Transformer

Rearrange overlapping tiles to form an image.

Inverse operation of the Tile component. The tile size and offset parameters are read from the input image’s metadata.


Comments or questions? Please email jim@jim-easterbrook.me.uk.