Enumeration

VipsRegionShrink

Declaration

enum Vips.RegionShrink

Description [src]

How to calculate the output pixels when shrinking a 2x2 region.

Images with alpha (see vips_image_hasalpha()) always shrink with VipsRegionShrink and pixels scaled by alpha to avoid fringing.

Set the image interpretation to VipsInterpretation to treat all bands equally.

Members

Name Description
VIPS_REGION_SHRINK_MEAN

Use the average.

VIPS_REGION_SHRINK_MEDIAN

Use the median.

VIPS_REGION_SHRINK_MODE

Use the mode.

VIPS_REGION_SHRINK_MAX

Use the maximum.

VIPS_REGION_SHRINK_MIN

Use the minimum.

VIPS_REGION_SHRINK_NEAREST

Use the top-left pixel.