radial mask of 30 degree with 15% data

1 回表示 (過去 30 日間)
Abhishek sadasivan
Abhishek sadasivan 2014 年 6 月 21 日
コメント済み: Abhishek sadasivan 2014 年 6 月 22 日
I have attached a figure .I would like to make a mask of same kind using matlab .The lines are 10 degree apart and the maximum number of non zero elements(ones) should be less than 2457( 15% of a 128*128 image).Could any one help me out..Pls

採用された回答

Image Analyst
Image Analyst 2014 年 6 月 21 日
See my attached demo for burning a line into an image. So just call imline() a bunch of times with different starting and ending points. Of course you need to have some kind of recipe for saying where the lines start and end. I think that you should easily be able to do that with simple trig functions like cosd() and sind() and knowledge of where the lines emanate from (which can be off the image). Give it a try and let us know if you can't figure it out. By the way, is this a homework assignment?
  1 件のコメント
Abhishek sadasivan
Abhishek sadasivan 2014 年 6 月 22 日
I am new to matlab and this seems to very helpful..thank you for the details...

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by