How to rotate back a streched image?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Steven
el 13 de Mzo. de 2014
I have an image which is stretched in one direction. How can I turn it back to normal plane, so it becomes again a circle? I know about the scaling and calibration in both directions. Suppose that the pixel size in left-to-right direction is two times the one in up-to-down direction.
Thanks so much.
Steven
0 comentarios
Respuesta aceptada
Image Analyst
el 13 de Mzo. de 2014
Editada: Alex Taylor
el 13 de Mzo. de 2014
[rows, columns, numberOfColorChannels] = size(originalImage);
scaledImage = imresize(originalImage, [rows, int32(columns/2)]);
4 comentarios
Image Analyst
el 14 de Mzo. de 2014
No, it probably won't. Once you've segmented the image into circle and non-circle (foreground and background) actually whitening or blackening is unnecessary. Just use the binary image in regionprops() - no whitening of background is needed to make any measurements.
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.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!