---
name: "im_rotquad"
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_rotquad"
---

# im\_rotquad(3)

rotates the four quadrants of an image

## NAME

im\_rotquad - rotates the four quadrants of an image

## SYNOPSIS

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

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

## DESCRIPTION

im\_rotquad rotates the four quadrants of the image held by the image descriptor in and writes the result on the image descriptor out.

The function is used primarily to rotate a fourier transform in such a way that the coordinate (0,0) is near the centre of the image, the so-called optical transform.

The function operates on any input; output has the same format, sizes and bands as input.

## RETURN VALUE

The function returns 0 on success and -1 on error.

## SEE ALSO

[im\_fwfft(3)](/im_fwfft/3.md), [im\_invfft(3)](/im_invfft/3.md), [im\_scaleps(3)](/im_scaleps/3.md).

## COPYRIGHT

N. Dessipris

## AUTHOR

N. Dessipris - 06/07/1990
