How to divide an image into different shapes?

조회 수: 2 (최근 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 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