
; ллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллл
;
;                               3x3 Filters
;
; ллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллл

FILTER LAPLAS3 3         ; Laplacian all-direction edge detector
-1 -1 -1
-1  8 -1
-1 -1 -1
* 1

FILTER UP_RIGHT_EDGE 3   ; Edge detection in the (/) direction (DOWN_DEFT_EDGE)
-1 0 0
 0 0 0
 0 0 1
* 1

FILTER DOWN_LEFT_EDGE 3  ; Edge detection in the (/) direction (UP_RIGHT_EDGE)
 1 0  0
 0 0  0
 0 0 -1
* 1

FILTER UP_LEFT_EDGE 3    ; Edge detection in the (\) direction (DOWN_RIGHT_EDGE)
 0 0 -1
 0 0  0
 1 0  0
* 1

FILTER DOWN_RIGHT_EDGE 3 ; Edge detection in the (\) direction (UP_LEFT_EDGE)
 0 0 1
 0 0 0
-1 0 0
* 1

FILTER HORIZ 3           ; Horizontal edge detection
 1  1  1
 0  0  0
-1 -1 -1
* 1

FILTER VERT 3            ; Vertical edge detection
-1 0 1
-1 0 1
-1 0 1
* 1

FILTER AVERAGE 3         ; Averaging filter (same as Low-Pass)
1 1 1
1 1 1
1 1 1
/ 9

FILTER LOWPASS 3         ; Low-Pass filter (same as Average)
1 1 1
1 1 1
1 1 1
/ 9

FILTER MEDIAN 3          ; Median soften filter
1 1 1
1 1 1
1 1 1
M 0 0

FILTER SOFTEN 3          ; Soften filter softens edges
1 1 1
1 0 1
1 1 1
/ 8

FILTER BLUR 3            ; Blur filter
1 2 1
2 2 2
1 2 1
/ 14

FILTER LOW_WASH 3        ; Blurs and tries to simulate "camera white-wash"
1 1 1
1 1 1
1 1 1
/ 5

FILTER MED_WASH 3        ; Blurs and tries to simulate "camera white-wash"
1 1 1
1 1 1
1 1 1
/ 4

FILTER HIGH_WASH 3       ; Blurs and tries to simulate "camera white-wash"
1 1 1
1 1 1
1 1 1
/ 3

FILTER OUTLINE_BLUR 3    ; Another cool blur
 1  1  1
 1 -5  1
 1  1  1
/ 5

FILTER DIALATE 3         ; Color dialate filter
1 1 1
1 1 1
1 1 1
> 0 0

FILTER ERODE 3           ; Color erosion filter
1 1 1
1 1 1
1 1 1
< 0 0

FILTER HFB 3             ; High Frequency Boost
-1 -1 -1
-1  9 -1
-1 -1 -1
* 1

FILTER SHARPEN 3         ; Sharpen (traditional)
-1 -1 -1
-1 13 -1
-1 -1 -1
/ 4

FILTER SHARPEN2 3        ; Sharpen (modern)
 0 -1  0
-1  5 -1
 0 -1  0
* 1 

FILTER EMBOSS_UL 3       ; Projects the image into sand (upper left)
-1 0 0
 0 0 0
 0 0 1
* 1 128

FILTER EMBOSS_LR 3       ; Projects the image into sand (lower right)
 1 0  0
 0 0  0
 0 0 -1
* 1 128

FILTER EMBOSS_LL 3       ; Projects the image into sand (lower left)
 0 0 1
 0 0 0
-1 0 0
* 1 128

FILTER EMBOSS_UR 3       ; Projects the image into sand (upper right)
 0 0 -1
 0 0  0
 1 0  0
* 1 128

FILTER DEMON3 3
   0   0 396
   0 -100  0
-396   0   0
/ -100 -100

FILTER EDGE 3
 4   4  4
 4 -20  4
 4   4  4
/ 12

FILTER NUCLEAR 3
 0 -48   0
80  16 -40
 0 -20   0
/ -12 -60

FILTER PARCHMENT 3
 0 -20  0
20   0 20
 0 -20  0
* 1 100

FILTER PASTEL2 3
 0 -48   0
80  16 -80
 0  20   0
/ -12

FILTER ROUGH 3
80  0 -80
 0  8   0
80  0 -80
/ 8

