inserting shape into image and cropping accordingly.
1 回表示 (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
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.
参考
カテゴリ
Help Center および File Exchange で Create Block Masks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!