How to crop the image within certain limits?

2 views (last 30 days)
yael
yael on 5 Nov 2022
Commented: DGM on 5 Nov 2022
I have the picture :
and i want crop it like this (in certain values):
thanks!
  1 Comment
DGM
DGM on 5 Nov 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?

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.

Tags

Community Treasure Hunt

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

Start Hunting!