How to copy one rgb image to another?

1 visualización (últimos 30 días)
Ashwathy Dev
Ashwathy Dev el 4 de Feb. de 2015
Comentada: Ashwathy Dev el 4 de Feb. de 2015
How to copy the rgb image inside yellow rectangle to a blank rgb image? I know the coordinates of the rectangle.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 4 de Feb. de 2015
you can extract your image im
a=im(x0:x1,y0:y1,:)
  3 comentarios
Guillaume
Guillaume el 4 de Feb. de 2015
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 el 4 de Feb. de 2015
Thank a lot ............... :)))))) it workeddddddddddddd

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by