Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Image Processing: Reshape an Oblique Rectangle to a Regular Rectangle
I am trying to take an image taken at any angle and reshape it to be a "Perfect" rectangle.
![](/matlabcentral/answers/uploaded_files/98251/IMG_0604.jpg)
I have Threshold the image to binary so that it might be easier to work with.
![](/matlabcentral/answers/uploaded_files/98252/bw2.png)
I then also found the boundaries as well as a mask to remove the background from the paper.
![](/matlabcentral/answers/uploaded_files/98253/boundary.png)
My question is what would be the best way to reorient the rectangle to appear "straight vertical/horizontal"? Since I will be using different sets of images I'd preferably like to automate this process. I thought of finding the corners and then using those to somehow resize the image but am having a hard time finding them currently. Any help, such as tips or paths to follow, would be greatly appreciated.
Thanks
0 comentarios
Respuestas (0)
La pregunta está cerrada.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!