Is there a function to sum matrix elements along an arbitrary direction?

Hi
I would like to know if there is a Matlab build-in function that calculates the sum of elements along a direction that is not vertical or horizontal.
Something like output_matrix=sumdir(input_matrix, phi, length)
I couldn't find anything on the matlab help so I would appreciate your help.
Thanks a lot
Jan

 채택된 답변

Matt J
Matt J 2013년 3월 12일
편집: Matt J 2013년 3월 12일

0 개 추천

The RADON function, if you have the Image Processing Toolbox.

댓글 수: 3

I thought of this function but is says that:
"The Radon transform is the projection of the image intensity along a radial line oriented at a specific angle."
I don't want to make a projection of the whole image, I just want to sum along one direction
And decide of the length of the summation
Sorry for my two previous messages I see how I can make it work with the radon function.
Thanks a lot

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

질문:

Jan
2013년 3월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by