ListConvolve Padding Q?
- To: mathgroup at smc.vnet.net
- Subject: [mg42492] ListConvolve Padding Q?
- From: markhahn2000 at yahoo.com (mark)
- Date: Fri, 11 Jul 2003 02:57:53 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
If I have an nxm list/matrix and want to do a ListConvolve on it I will either lose (k-1)/2 rows and columns for a kxk convolution kernal unless I use some padding. How can I mirror (k-1)/2 rows and columns around my original matrix to get the same size matrix after list conolving? The work around I have used is to just manipulate the input matrix using the `MatrixManipulation` package functions (which unfortunately are limited to only nxm sized matrices and not nxmxz sized matrices... but I would much prefer if I could just write it into the ListConvolve function using some trick mapping or something. thanks, mark