0
我不知道發生了什麼。我需要一些建議或解決此問題的MATLAB錯誤 - 對'int16'類型的輸入參數未定義函數「imrotate」
下面的代碼是:顯示這樣
ax_slice = reshape(im(:,:,slices/2),rows,cols);
sag_slice = reshape(im(:,cols/2,:),rows,slices);
cor_slice = reshape(im(rows/2,:,:),cols,slices);
figure;
subplot(2,2,1);imshow(ax_slice,[]);
ax_slice_rot = imrotate(ax_slice,180);
subplot(2,2,1);imshow(ax_slice_rot,[]);
subplot(2,2,2);imshow(sag_slice,[]);
sag_slice_rot = imrotate(sag_slice,90);
imshow(sag_slice_rot,[]);
subplot(2,2,3);imshow(cor_slice,[]);
cor_slice_rot = imrotate(cor_slice,90);
imshow(cor_slice_rot,[]);
錯誤:
Undefined function 'imrotate' for input arguments of type 'int16'.
Error in lab0_introduction (line 19)
ax_slice_rot = imrotate(ax_slice,180);
非常感謝您
它是[圖像處理工具箱](http://nl.mathworks.com/help/images/ref/imrotate.html)的一部分。你沒有安裝或創建一個名爲'imrotate'的變量 – Adriaan
要檢查是否安裝了這樣的工具箱,請在命令窗口中鍵入'ver'。將會彈出一些關於Matlab安裝的信息,以及所有安裝的工具箱列表。 – Alessiox