~ubuntu-branches/ubuntu/hardy/devil/hardy-updates

« back to all changes in this revision

Viewing changes to src-ILU/include/ilu_filter.h

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2005-01-03 19:57:42 UTC
  • Revision ID: james.westby@ubuntu.com-20050103195742-4ipkplcwygu3irv0
Tags: upstream-1.6.7
ImportĀ upstreamĀ versionĀ 1.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//-----------------------------------------------------------------------------
 
2
//
 
3
// ImageLib Utility Sources
 
4
// Copyright (C) 2000-2002 by Denton Woods
 
5
// Last modified: 05/28/2001 <--Y2K Compliant! =]
 
6
//
 
7
// Filename: src-ILU/include/ilu_filter.h
 
8
//
 
9
// Description: Applies filters to an image.
 
10
//
 
11
//-----------------------------------------------------------------------------
 
12
 
 
13
 
 
14
#ifndef FILTER_H
 
15
#define FILTER_H
 
16
 
 
17
#include "ilu_internal.h"
 
18
 
 
19
 
 
20
ILint Filters[] = {
 
21
        //   Average
 
22
        1, 1, 1,
 
23
        1, 1, 1,
 
24
        1, 1, 1,
 
25
        9, 1,
 
26
        /*-1, -3, -1,
 
27
        -3, 41, -3,
 
28
        -1, -3, -1,
 
29
        25, 0,*/
 
30
        //      Gaussian
 
31
        1, 2, 1,
 
32
        2, 4, 2,
 
33
        1, 2, 1,
 
34
        16, 1,
 
35
        //      Horizontal Sobel
 
36
        1,  2,  1,
 
37
        0,  0,  0,
 
38
        -1, -2, -1,
 
39
        1, 0,
 
40
        //      Vertical Sobel
 
41
        1, 0, -1,
 
42
        2, 0, -2,
 
43
        1, 0, -1,
 
44
        1, 0,
 
45
        //      Horizontal Prewitt
 
46
        -1, -1, -1,
 
47
        0,  0,  0,
 
48
        1,  1,  1,
 
49
        1, 0,
 
50
        //      Vertical Prewitt
 
51
        1, 0, -1,
 
52
        1, 0, -1,
 
53
        1, 0, -1,
 
54
        1, 0,
 
55
        // Emboss
 
56
        -1, 0, 1,
 
57
        -1, 0, 1,
 
58
        -1, 0, 1,
 
59
        1, 128,
 
60
        // Emboss Edge Detect
 
61
        -1, 0, 1,
 
62
        -1, 0, 1,
 
63
        -1, 0, 1,
 
64
        1, 0
 
65
};
 
66
 
 
67
 
 
68
#endif//FILTER_H