How to divide an image into different shapes?

2 次查看(过去 30 天)
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
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 CenterFile Exchange 中查找有关 Read, 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