grayscale image into matrix

hello sir,
am on a project, for which i need to convert a image into gray scale and access the matrix of each block , how will i get those matrix

7 件のコメント

Rik
Rik 2019 年 8 月 26 日
Images in Matlab are already matrices. What do you mean with block? Does that definition match the one in the blockproc function?
Rik
Rik 2019 年 8 月 26 日
Comment posted as answer by Swathi D:
not actually a blockproc, certain part of my image has blocks and i want to know the matrix of that block
Rik
Rik 2019 年 8 月 26 日
It is not clear what you mean. Can you provide an example input and output?
Swathi D
Swathi D 2019 年 8 月 26 日
consider this as my image can i get the matrix of the blocks within the image
block.jpg
Rik
Rik 2019 年 8 月 26 日
Does the rectangle with rounded count as a block? Can you count on sharp corners? Does the outer rectangle count as a separate object?
You can probably use bwlabel and loop through the objects to determine if they fit your requirements.
Swathi D
Swathi D 2019 年 8 月 26 日
yup those are counted as blocks
thank you
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 8 月 26 日
編集済み: KALYAN ACHARJYA 2019 年 8 月 26 日
Can you share the real image, with mentioning the target regions?

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

回答 (0 件)

質問済み:

2019 年 8 月 26 日

編集済み:

2019 年 8 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by