inserting shape into image and cropping accordingly.

조회 수: 1 (최근 30일)
yogesh jain
yogesh jain 2015년 10월 1일
댓글: yogesh jain 2015년 10월 5일
hello all , I want to ask that how to introduce or place different shapes in an image (such as- circle , triangle , rectangle etc.) and crop the image as per them (like - circular , triangular and rectangular cropping) . thank you.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 10월 1일
You cannot do that. MATLAB only supports rectangular (well, hyperdimensional cuboid) arrays. You cannot end up with, for example, a circular array.
The closest you can get is to crop at the bounding box of the shape.
  댓글 수: 1
yogesh jain
yogesh jain 2015년 10월 5일
it is possible by introducing a mask of particular shape and filtering image through it .

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

카테고리

Help CenterFile Exchange에서 Create Block Masks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by