inserting shape into image and cropping accordingly.

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 日

0 投票

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 .

サインインしてコメントする。

カテゴリ

質問済み:

2015 年 10 月 1 日

コメント済み:

2015 年 10 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by