- Main Page
- Data Structures
- Files

# /home/dwoods/DevIL/src-ILU/include/ilu_filter.h

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Utility Sources
    00004 // Copyright (C) 2000-2002 by Denton Woods
    00005 // Last modified: 05/28/2001 <--Y2K Compliant! =]
    00006 //
    00007 // Filename: src-ILU/include/ilu_filter.h
    00008 //
    00009 // Description: Applies filters to an image.
    00010 //
    00011 //-----------------------------------------------------------------------------
    00012
    00013
    00014 #ifndef FILTER_H
    00015 #define FILTER_H
    00016
    00017 #include "ilu_internal.h"
    00018
    00019
    00020 static const ILint filter_average_scale = 9;
    00021 static const ILint filter_average_bias  = 1;
    00022 static const ILint filter_average[] =
    00023 {       1, 1, 1,
    00024         1, 1, 1,
    00025         1, 1, 1 };
    00026
    00027
    00028 static const ILint filter_gaussian_scale = 16;
    00029 static const ILint filter_gaussian_bias  = 1;
    00030 static const ILint filter_gaussian[] =
    00031 {       1, 2, 1,
    00032         2, 4, 2,
    00033         1, 2, 1 };
    00034
    00035
    00036 static const ILint filter_h_sobel_scale = 1;
    00037 static const ILint filter_h_sobel_bias  = 0;
    00038 static const ILint filter_h_sobel[] =
    00039 {       1,  2,  1,
    00040         0,  0,  0,
    00041    -1, -2, -1 };
    00042
    00043
    00044 static const ILint filter_v_sobel_scale = 1;
    00045 static const ILint filter_v_sobel_bias  = 0;
    00046 static const ILint filter_v_sobel[] =
    00047 {       1,  0, -1,
    00048         2,  0, -2,
    00049     1,  0, -1 };
    00050
    00051
    00052 static const ILint filter_h_prewitt_scale = 1;
    00053 static const ILint filter_h_prewitt_bias  = 0;
    00054 static const ILint filter_h_prewitt[] =
    00055 {       1,  1,  1,
    00056         0,  0,  0,
    00057    -1, -1, -1 };
    00058
    00059
    00060 static const ILint filter_v_prewitt_scale = 1;
    00061 static const ILint filter_v_prewitt_bias  = 0;
    00062 static const ILint filter_v_prewitt[] =
    00063 {       1,  0, -1,
    00064         1,  0, -1,
    00065     1,  0, -1 };
    00066
    00067 static const ILint filter_emboss_scale = 1;
    00068 static const ILint filter_emboss_bias  = 128;
    00069 static const ILint filter_emboss[] =
    00070 {       -1,  0, 1,
    00071         -1,  0, 1,
    00072     -1,  0, 1 };
    00073
    00074 static const ILint filter_embossedge_scale = 1;
    00075 static const ILint filter_embossedge_bias  = 0;
    00076 static const ILint filter_embossedge[] =
    00077 {       -1,  0, 1,
    00078         -1,  0, 1,
    00079     -1,  0, 1 };
    00080
    00081 #endif//FILTER_H