官术网_书友最值得收藏!

Applying geometric transformations

By now you have already mastered how to open an image and display it as it is using the Command Window. Now, it is time to learn how to apply basic geometric transformations to an image and display them along with the original. Geometric transformations are probably the most common functionalities of every image editor, no matter how basic it is. They do not generally alter the content of an image, but actually change the grid of pixels so that processes, such as image rotation or mirroring are achieved. Cropping and resizing of images are also two basic geometric transformations. In this section, we will see how all these transformations can be achieved in MATLAB.

Performing image rotation

For image rotation, you can use the function imrotate. Again, you will be working in the Command Window, where you will have to type the functions to perform the transformations. Only this time, we will use a few more lines of code, to display the results in a single window.

主站蜘蛛池模板: 丰都县| 留坝县| 盱眙县| 五河县| 遂宁市| 屏南县| 新兴县| 山阳县| 平罗县| 阳原县| 四子王旗| 项城市| 徐闻县| 华宁县| 石嘴山市| 富锦市| 沂源县| 桂平市| 高阳县| 灵丘县| 久治县| 平南县| 尤溪县| 兴城市| 盐山县| 荆门市| 河间市| 揭东县| 姜堰市| 同德县| 都昌县| 临漳县| 吉水县| 象山县| 轮台县| 承德市| 南陵县| 西充县| 涪陵区| 揭东县| 勐海县|