how can i get the original position of a cropped image? from a webcam input
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
vikf
el 19 de Oct. de 2014
Respondida: Image Analyst
el 19 de Oct. de 2014
[I]= imcrop(hImage);
imshow(I,'Parent', handles.pic1);
I2= imcrop(hImage); imshow(I2,'Parent', handles.pic2);
for example , here is the code with which i crop the images manually and show them in different axes. How can i show under the axes the position coordinates where the cropped images come from?
Thanks for the answers!
0 comentarios
Respuesta aceptada
Image Analyst
el 19 de Oct. de 2014
Did you look at the documentation for imcrop? Look at this way of calling it:
[croppedImage, rect] = imcrop(hImage);
rect has the coordinates from the original image. That's what you want.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing and Computer Vision en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!