---
name: "im_zone"
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_zone"
---

# im\_zone(3)

creates a zone plate

## NAME

im\_zone, im\_fzone - creates a zone plate

## SYNOPSIS

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

**int im\_zone(image, size)**\
 **IMAGE \*image;**\
 **int size;**

**int im\_fzone(image, size)**\
 **IMAGE \*image;**\
 **int size;**

## DESCRIPTION

**im\_fzone()** creates a float one band image of a zone plate of size size by size. Pels are in the range \[-1,+1\]. The zone plate has spatial frequencies increasing from 0 the center (at size/2, size/2) up to infinity at the edges. size must be positive and even.

**im\_zone()** behaves exactly as im\_fzone(), but writes a FMTUCHAR image scaled to the range 0-255.

## RETURN VALUE

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

## SEE ALSO

[im\_grey(3)](/im_grey/3.md), [im\_fgrey(3)](/im_fgrey/3.md).

## COPYRIGHT

N. Dessipris

## AUTHOR

N. Dessipris - 10/05/1991
