---
name: "im_fav4"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_fav4"
---

# im\_fav4(3)

averages four frames

## NAME

im\_fav4 - averages four frames

## SYNOPSIS

**#include \<vips/vips.h\>**

**int im\_fav4(in, out)**\
 **IMAGE \*\*in, \*out;**

## DESCRIPTION

**im\_fav4** averages four input VIPS images, which must be unsigned byte images with any number of bands. This is useful for noise reduction by grabbing 4 frames  and averaging them. With 7 bit images this will give quite a convincing eighth bit.

## RETURN VALUE

returns 0 on success or -1 on error

## SEE ALSO

add(1)

## COPYRIGHT

K. Martinez 13/4/92
