Convolution from bottom right

조회 수: 2 (최근 30일)
Sepp
Sepp 2014년 5월 13일
댓글: Sepp 2014년 5월 14일
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
Sara
Sara 2014년 5월 13일
what about flipping the matrix before the convolution?

댓글을 달려면 로그인하십시오.

채택된 답변

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