How to crop the image within certain limits?

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

1 Comment

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?

Sign in to comment.

Answers (1)

KSSV
KSSV on 5 Nov 2022
Edited: KSSV on 5 Nov 2022
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.

Categories

Find more on Images in Help Center and File Exchange

Tags

Asked:

on 5 Nov 2022

Commented:

DGM
on 5 Nov 2022

Community Treasure Hunt

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

Start Hunting!