How to divide an image into different shapes?

1 visualización (últimos 30 días)
Richa Sarmah
Richa Sarmah el 7 de Nov. de 2019
Editada: KSSV el 8 de Nov. de 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 comentarios
Richa Sarmah
Richa Sarmah el 8 de Nov. de 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.

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 8 de Nov. de 2019
Editada: KSSV el 8 de Nov. de 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.

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by