Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.4K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

What would the right approach to perform a 2D discrete convolution for this problem ?

Posted 1 year ago
POSTED BY: Ishan Nande
2 Replies

It seems that you are attempting a continuous convolution, not a discrete one. For lack of an NConvolve, you may try something like this:

cnvlv[x_?NumericQ, y_?NumericQ] :=
  NIntegrate[f[\[Xi], \[Eta]] DiffG[x - \[Xi], y - \[Eta]],
   {\[Xi], -Infinity, Infinity},
   {\[Eta], -Infinity, Infinity}];
cnvlv[5, 1]
POSTED BY: Gianluca Gorni

You are not talking about the discrete convolution. In Mathematica the discrete convolution is performed by ListConvolve.

You might try to tabulate your functions over some discrete x / y region an then in deed perform a discrete convolution via ListConvolve.

POSTED BY: Robert Nowak
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard