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

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.

主站蜘蛛池模板: 库尔勒市| 黑山县| 常山县| 和静县| 界首市| 临朐县| 韶山市| 武山县| 日喀则市| 三江| 林甸县| 班戈县| 嘉义市| 庆安县| 灵武市| 福州市| 巨野县| 呼伦贝尔市| 祁门县| 阿拉善左旗| 广宗县| 桃源县| 永嘉县| 黔江区| 榆树市| 惠来县| 宁城县| 容城县| 南城县| 潢川县| 云霄县| 蒙山县| 买车| 肃北| 沙湾县| 陆河县| 乌鲁木齐市| 和静县| 西丰县| 临清市| 桃源县|