N fx:
5
 0
208
512
4
0
400
3500
2
-1
0
0
0
0
 1
600
544
0
0
0
0
0
0
0
0
0
0
 47
464
464
2
1
-1
0
50
1
0
0
0
0
 7
336
512
11
50
50
50
0
0
0
0
0
0
 259
464
544
' AFTER EDIT DO SAVE PROJECT BEFORE RUN %vbCr%%vbLf%' MAINTAIN the Strucure and edit mainly only inside '***'%vbCr%%vbLf%' 3 Inputs are  INP1() INP2() INP3() Arrays%vbCr%%vbLf%' 3 Outputs are OUT1() OUT2() OUT3() Arrays%vbCr%%vbLf%%vbCr%%vbLf%' You can use custom parameter P1 to P5%vbCr%%vbLf%%vbCr%%vbLf%%vbCr%%vbLf%' --- Absolutely Don't touch code from Here%vbCr%%vbLf%%vbCr%%vbLf%Sub Process(W%comma% H%comma% INP1%comma% INP2%comma% INP3%comma% OUT1%comma% OUT2%comma% OUT3%comma% P1%comma% P2%comma% P3%comma% P4%comma% P5)%vbCr%%vbLf%Dim X %vbCr%%vbLf%Dim Y %vbCr%%vbLf%ReDim OUT1(W%comma% H)%vbCr%%vbLf%ReDim OUT2(W%comma% H)%vbCr%%vbLf%ReDim OUT3(W%comma% H)%vbCr%%vbLf%%vbCr%%vbLf%' --- TO HERE%vbCr%%vbLf%%vbCr%%vbLf%%vbCr%%vbLf%For X = 0 To W%vbCr%%vbLf%       For Y = 0 To H%vbCr%%vbLf%'      *** Your Main Code Here -----------%vbCr%%vbLf%%vbCr%%vbLf%%vbCr%%vbLf%If Abs(INP1(X%comma% Y) - INP2(X%comma%Y)) * 255 > P1 THEN%vbCr%%vbLf%%vbCr%%vbLf%       OUT1(X%comma% Y) = INP1(X%comma% Y)  ' Median%vbCr%%vbLf%       OUT2(X%comma% Y) = INP1(X%comma% Y)  %vbCr%%vbLf%       OUT3(X%comma% Y) = INP1(X%comma% Y)  %vbCr%%vbLf%ELSE%vbCr%%vbLf%       OUT1(X%comma% Y) = INP2(X%comma% Y)  ' Source%vbCr%%vbLf%       OUT2(X%comma% Y) = INP2(X%comma% Y)  %vbCr%%vbLf%       OUT3(X%comma% Y) = INP2(X%comma% Y)  %vbCr%%vbLf%%vbCr%%vbLf%END IF%vbCr%%vbLf%%vbCr%%vbLf%%vbCr%%vbLf%%vbCr%%vbLf%'       ***-------------------------------%vbCr%%vbLf%       Next%vbCr%%vbLf%Next%vbCr%%vbLf%%vbCr%%vbLf%End Sub%vbCr%%vbLf%
30
0
0
0
0
0
0
0
0
Nlinks
10
-
1
1
-
0
3
-
2
2
-
0
3
-
3
3
-
0
3
-
1
1
-
3
2
-
1
1
-
4
1
-
2
2
-
4
1
-
3
3
-
4
1
-
1
1
-
2
4
-
2
1
-
3
4
-
3
1
-
3
4
EXTRA
0.3.3044
DustAndScratches.txt
reference https://www.cnblogs.com/Imageshop/p/11087804.html

X
X
X
X
