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 件のコメント

Jan
Jan 2013 年 3 月 12 日
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
Jan
Jan 2013 年 3 月 12 日
And decide of the length of the summation
Jan
Jan 2013 年 3 月 12 日
Sorry for my two previous messages I see how I can make it work with the radon function.
Thanks a lot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

質問済み:

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