How to divide an image into different shapes?

1 回表示 (過去 30 日間)
Richa Sarmah
Richa Sarmah 2019 年 11 月 7 日
編集済み: KSSV 2019 年 11 月 8 日
I have imported a jpg file to MATLAB using function imread and now i want to cut that image into different shapes defined by user. How can i do that in MATLAB?
  3 件のコメント
Richa Sarmah
Richa Sarmah 2019 年 11 月 8 日
Untitled with cutout.png
Richa Sarmah
Richa Sarmah 2019 年 11 月 8 日
As shown in the above figure, I imported an image shape to matlab and then want to make cavity at that background. Here, the shape and dimensions of that cavity must be user defined.

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

回答 (1 件)

KSSV
KSSV 2019 年 11 月 8 日
編集済み: KSSV 2019 年 11 月 8 日
doc imcrop
doc impoly
doc imfreehand
YOu can also define your locations in the shape you want......use inpoly and pick only inside pixels.

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by