how can I deskew this image ?

3 visualizaciones (últimos 30 días)
Israa Alqaraleh
Israa Alqaraleh el 26 de Jun. de 2017
Respondida: Shlok el 16 de Sept. de 2024

Respuestas (1)

Shlok
Shlok el 16 de Sept. de 2024
Hi Israa,
To de-skew the given image in MATLAB, you can start by loading the image and then converting it to grayscale, using “rgb2gray” function, if needed. You might then apply an edge detection technique to highlight key features. This can be done using edge function.
From there, a transformation approach, such as the Hough Transform, can be used to identify angles or lines that will help determine the skew. To learn more about the “hough” function and how to use it, you can check the following documentation link:
Once you have calculated the skew angle, you can rotate the image to adjust and correct it using theimrotate” function. This will help you obtain a de-skewed image. You can make further fine-tuning adjustments as needed to achieve the desired result.
For more information about the functions mentioned above, you can refer to the following documentation links:
Hope this helps.

Community Treasure Hunt

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

Start Hunting!

Translated by