Image convolution: Difference between revisions

Content added Content deleted
Line 622: Line 622:




This code assumes that the leading dimensions of the array represent pixels and any trailing dimensions represent structure to be preserved (this is a fairly common approach and matches the J implementation at [[Basic bitmap storage]]).
This code assumes that the leading dimensions of the array represent pixels and any trailing dimensions represent structure to be preserved (this is a fairly common approach and matches the J implementation at [[Basic bitmap storage]]). Note also that we assume that the image is larger than a single pixel in both directions.


Example use:
Example use: