How to crop the image within certain limits?

I have the picture :
and i want crop it like this (in certain values):
thanks!

1 comentario

DGM
DGM el 5 de Nov. de 2022
You say you want to crop "in certain values". Does that mean that you want to select the cropped region based on array values? If so, then is the actual data an mxnx3 RGB image, or are you dealing with a pseudocolor representation of a mxnx1 array? In other words, what values are you using to determine the output? Is it some color in 3D RGB space, or is it some value in a 1D data space?

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 5 de Nov. de 2022
Editada: KSSV el 5 de Nov. de 2022

1 voto

Read about imfreehand, Freehand.
If you know thoese certain values. Use contour to get the closed region of the required region of interest. Then use inpolygon to extract your required region.

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 5 de Nov. de 2022

Comentada:

DGM
el 5 de Nov. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by