home *** CD-ROM | disk | FTP | other *** search
/ Collection of Morph / collectionofmorphcarat1997.iso / PROGRAMS / CMORPH.ZIP / FILTERS.TXT < prev    next >
Text File  |  1993-11-13  |  14KB  |  826 lines

  1.  
  2. ; █████████████████████████████████████████████████████████████████████████████
  3. ;
  4. ;                               3x3 Filters
  5. ;
  6. ; █████████████████████████████████████████████████████████████████████████████
  7.  
  8. FILTER LAPLAS3 3         ; Laplacian all-direction edge detector
  9. -1 -1 -1
  10. -1  8 -1
  11. -1 -1 -1
  12. * 1
  13.  
  14. FILTER UP_RIGHT_EDGE 3   ; Edge detection in the (/) direction (DOWN_DEFT_EDGE)
  15. -1 0 0
  16.  0 0 0
  17.  0 0 1
  18. * 1
  19.  
  20. FILTER DOWN_LEFT_EDGE 3  ; Edge detection in the (/) direction (UP_RIGHT_EDGE)
  21.  1 0  0
  22.  0 0  0
  23.  0 0 -1
  24. * 1
  25.  
  26. FILTER UP_LEFT_EDGE 3    ; Edge detection in the (\) direction (DOWN_RIGHT_EDGE)
  27.  0 0 -1
  28.  0 0  0
  29.  1 0  0
  30. * 1
  31.  
  32. FILTER DOWN_RIGHT_EDGE 3 ; Edge detection in the (\) direction (UP_LEFT_EDGE)
  33.  0 0 1
  34.  0 0 0
  35. -1 0 0
  36. * 1
  37.  
  38. FILTER HORIZ 3           ; Horizontal edge detection
  39.  1  1  1
  40.  0  0  0
  41. -1 -1 -1
  42. * 1
  43.  
  44. FILTER VERT 3            ; Vertical edge detection
  45. -1 0 1
  46. -1 0 1
  47. -1 0 1
  48. * 1
  49.  
  50. FILTER AVERAGE 3         ; Averaging filter (same as Low-Pass)
  51. 1 1 1
  52. 1 1 1
  53. 1 1 1
  54. / 9
  55.  
  56. FILTER LOWPASS 3         ; Low-Pass filter (same as Average)
  57. 1 1 1
  58. 1 1 1
  59. 1 1 1
  60. / 9
  61.  
  62. FILTER MEDIAN 3          ; Median soften filter
  63. 1 1 1
  64. 1 1 1
  65. 1 1 1
  66. M 0 0
  67.  
  68. FILTER SOFTEN 3          ; Soften filter softens edges
  69. 1 1 1
  70. 1 0 1
  71. 1 1 1
  72. / 8
  73.  
  74. FILTER BLUR 3            ; Blur filter
  75. 1 2 1
  76. 2 2 2
  77. 1 2 1
  78. / 14
  79.  
  80. FILTER LOW_WASH 3        ; Blurs and tries to simulate "camera white-wash"
  81. 1 1 1
  82. 1 1 1
  83. 1 1 1
  84. / 5
  85.  
  86. FILTER MED_WASH 3        ; Blurs and tries to simulate "camera white-wash"
  87. 1 1 1
  88. 1 1 1
  89. 1 1 1
  90. / 4
  91.  
  92. FILTER HIGH_WASH 3       ; Blurs and tries to simulate "camera white-wash"
  93. 1 1 1
  94. 1 1 1
  95. 1 1 1
  96. / 3
  97.  
  98. FILTER OUTLINE_BLUR 3    ; Another cool blur
  99.  1  1  1
  100.  1 -5  1
  101.  1  1  1
  102. / 5
  103.  
  104. FILTER DIALATE 3         ; Color dialate filter
  105. 1 1 1
  106. 1 1 1
  107. 1 1 1
  108. > 0 0
  109.  
  110. FILTER ERODE 3           ; Color erosion filter
  111. 1 1 1
  112. 1 1 1
  113. 1 1 1
  114. < 0 0
  115.  
  116. FILTER HFB 3             ; High Frequency Boost
  117. -1 -1 -1
  118. -1  9 -1
  119. -1 -1 -1
  120. * 1
  121.  
  122. FILTER SHARPEN 3         ; Sharpen (traditional)
  123. -1 -1 -1
  124. -1 13 -1
  125. -1 -1 -1
  126. / 4
  127.  
  128. FILTER SHARPEN2 3        ; Sharpen (modern)
  129.  0 -1  0
  130. -1  5 -1
  131.  0 -1  0
  132. * 1 
  133.  
  134. FILTER EMBOSS_UL 3       ; Projects the image into sand (upper left)
  135. -1 0 0
  136.  0 0 0
  137.  0 0 1
  138. * 1 128
  139.  
  140. FILTER EMBOSS_LR 3       ; Projects the image into sand (lower right)
  141.  1 0  0
  142.  0 0  0
  143.  0 0 -1
  144. * 1 128
  145.  
  146. FILTER EMBOSS_LL 3       ; Projects the image into sand (lower left)
  147.  0 0 1
  148.  0 0 0
  149. -1 0 0
  150. * 1 128
  151.  
  152. FILTER EMBOSS_UR 3       ; Projects the image into sand (upper right)
  153.  0 0 -1
  154.  0 0  0
  155.  1 0  0
  156. * 1 128
  157.  
  158. FILTER DEMON3 3
  159.    0   0 396
  160.    0 -100  0
  161. -396   0   0
  162. / -100 -100
  163.  
  164. FILTER EDGE 3
  165.  4   4  4
  166.  4 -20  4
  167.  4   4  4
  168. / 12
  169.  
  170. FILTER NUCLEAR 3
  171.  0 -48   0
  172. 80  16 -40
  173.  0 -20   0
  174. / -12 -60
  175.  
  176. FILTER PARCHMENT 3
  177.  0 -20  0
  178. 20   0 20
  179.  0 -20  0
  180. * 1 100
  181.  
  182. FILTER PASTEL2 3
  183.  0 -48   0
  184. 80  16 -80
  185.  0  20   0
  186. / -12
  187.  
  188. FILTER ROUGH 3
  189. 80  0 -80
  190.  0  8   0
  191. 80  0 -80
  192. / 8
  193.  
  194. FILTER SANDBLAST 3
  195.    0 0 396
  196.    0 0   0
  197. -396 0   0
  198. * 1 396
  199.  
  200. FILTER SKETCH 3
  201.   0  12   0
  202.  12   4 -12
  203.   0 -12   0
  204. / 4 40
  205.  
  206. FILTER SLATE 3
  207.  0  0 -4
  208.  0  8  0
  209. -4  0  0
  210. * 1 40
  211.  
  212. FILTER SOLAR 3
  213. -8  0  4
  214. -8  0  4
  215. -8  0  4
  216. / -12 60
  217.  
  218. FILTER SOLAR2 3
  219.  0   8 0
  220.  8 200 8
  221.  0   8 0
  222. / 224 80
  223.  
  224. FILTER STONE 3
  225. -4 -4 -4
  226.  0  0  0
  227.  4  4  4
  228. * 1 80
  229.  
  230. FILTER STONE2 3
  231.  4  0 -4
  232.  4  0 -4
  233.  4  0 -4
  234. * 1 84
  235.  
  236. FILTER STONE3 3
  237.   0 -20  0
  238. -20   0 20
  239.   0  20  0
  240. * 1 100
  241.  
  242. FILTER TEXTURIZE 3
  243.  0 -48   0
  244. 80  16 -40
  245.  0  20   0
  246. * 28
  247.  
  248. FILTER UNFOCUS 3
  249.  4  4  4
  250.  4  0  4
  251.  4  4  4
  252. / 32
  253.  
  254. ; █████████████████████████████████████████████████████████████████████████████
  255. ;
  256. ;                               5x5 filters           
  257. ;
  258. ; █████████████████████████████████████████████████████████████████████████████
  259.  
  260. FILTER LAPLAS5 5         ; Laplacian all-direction edge detector
  261. -1 -1 -1 -1 -1
  262. -1 -1 -1 -1 -1
  263. -1 -1 24 -1 -1
  264. -1 -1 -1 -1 -1
  265. -1 -1 -1 -1 -1
  266.  
  267. FILTER UP_RIGHT_EDGE5 5  ; Edge detection in the (/) direction (DOWN_DEFT_EDGE)
  268. -1 0 0 0 0
  269.  0 0 0 0 0
  270.  0 0 0 0 0
  271.  0 0 0 0 0
  272.  0 0 0 0 1
  273. * 1
  274.  
  275. FILTER DOWN_LEFT_EDGE5 5 ; Edge detection in the (/) direction (UP_RIGHT_EDGE)
  276.  1 0 0 0  0
  277.  0 0 0 0  0
  278.  0 0 0 0  0
  279.  0 0 0 0  0
  280.  0 0 0 0 -1
  281. * 1
  282.  
  283. FILTER UP_LEFT_EDGE5 5   ; Edge detection in the (\) direction (DOWN_RIGHT_EDGE)
  284.  0 0 0 0 -1
  285.  0 0 0 0  0
  286.  0 0 0 0  0
  287.  0 0 0 0  0
  288.  1 0 0 0  0
  289. * 1
  290.  
  291. FILTER DOWN_RIGHT_EDGE5 5 ; Edge detection in the (\) direction (UP_LEFT_EDGE)
  292.  0 0 0 0 1
  293.  0 0 0 0 0
  294.  0 0 0 0 0
  295.  0 0 0 0 0
  296. -1 0 0 0 0
  297. * 1
  298.  
  299. FILTER HORIZ5 5          ; Horizontal edge detection
  300.  1  1  1  1  1
  301.  0  0  0  0  0
  302.  0  0  0  0  0
  303.  0  0  0  0  0
  304. -1 -1 -1 -1 -1
  305. * 1
  306.  
  307. FILTER VERT5 5           ; Vertical edge detection
  308. -1 0 0 0 1
  309. -1 0 0 0 1
  310. -1 0 0 0 1
  311. -1 0 0 0 1
  312. -1 0 0 0 1
  313. * 1
  314.  
  315. FILTER AVERAGE5 5        ; Averaging filter (same as Low-Pass)
  316. 1 1 1 1 1
  317. 1 1 1 1 1
  318. 1 1 1 1 1
  319. 1 1 1 1 1
  320. 1 1 1 1 1
  321. / 25
  322.  
  323. FILTER LOWPASS5 5        ; Low-Pass filter (same as Average)
  324. 1 1 1 1 1
  325. 1 1 1 1 1
  326. 1 1 1 1 1
  327. 1 1 1 1 1
  328. 1 1 1 1 1
  329. / 25
  330.  
  331. FILTER MEDIAN5 5         ; Median soften filter
  332. 1 1 1 1 1
  333. 1 1 1 1 1
  334. 1 1 1 1 1
  335. 1 1 1 1 1
  336. 1 1 1 1 1
  337. M 0 0
  338.  
  339. FILTER SOFTEN5 5         ; Soften filter softens edges
  340. 1 1 1 1 1
  341. 1 1 1 1 1
  342. 1 1 0 1 1
  343. 1 1 1 1 1
  344. 1 1 1 1 1
  345. / 24
  346.  
  347. FILTER BLUR5 5           ; Blur filter
  348. 1 1 2 1 1
  349. 1 1 2 1 1
  350. 2 2 2 2 2
  351. 1 1 2 1 1
  352. 1 1 2 1 1
  353. / 32
  354.  
  355. FILTER LOW_WASH5 5       ; Blurs and tries to simulate "camera white-wash"
  356. 1 1 1 1 1
  357. 1 1 1 1 1
  358. 1 1 1 1 1
  359. 1 1 1 1 1
  360. 1 1 1 1 1
  361. / 11
  362.  
  363. FILTER MED_WASH5 5       ; Blurs and tries to simulate "camera white-wash"
  364. 1 1 1 1 1
  365. 1 1 1 1 1
  366. 1 1 1 1 1
  367. 1 1 1 1 1
  368. 1 1 1 1 1
  369. / 8
  370.  
  371. FILTER HIGH_WASH5 5      ; Blurs and tries to simulate "camera white-wash"
  372. 1 1 1 1 1
  373. 1 1 1 1 1
  374. 1 1 1 1 1
  375. 1 1 1 1 1
  376. 1 1 1 1 1
  377. / 5
  378.  
  379. FILTER OUTLINE_BLUR5 5   ; Another cool blur
  380. 1 1  1 1 1
  381. 1 1  1 1 1
  382. 1 1 -5 1 1
  383. 1 1  1 1 1
  384. 1 1  1 1 1
  385. / 14
  386.  
  387. FILTER DIALATE5 5        ; Color dialate filter
  388. 1 1 1 1 1
  389. 1 1 1 1 1
  390. 1 1 1 1 1
  391. 1 1 1 1 1
  392. 1 1 1 1 1
  393. > 0 0
  394.  
  395. FILTER ERODE5 5          ; Color erosion filter
  396. 1 1 1 1 1
  397. 1 1 1 1 1
  398. 1 1 1 1 1
  399. 1 1 1 1 1
  400. 1 1 1 1 1
  401. < 0 0
  402.  
  403. FILTER HFB5 5            ; High Frequency Boost
  404. -1 -1 -1 -1 -1
  405. -1 -1 -1 -1 -1
  406. -1 -1 25 -1 -1
  407. -1 -1 -1 -1 -1
  408. -1 -1 -1 -1 -1
  409. * 1
  410.  
  411. FILTER SHARPEN5 5        ; Sharpen (traditional)
  412. -1 -1 -1 -1 -1
  413. -1 -1 -1 -1 -1
  414. -1 -1 29 -1 -1
  415. -1 -1 -1 -1 -1
  416. -1 -1 -1 -1 -1
  417. / 4
  418.  
  419. FILTER SHARPEN25 5       ; Sharpen (modern)
  420.  0  0 -1  0  0
  421.  0  0 -1  0  0
  422. -1 -1  9 -1 -1
  423.  0  0 -1  0  0
  424.  0  0 -1  0  0
  425. * 1 
  426.                   
  427. FILTER EMBOSS_UL5 5      ; Projects the image into sand (upper left)
  428. -1 0 0 0 0
  429.  0 0 0 0 0
  430.  0 0 0 0 0
  431.  0 0 0 0 0
  432.  0 0 0 0 1
  433. * 1 128
  434.  
  435. FILTER EMBOSS_LR5 5      ; Projects the image into sand (lower right)
  436.  1 0 0 0  0
  437.  0 0 0 0  0
  438.  0 0 0 0  0
  439.  0 0 0 0  0
  440.  0 0 0 0 -1
  441. * 1 128
  442.  
  443. FILTER EMBOSS_LL5 5      ; Projects the image into sand (lower left)
  444.  0 0 0 0 1
  445.  0 0 0 0 0
  446.  0 0 0 0 0
  447.  0 0 0 0 0
  448. -1 0 0 0 0
  449. * 1 128
  450.  
  451. FILTER EMBOSS_UR5 5      ; Projects the image into sand (upper right)
  452.  0 0 0 0 -1
  453.  0 0 0 0  0
  454.  0 0 0 0  0
  455.  0 0 0 0  0
  456.  1 0 0 0  0
  457. * 1 128
  458.  
  459. FILTER BLAST 5
  460.  0  -8  -8  -8   0
  461.  0   0   0   0   0
  462.  0   0  48   0   0
  463.  0   0   0   0   0
  464.  0  -8  -8  -8   0
  465. * 1
  466.  
  467. FILTER BURLAP 5
  468.  0   0   4   0   0
  469.  0   0   0   0   0
  470.  4   0   0   0   4
  471.  0   0   0   0   0
  472.  0   0   4   0   0
  473. / 16
  474.  
  475. FILTER DEMON 5
  476.  0   0   0   0  -4
  477.  0   0   0 -12   0
  478.  0   0   0   0   0
  479.  0   4   0   0   0
  480. 12   0   0   0   0
  481. * 1
  482.  
  483. FILTER DEMON2 5
  484.  0   0   8   8   8
  485.  0   0   0   0   8
  486. -8   0   0   0   8
  487. -8   0   0   0   0
  488. -8  -8  -8   0   0
  489. * 1
  490.  
  491. FILTER DOUBLE_EDGE 5
  492.  0  -8   0  -8   0
  493. -8   8   0   8  -8
  494.  0   0   8   0   0
  495. -8   8   0   8  -8
  496.  0  -8   0  -8   0
  497. / -24
  498.  
  499. FILTER ECLIPSE 5
  500.  8   0   0   0   0
  501.  0  -4   0   0   0
  502.  0   0  16   0   0
  503.  0   0   0   4   0
  504.  0   0   0   0  -8
  505. / 16 -68
  506.  
  507. FILTER HAZE 5
  508. -20  0   0   0 -20
  509.   0 -4   0  -4   0
  510.   0  0 -40   0   0
  511.   0 -4   0  -4   0
  512. -20  0   0   0 -20
  513. / -136
  514.  
  515. FILTER MOTION 5
  516.  8   0   0   0   4
  517.  0   0   0   0   0
  518.  0   0   0   0   0
  519.  0   0   0   0   0
  520.  4   0   0   0   8
  521. / 24
  522.  
  523. FILTER MOTION2 5
  524. 12   0   0