How to resize binary matrix

조회 수: 3 (최근 30일)
Ronald Smith
Ronald Smith 2019년 12월 12일
댓글: Ronald Smith 2019년 12월 12일
If there is a n x m binary matix with multiple blobs, how do I resize the blobs while still remaining a n x m matrix and such that every individual resized blob's center is at the same pixel location of its previous original sized blob's center?
  댓글 수: 8
Walter Roberson
Walter Roberson 2019년 12월 12일
figuring out the maximum expansion before merging would happen is a bit complicated -- unless, that is, you are willing to restrict so you would stop expanding as soon as the first merger would happen, with each blob growing by the same rate; the complicated part would be if each blob was to grow independently as much as possible without merging.
Ronald Smith
Ronald Smith 2019년 12월 12일
Oh no I would actually want all of them to grow or shrink at the same rate at all times either way

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by