Convolution from bottom right

2 次查看(过去 30 天)
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.

采纳的回答

Image Analyst
Image Analyst 2014-5-13
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 个评论
Image Analyst
Image Analyst 2014-5-14
编辑:Image Analyst 2014-5-14
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 2014-5-14
Seems to make sense, I will give it a try.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by