Enumeration

VipsRegionShrink

since: 8.0

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.

Available since: 8.0

Members

VIPS_REGION_SHRINK_MEAN

Use the average.

  • Value: 0
  • Nickname: mean
  • Available since: 8.0
VIPS_REGION_SHRINK_MEDIAN

Use the median.

  • Value: 1
  • Nickname: median
  • Available since: 8.0
VIPS_REGION_SHRINK_MODE

Use the mode.

  • Value: 2
  • Nickname: mode
  • Available since: 8.0
VIPS_REGION_SHRINK_MAX

Use the maximum.

  • Value: 3
  • Nickname: max
  • Available since: 8.0
VIPS_REGION_SHRINK_MIN

Use the minimum.

  • Value: 4
  • Nickname: min
  • Available since: 8.0
VIPS_REGION_SHRINK_NEAREST

Use the top-left pixel.

  • Value: 5
  • Nickname: nearest
  • Available since: 8.0