필터 지우기
필터 지우기

Merging a mask into a larger matrix

조회 수: 2 (최근 30일)
Surya Gnyawali
Surya Gnyawali 2011년 10월 27일
I have a 2D binary mask of size 200x200. I want to merge this mask into a matrix of size 775x640.
  댓글 수: 1
Doug Hull
Doug Hull 2011년 10월 27일
What does it mean to merge these masks?

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

답변 (1개)

Walter Roberson
Walter Roberson 2011년 10월 27일
Matrix(J:J+199,K:K+199) = Mask;
Or possibly you mean something like
Matrix(J:J+199,K:K+199) = Matrix(J:J+199,K:K+199) .* Mask;

태그

Community Treasure Hunt

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

Start Hunting!

Translated by