How to copy the rgb image inside yellow rectangle to a blank rgb image? I know the coordinates of the rectangle.

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 4 Feb. 2015

0 Stimmen

you can extract your image im
a=im(x0:x1,y0:y1,:)

3 Kommentare

Ashwathy Dev
Ashwathy Dev am 4 Feb. 2015
can you explain?
Assuming that x is the horizontal coordinate, and y is the vertical coordinate with (1,1) top left corner, then it should be:
a = im(y0:y1, x0:x1, :); %matlab uses row/column coordinate system
Ashwathy, this is basic matrix manipulation. What don't you understand?
Ashwathy Dev
Ashwathy Dev am 4 Feb. 2015
Thank a lot ............... :)))))) it workeddddddddddddd

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by