我是 Matlab 的新手,现在我正在尝试将图像拆分为 NxN 块,如下面的示例所示。
在matlab中,我目前正在尝试一些事情:
my_image = imread('cat.jpg')
figure, imshow(my_image)
nrow = 12; %12 by 12 blocks as shown in the example above.
ncol = 12;
for i =1:nrow
for j=2:ncol
block = ...
end
end
但我不完全确定我应该如何在图像上获得这些线条。我已经用谷歌搜索过了,但没有一个符合我想要得到的。任何人都可以证明这是如何完成的吗?
