Convolution from bottom right

1 vue (au cours des 30 derniers jours)
Sepp
Sepp le 13 Mai 2014
Commenté : Sepp le 14 Mai 2014
Hi all
I want to do a convolution from the bottom right and not as usual from the top left. I think conv2 of Matlab only does from the top left.
How can I do a convolution in Matlab from the bottom right?
Thank you very much for the answers.
  1 commentaire
Sara
Sara le 13 Mai 2014
what about flipping the matrix before the convolution?

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 13 Mai 2014
After it's done it makes absolutely no difference. There is no need whatsoever to do what you're asking. Unless you're wanting to not flip the kernel. In that case use imfilter(), but it almost certainly starts at row #1 like conv2(), the only difference is it doesn't flip the kernel.
  5 commentaires
Image Analyst
Image Analyst le 14 Mai 2014
Modifié(e) : Image Analyst le 14 Mai 2014
You'd just make a larger kernel with zeros:
1 2 3 0 0 0 0
4 5 6 0 0 0 0
7 8 9 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
or maybe
1 2 3 0 0
4 5 6 0 0
7 8 9 0 0
0 0 0 0 0
0 0 0 0 0
Sepp
Sepp le 14 Mai 2014
Seems to make sense, I will give it a try.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by