FILTER SANDBLAST 3
   0 0 396
   0 0   0
-396 0   0
* 1 396

FILTER SKETCH 3
  0  12   0
 12   4 -12
  0 -12   0
/ 4 40

FILTER SLATE 3
 0  0 -4
 0  8  0
-4  0  0
* 1 40

FILTER SOLAR 3
-8  0  4
-8  0  4
-8  0  4
/ -12 60

FILTER SOLAR2 3
 0   8 0
 8 200 8
 0   8 0
/ 224 80

FILTER STONE 3
-4 -4 -4
 0  0  0
 4  4  4
* 1 80

FILTER STONE2 3
 4  0 -4
 4  0 -4
 4  0 -4
* 1 84

FILTER STONE3 3
  0 -20  0
-20   0 20
  0  20  0
* 1 100

FILTER TEXTURIZE 3
 0 -48   0
80  16 -40
 0  20   0
* 28

FILTER UNFOCUS 3
 4  4  4
 4  0  4
 4  4  4
/ 32

; ллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллл
;
;                               5x5 filters           
;
; ллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллл

FILTER LAPLAS5 5         ; Laplacian all-direction edge detector
-1 -1 -1 -1 -1
-1 -1 -1 -1 -1
-1 -1 24 -1 -1
-1 -1 -1 -1 -1
-1 -1 -1 -1 -1

FILTER UP_RIGHT_EDGE5 5  ; Edge detection in the (/) direction (DOWN_DEFT_EDGE)
-1 0 0 0 0
 0 0 0 0 0
 0 0 0 0 0
 0 0 0 0 0
 0 0 0 0 1
* 1

FILTER DOWN_LEFT_EDGE5 5 ; Edge detection in the (/) direction (UP_RIGHT_EDGE)
 1 0 0 0  0
 0 0 0 0  0
 0 0 0 0  0
 0 0 0 0  0
 0 0 0 0 -1
* 1

FILTER UP_LEFT_EDGE5 5   ; Edge detection in the (\) direction (DOWN_RIGHT_EDGE)
 0 0 0 0 -1
 0 0 0 0  0
 0 0 0 0  0
 0 0 0 0  0
 1 0 0 0  0
* 1

FILTER DOWN_RIGHT_EDGE5 5 ; Edge detection in the (\) direction (UP_LEFT_EDGE)
 0 0 0 0 1
 0 0 0 0 0
 0 0 0 0 0
 0 0 0 0 0
-1 0 0 0 0
* 1

FILTER HORIZ5 5          ; Horizontal edge detection
 1  1  1  1  1
 0  0  0  0  0
 0  0  0  0  0
 0  0  0  0  0
-1 -1 -1 -1 -1
* 1

FILTER VERT5 5           ; Vertical edge detection
-1 0 0 0 1
-1 0 0 0 1
-1 0 0 0 1
-1 0 0 0 1
-1 0 0 0 1
* 1

FILTER AVERAGE5 5        ; Averaging filter (same as Low-Pass)
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
/ 25

FILTER LOWPASS5 5        ; Low-Pass filter (same as Average)
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
/ 25

FILTER MEDIAN5 5         ; Median soften filter
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
M 0 0

FILTER SOFTEN5 5         ; Soften filter softens edges
1 1 1 1 1
1 1 1 1 1
1 1 0 1 1
1 1 1 1 1
1 1 1 1 1
/ 24

FILTER BLUR5 5           ; Blur filter
1 1 2 1 1
1 1 2 1 1
2 2 2 2 2
1 1 2 1 1
1 1 2 1 1
/ 32

FILTER LOW_WASH5 5       ; Blurs and tries to simulate "camera white-wash"
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
/ 11

FILTER MED_WASH5 5       ; Blurs and tries to simulate "camera white-wash"
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
/ 8

FILTER HIGH_WASH5 5      ; Blurs and tries to simulate "camera white-wash"
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
/ 5

FILTER OUTLINE_BLUR5 5   ; Another cool blur
1 1  1 1 1
1 1  1 1 1
1 1 -5 1 1
1 1  1 1 1
1 1  1 1 1
/ 14

FILTER DIALATE5 5        ; Color dialate filter
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
> 0 0

FILTER ERODE5 5          ; Color erosion filter
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
< 0 0

