如何在GNU Octave中旋转图像?

问题描述 投票:0回答:1
I = imread("C:/Users/Hp/Desktop/download.jpg");
dir = [1 0 0]
J = rotate(I,dir,90);

这是我编写的代码。但它似乎不起作用。是否有直接命令将图像旋转45度或90度。

它出现以下错误:

rotate: H must be an array of one or more graphics handles

我是图像处理的新手。帮助将不胜感激。

image processing octave
1个回答
0
投票

[rotate(h, dir, alpha)用于旋转图形对象,即由坐标集定义的对象,例如网格,表面等...

要旋转图像,您需要使用imrotate()

© www.soinside.com 2019 - 2024. All rights reserved.