How to divide an image into different shapes?

2 Ansichten (letzte 30 Tage)
Richa Sarmah
Richa Sarmah am 7 Nov. 2019
Bearbeitet: KSSV am 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 Kommentare
Richa Sarmah
Richa Sarmah am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 8 Nov. 2019
Bearbeitet: KSSV am 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.

Kategorien

Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by