components.fft.tile
Arrange image in overlapping tiles. |
|
Rearrange overlapping tiles to form an image. |
- class Tile(config={}, **kwds)[source]
Bases:
TransformerArrange image in overlapping tiles.
This can be used with the
FFTcomponent if you need FFTs of overlapping tiles, so you can reconstruct an image later on without visible tile edges.The
xoffandyoffconfiguration 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
xtileint
Horizontal tile size.
ytileint
Vertical tile size.
xoffint
Horizontal tile offset. Typically set to xtile // 2.
yoffint
Vertical tile offset. Typically set to ytile // 2.
- class UnTile(config={}, **kwds)[source]
Bases:
TransformerRearrange overlapping tiles to form an image.
Inverse operation of the
Tilecomponent. The tile size and offset parameters are read from the input image’s metadata.
Comments or questions? Please email jim@jim-easterbrook.me.uk.