Patch image using mat2tiles and back to original image
1 次查看(过去 30 天)
显示 更早的评论
I used the Mat2tiles function for patching the input image, but how do I combine the patch images back to the original image?
My code is like this.
close all;
clear all;
img = imread('rice.png');
patches = mat2tiles(img,[64,64]);
[m n] = size(patches);
i = m * n;
for j = 1:i
b = patches{j};
figure,imshow(patches{j});
file_B = strcat('F:\IMG',num2str(j),'.png');
imwrite(b,file_B);
end
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!