How to know the original coordinates of cropped images
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
a=imread ('a.jpg');
imshow(a)
[acrop,rect]=imcrop(a);
The question is why rect should be in decimal (rect=[98.5 88.5 87 70] in my case) if it is the coordinate vector?
0 comentarios
Respuesta aceptada
Walter Roberson
el 22 de Nov. de 2011
The coordinate system for image() (which is called by imshow()) is for the center of the pixels, so when you crop at a pixel boundary, the coordinate for that is going to be between two integers.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Geometric Transformation and Image Registration 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!