im_zone(3)

im_zone3

Creates a zone plate

Usage

#include <vips/vips.h>

int im_zone(image, size)
IMAGE *image;
int size;

int im_fzone(image, size)
IMAGE *image;
int size;

Overview

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.

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

Author

N. Dessipris - 10/05/1991

From libvips-dev 7.20.7-1+b3 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.