FILTER HFB5 5            ; High Frequency Boost
-1 -1 -1 -1 -1
-1 -1 -1 -1 -1
-1 -1 25 -1 -1
-1 -1 -1 -1 -1
-1 -1 -1 -1 -1
* 1

FILTER SHARPEN5 5        ; Sharpen (traditional)
-1 -1 -1 -1 -1
-1 -1 -1 -1 -1
-1 -1 29 -1 -1
-1 -1 -1 -1 -1
-1 -1 -1 -1 -1
/ 4

FILTER SHARPEN25 5       ; Sharpen (modern)
 0  0 -1  0  0
 0  0 -1  0  0
-1 -1  9 -1 -1
 0  0 -1  0  0
 0  0 -1  0  0
* 1 
                  
FILTER EMBOSS_UL5 5      ; Projects the image into sand (upper left)
-1 0 0 0 0
 0 0 0 0 0
 0 0 0 0 0
 0 0 0 0 0
 0 0 0 0 1
* 1 128

FILTER EMBOSS_LR5 5      ; Projects the image into sand (lower right)
 1 0 0 0  0
 0 0 0 0  0
 0 0 0 0  0
 0 0 0 0  0
 0 0 0 0 -1
* 1 128

FILTER EMBOSS_LL5 5      ; Projects the image into sand (lower left)
 0 0 0 0 1
 0 0 0 0 0
 0 0 0 0 0
 0 0 0 0 0
-1 0 0 0 0
* 1 128

FILTER EMBOSS_UR5 5      ; Projects the image into sand (upper right)
 0 0 0 0 -1
 0 0 0 0  0
 0 0 0 0  0
 0 0 0 0  0
 1 0 0 0  0
* 1 128

FILTER BLAST 5
 0  -8  -8  -8   0
 0   0   0   0   0
 0   0  48   0   0
 0   0   0   0   0
 0  -8  -8  -8   0
* 1

FILTER BURLAP 5
 0   0   4   0   0
 0   0   0   0   0
 4   0   0   0   4
 0   0   0   0   0
 0   0   4   0   0
/ 16

FILTER DEMON 5
 0   0   0   0  -4
 0   0   0 -12   0
 0   0   0   0   0
 0   4   0   0   0
12   0   0   0   0
* 1

FILTER DEMON2 5
 0   0   8   8   8
 0   0   0   0   8
-8   0   0   0   8
-8   0   0   0   0
-8  -8  -8   0   0
* 1

FILTER DOUBLE_EDGE 5
 0  -8   0  -8   0
-8   8   0   8  -8
 0   0   8   0   0
-8   8   0   8  -8
 0  -8   0  -8   0
/ -24

FILTER ECLIPSE 5
 8   0   0   0   0
 0  -4   0   0   0
 0   0  16   0   0
 0   0   0   4   0
 0   0   0   0  -8
/ 16 -68

FILTER HAZE 5
-20  0   0   0 -20
  0 -4   0  -4   0
  0  0 -40   0   0
  0 -4   0  -4   0
-20  0   0   0 -20
/ -136

FILTER MOTION 5
 8   0   0   0   4
 0   0   0   0   0
 0   0   0   0   0
 0   0   0   0   0
 4   0   0   0   8
/ 24

FILTER MOTION2 5
12   0   0   0  -4
 0   0   0   0   0
 0   0   0   0   0
 0   0   0   0   0
-4   0   0   0  12
/ 16

FILTER MUTATE 5
  0  20   0  80   0
 20   0   0   0  80
  0   0   0   0   0
-80   0   0   0 -20
  0 -80   0 -20   0
* 1

FILTER PASTEL 5
80   0   0   0   0
 0   0   0   0   0
 0   0 -20   0   0
 0   0   0   0   0
 0   0   0   0 -40
/ 20

FILTER SHAKE 5
-8   0   0   0  -8
 0   4   0   4   0
 0   0   0   0   0
 0   4   0   4   0
-8   0   0   0  -8
/ -16

FILTER SKETCH2 5
  0   0   0 -80   0
  0   0 -80   0  80
  0 -80  80  80   0
-80   0  80   0   0
  0  80   0   0   0
/ 80

FILTER SUNDOWN 5
 0   0   0   8   8
 0   0   0   0   8
 0   0   0   0   0
-4   0   0   0   0
-4  -4   0   0   0
/ 12 -40

; ллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллл
;
;                               7x7 filters           
;
; ллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллл

FILTER LAPLAS7 7          ; Laplacian all-direction edge detector
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 48 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
* 1

FILTER UP_RIGHT_EDGE7 7  ; Edge detection in the (/) direction (DOWN_DEFT_EDGE)
-1 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 1
* 1

FILTER DOWN_LEFT_EDGE7 7 ; Edge detection in the (/) direction (UP_RIGHT_EDGE)
 1 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0 -1
* 1

FILTER UP_LEFT_EDGE7 7   ; Edge detection in the (\) direction (DOWN_RIGHT_EDGE)
 0 0 0 0 0 0 -1
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 1 0 0 0 0 0  0
* 1

FILTER DOWN_RIGHT_EDGE7 7 ; Edge detection in the (\) direction (UP_LEFT_EDGE)
 0 0 0 0 0 0 1
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
-1 0 0 0 0 0 0
* 1

FILTER HORIZ7 7          ; Horizontal edge detection
 1  1  1  1  1  1  1
 0  0  0  0  0  0  0
 0  0  0  0  0  0  0
 0  0  0  0  0  0  0
 0  0  0  0  0  0  0
 0  0  0  0  0  0  0
-1 -1 -1 -1 -1 -1 -1
* 1

FILTER VERT7 7           ; Vertical edge detection
-1 0 0 0 0 0 1
-1 0 0 0 0 0 1
-1 0 0 0 0 0 1
-1 0 0 0 0 0 1
-1 0 0 0 0 0 1
-1 0 0 0 0 0 1
-1 0 0 0 0 0 1
* 1

FILTER AVERAGE7 7        ; Averaging filter (same as Low-Pass)
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
/ 49

FILTER LOWPASS7 7        ; Low-Pass filter (same as Average)
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
/ 49

FILTER MEDIAN7 7         ; Median soften filter
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
M 0 0

FILTER SOFTEN7 7         ; Soften filter softens edges
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 0 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
/ 48

FILTER BLUR7 7           ; Blur filter
1 1 1 2 1 1 1
1 1 1 2 1 1 1
1 1 1 2 1 1 1
2 2 2 2 2 2 2
1 1 1 2 1 1 1
1 1 1 2 1 1 1
1 1 1 2 1 1 1
/ 53

FILTER LOW_WASH7 7       ; Blurs and tries to simulate "camera white-wash"
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
/ 27

FILTER MED_WASH7 7       ; Blurs and tries to simulate "camera white-wash"
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
/ 22

FILTER HIGH_WASH7 7      ; Blurs and tries to simulate "camera white-wash"
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
/ 17

FILTER OUTLINE_BLUR7 7   ; Another cool blur
1 1 1  1 1 1 1
1 1 1  1 1 1 1
1 1 1  1 1 1 1
1 1 1 -5 1 1 1
1 1 1  1 1 1 1
1 1 1  1 1 1 1
1 1 1  1 1 1 1
/ 48

FILTER DIALATE7 7        ; Color dialate filter
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
> 0 0

FILTER ERODE7 7          ; Color erosion filter
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
< 0 0

FILTER HFB7 7            ; High Frequency Boost
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 49 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
* 1

FILTER SHARPEN7 7        ; Sharpen (traditional)
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 53 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
/ 4

FILTER SHARPEN27 7       ; Sharpen (modern)
 0  0  0 -1  0  0  0
 0  0  0 -1  0  0  0
 0  0  0 -1  0  0  0
-1 -1 -1 13 -1 -1 -1
 0  0  0 -1  0  0  0
 0  0  0 -1  0  0  0
 0  0  0 -1  0  0  0
* 1 
                  
FILTER EMBOSS_UL7 7      ; Projects the image into sand (upper left)
-1 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 1
* 1 128

FILTER EMBOSS_LR7 7      ; Projects the image into sand (lower right)
 1 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0 -1
* 1 128

FILTER EMBOSS_LL7 7      ; Projects the image into sand (lower left)
 0 0 0 0 0 0 1
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
 0 0 0 0 0 0 0
-1 0 0 0 0 0 0
* 1 128

FILTER EMBOSS_UR7 7      ; Projects the image into sand (upper right)
 0 0 0 0 0 0 -1
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 0 0 0 0 0 0  0
 1 0 0 0 0 0  0
* 1 128
