~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to src/trace/filterset.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 * Authors:
5
5
 *   Bob Jamison <rjamison@titan.com>
 
6
 *   Stéphane Gimenez <dev@gim.name>
6
7
 *
7
 
 * Copyright (C) 2004 Bob Jamison
 
8
 * Copyright (C) 2004-2006 Authors
8
9
 *
9
10
 * Released under GNU GPL, read the file 'COPYING' for more information
10
11
 */
16
17
 
17
18
#include <gdk-pixbuf/gdk-pixbuf.h>
18
19
 
19
 
#ifndef TRUE
20
 
#define TRUE  1
21
 
#endif
22
 
 
23
 
#ifndef FALSE
24
 
#define FALSE 0
25
 
#endif
26
 
 
27
 
/*#########################################################################
28
 
### C A N N Y    E D G E    D E T E C T I O N
29
 
#########################################################################*/
30
 
 
31
 
 
32
 
 
33
20
#ifdef __cplusplus
34
21
extern "C" {
35
22
#endif
36
23
 
37
 
 
38
 
/**
39
 
 *
40
 
 */
41
 
GrayMap *grayMapGaussian(GrayMap *me);
42
 
 
43
 
/**
44
 
 *
45
 
 */
46
 
RgbMap *rgbMapGaussian(RgbMap *me);
47
 
 
48
 
/**
49
 
 *
50
 
 */
51
 
GrayMap *grayMapCanny(GrayMap *gm, 
 
24
/**
 
25
 *  Apply gaussian blur to an GrayMap
 
26
 */
 
27
GrayMap *grayMapGaussian(GrayMap *gmap);
 
28
 
 
29
/**
 
30
 *  Apply gaussian bluf to an RgbMap
 
31
 */
 
32
RgbMap *rgbMapGaussian(RgbMap *rgbmap);
 
33
 
 
34
/**
 
35
 *
 
36
 */
 
37
GrayMap *grayMapCanny(GrayMap *gmap,
52
38
             double lowThreshold, double highThreshold);
53
39
 
54
40
/**
58
44
            double lowThreshold, double highThreshold);
59
45
 
60
46
/**
61
 
 * Quantize an RGB image to a reduced number of colors.  bitsPerSample
62
 
 * is usually 3 - 5 out of 8 to conserve cpu and memory
63
 
 */
64
 
IndexedMap *rgbMapQuantize(RgbMap *rgbMap, int bitsPerSample, int nrColors);
65
 
 
66
 
/**
67
47
 *
68
48
 */
69
49
GrayMap *quantizeBand(RgbMap *rgbmap, int nrColors);