How do I rotate each block of image to be perpendicular to x-axis?
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Show older comments
0 votes
For each block of a fingerprint image, the local orientation is measured. I tried to rotate gradients by their mean orientation but it looks same as gradients and not perpendicular to x-axis.
Accepted Answer
Image Analyst
on 11 Mar 2014
0 votes
You could use imrotate() on the block, or use various combinations of transpose (the ' operator), flipud(), and fliplr().
8 Comments
Klara
on 11 Mar 2014
What if I don't have image processing toolbox?
Image Analyst
on 11 Mar 2014
transpose and flip functions are in Base MATLAB so you have them.
Klara
on 12 Mar 2014
Thanks. How to get ensure that after rotation, it's angle to the x-axis is 90 degree?
Image Analyst
on 12 Mar 2014
What's angle? The block will always have sides at 0 and 90 since it's rectangular. And some arbitrary fingerprint ridges inside the block will have gradient vectors at a bunch of arbitrary angles.
Because its asked to Rotate the block such that the dominant ridge flow is perpendicular to the x-axis. Is there any formula to rotate each block in this way?
Image Analyst
on 13 Mar 2014
You didn't say that before. First you need to determine the dominant ridge flow angle somehow (think up some method or follow a paper that describes it), then use imrotate with that angle.
Thanks. Reminding that I don't have Image Processing Toolbox, then is is possible to rotate it based on Rotation matrix?
Image Analyst
on 13 Mar 2014
Yes.
More Answers (0)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Products
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)