im_scale() gtkdoc
This commit is contained in:
parent
f4fd407740
commit
1e4a6bead6
|
@ -1,12 +1,4 @@
|
||||||
/* @(#) Scale an image so that min(im) maps to 0 and max(im) maps to 255. If
|
/* im_scale
|
||||||
* @(#) min(im)==max(im), then we return black. Any non-complex type.
|
|
||||||
* @(#)
|
|
||||||
* @(#) int
|
|
||||||
* @(#) im_scale( in, out )
|
|
||||||
* @(#) IMAGE *in, *out;
|
|
||||||
* @(#)
|
|
||||||
* @(#) Returns 0 on success and -1 on error
|
|
||||||
* @(#)
|
|
||||||
*
|
*
|
||||||
* Author: John Cupitt
|
* Author: John Cupitt
|
||||||
* Written on: 22/4/93
|
* Written on: 22/4/93
|
||||||
|
@ -21,6 +13,8 @@
|
||||||
* 16/10/06
|
* 16/10/06
|
||||||
* - what? no, don't set Type, useful to be able to scale histograms, for
|
* - what? no, don't set Type, useful to be able to scale histograms, for
|
||||||
* example
|
* example
|
||||||
|
* 1/2/10
|
||||||
|
* - gtkdoc
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -63,7 +57,18 @@
|
||||||
#include <dmalloc.h>
|
#include <dmalloc.h>
|
||||||
#endif /*WITH_DMALLOC*/
|
#endif /*WITH_DMALLOC*/
|
||||||
|
|
||||||
/* Scale, as noted above.
|
/**
|
||||||
|
* im_scale:
|
||||||
|
* @in: input image
|
||||||
|
* @out: output image
|
||||||
|
*
|
||||||
|
* Search the image for the maximum and minimum value, then return the image
|
||||||
|
* as unsigned 8-bit, scaled so that the maximum value is 255 and the
|
||||||
|
* minimum is zero.
|
||||||
|
*
|
||||||
|
* See also: im_clip2fmt().
|
||||||
|
*
|
||||||
|
* Returns: 0 on success, -1 on error
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
im_scale( IMAGE *in, IMAGE *out )
|
im_scale( IMAGE *in, IMAGE *out )
|
||||||
|
|
Loading…
Reference in New Issue