Image convolution: Difference between revisions

m
m (J: fix comment to match new behavior)
Line 611:
 
<lang J>NB. pad the edges of an array with border pixels
NB. (increasing allthe first two dimensions by 1 less than the kernel size)
pad=:adverb define
'a b'=. (<.,.>.) 0.5 0.5 p. $m
6,951

edits