insert circle values in 512x512 matrix
조회 수: 4 (최근 30일)
이전 댓글 표시
I need create a 512x512 matrix, with the border parts geting the 0 value and the central part of matrix geting 1 value. The goal is create a mask of an image. How I solve this problem?
댓글 수: 0
답변 (1개)
Walter Roberson
2019년 11월 24일
편집: Walter Roberson
2019년 11월 24일
M = ones(512,512);
M([1 end], :) = 0;
M(:, [1 end]) = 0;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!