MATLAB Answers

How to divide an image into different shapes?

조회 수: 2(최근 30일)
Richa Sarmah
Richa Sarmah 7 Nov 2019
Edited: KSSV 8 Nov 2019
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

KALYAN ACHARJYA
KALYAN ACHARJYA 7 Nov 2019
Can you elaborate please? You can use paint tool to show us any examples.
Richa Sarmah
Richa Sarmah 8 Nov 2019
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.

로그인 to comment.

답변 수 (1)

KSSV
KSSV 8 Nov 2019
KSSV 님이 편집함. 8 Nov 2019
doc imcrop
doc impoly
doc imfreehand
YOu can also define your locations in the shape you want......use inpoly and pick only inside pixels.

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그


Translated by