Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我们有来自手写数字数据集的第五个。我想将它旋转 30 度(逆时针),然后将其垂直和水平移动 10 像素。我该怎么做?
让我成为你的形象。
%I = Input image; J = imrotate(I,30); %To rotate JS = [zeros(size(J,1),10), J]; %To shift 10pix horizontally figure,imshow(I) figure,imshow(J) figure,imshow(JS)