1IM_HIST(3)                 Library Functions Manual                 IM_HIST(3)
2
3
4

NAME

6       im_hist - create a displayable histogram from an image
7

SYNOPSIS

9       #include <vips/vips.h>
10
11       int im_hist(in, plotofhist, bandno)
12       IMAGE *in, *plotofhist;
13       int bandno;
14

DESCRIPTION

16       im_hist()  creates  a  displayable histogram file for the image held by
17       the image descriptor in.  The created displayable histogram is held  in
18       the  IMAGE  descriptor plotofhist.  If bandno=0 a displayable histogram
19       of all input bands is created else the histogram of bandno only is cre‐
20       ated.  The function expects as input a valid unsigned char image of any
21       size. The sizes of the produced image file are 256 by 256.  The created
22       histogram is scaled with its max value corresponding to 255.
23

RETURN VALUE

25       All functions returns 0 on success and -1 on error.
26

SEE ALSO

28       im_histgr(3), im_mmapin(3), im_openout(3), im_setbuf(3).
29
31       N. Dessipris
32

AUTHOR

34       N. Dessipris - 10/05/1991
35
36
37
38                                  10 May 1991                       IM_HIST(3)
Impressum