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

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.

主站蜘蛛池模板: 大田县| 页游| 本溪| 漠河县| 赣榆县| 张家川| 滁州市| 东平县| 衡南县| 芜湖县| 张掖市| 南雄市| 晋中市| 岳阳县| 米林县| 广宗县| 乳山市| 涡阳县| 四川省| 荔浦县| 新余市| 石景山区| 神木县| 彭山县| 阿城市| 甘谷县| 淮阳县| 阿坝| 凤山县| 黑龙江省| 苍梧县| 南投县| 常德市| 弥渡县| 新竹市| 通化县| 绥棱县| 青田县| 桂阳县| 金寨县| 尼木县|