Need to get the pixel values based on the directions(North, South,East,West) in to four arrays

1 回表示 (過去 30 日間)
I need to get the circled values into 4 arrays(considering the four directions). note : I obtained the pixel values in image which is attached herewith, by multiplying the mask value and original image pixels. Could you please help me.

回答 (1 件)

Chad Greene
Chad Greene 2017 年 2 月 18 日
Your question is not very clear. If I am interpreting your question correctly,
Awest = A(3:8,4);
Anorth = A(3,5:8);
Aeast = A(4:7,8);
Asouth = A(8,5:8);
  2 件のコメント
Image Analyst
Image Analyst 2017 年 2 月 19 日
I was going to say the same thing. Given what he's told us, this is a perfectly reasonable answer. If not, he needs to say why not and what is needed to make it more general or whatever.
Piyum Rangana
Piyum Rangana 2017 年 2 月 19 日
Hi,Chad and Image Analyst, sorry for the lack of details given for my question. Actually the circled pixel values are the boundary value of a damaged area of an digital image. Really what I want is, to get the pixel values of four directions(north, east, west and north) separately in to the four arrays. Actually the attached image just for an example. I really appreciate your response and I did not understand the values obtained to the answer above. Think that u can understand my problem now.

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

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by