how to extract some pixels with cordinates from original image?

i have two arrayes from x and y cordinates of particular pixels. i want to crop a region of original image with these two arrayes.(I is my original img and I1 is my img that i want this pixels crop from I);
[row col]=find(I1==1);

2 Comments

I don't understand your question. A crop region is typically represented by only two points: the opposite corners of the rectangle to crop, not an array of pixel.
Or are you trying to find the smallest rectangle that will encompass all these pixels?
thakn you for the response i want to extract a Special part of original img that i have its cordinate.(first i labeled the original image and then Calculate the area of the object , now i need to have just two object that have max area.)

Answers (0)

This question is closed.

Asked:

on 7 Dec 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!