Filter löschen
Filter löschen

Should the discrete 2D convolution from MATLAB be multiplied with twice the nodal step size ?

2 Ansichten (letzte 30 Tage)
I am right now trying to verify the usage of "conv2" function in MATLAB to calculate two-dimensional convolution. My application area is not related to image processing or machine learning.
I set up a small test case where I have convolved two 2D Gaussian functions of different magnitudes. The convolution should be a Gaussian and it is what MATLAB generates.
I have discretized the nodal spacing with a value of "delta" in X and Y directions. Am I correct when I say that the final output of "conv2" should always be multiplied by "delta * delta" ? I am understanding this in terms of Riemann integral where the integration is calculated from first principles. Not sure if this is the correct way to think.
My test case's results are matching with the symbolic result from MATHEMATICA but, after the output of "conv2" is multiplied by "delta*delta".

Akzeptierte Antwort

Matt J
Matt J am 10 Mai 2024
Yes, that is correct.

Weitere Antworten (0)

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by