components.interp.imageresizer

pyctools.components.interp.imageresizer.ImageResizerX

Horizontal image resizer component.

pyctools.components.interp.imageresizer.ImageResizerY

Vertical image resizer component.

pyctools.components.interp.imageresizer.ImageResizer2D

2-D image resizer component.

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

Bases: pyctools.core.compound.Compound

Horizontal image resizer component.

Uses a Compound component to encapsulate Resize and FilterGenerator components.

Config:

up

int

Up-conversion factor.

down

int

Down-conversion factor.

aperture

int

Filter aperture.

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

Bases: pyctools.core.compound.Compound

Vertical image resizer component.

Uses a Compound component to encapsulate Resize and FilterGenerator components.

Config:

up

int

Up-conversion factor.

down

int

Down-conversion factor.

aperture

int

Filter aperture.

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

Bases: pyctools.core.compound.Compound

2-D image resizer component.

Uses a Compound component to encapsulate two Resize and two FilterGenerator components.

Using separate Resize components to filter each dimension is a lot quicker than using one Resize with a 2-D filter, particularly for large apertures.

Config:

xup

int

Horizontal up-conversion factor.

xdown

int

Horizontal down-conversion factor.

xaperture

int

Horizontal filter aperture.

yup

int

Vertical up-conversion factor.

ydown

int

Vertical down-conversion factor.

yaperture

int

Vertical filter aperture.


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