Create patches in an image

1 次查看(过去 30 天)
Fodio Longman
Fodio Longman 2017-5-8
Hello, I have an image of size 223x302x3 uint8. I want to divide the image into 20 equal patches and also get the centre pixel of each of these patch. can someone please help me.
many thanks
  2 个评论
Stephen23
Stephen23 2017-5-8
Use blockproc and indexing, or just indexing, depending on whichever you feel most comfortable with.
Matthew Eicholtz
Matthew Eicholtz 2017-5-8
I'm confused by the phrase "20 equal patches"; can you clarify? It is impossible to divide a 223-by-302 image into 20 patches with an equal number of pixels in each patch.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Polygons 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by