セマンティックセグメンテーションのための画像抽出
Mostrar comentarios más antiguos
セマンティックセグメンテーションのためのデータセットを用意するためにデータ数を増やすために上のURLを参考に解析を行ったところ評価が出来なかったため,元データと教師データの2枚の画像から同じ箇所をランダムに抽出し,保存したいと考えています.以下に1枚の場合のコードを示します.
clear all;
close all;
A = imread('13.jpg');
%imshow(A)
targetSize = [360 480];
figure;
for i=1:10
wini = randomCropWindow2d(size(A),targetSize);
Bi = imcrop(A,wini);
imshow(Bi)
%pause(.3)
filename=['image13_',num2str(i),'.jpg'];
imwrite(Bi,filename)
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre イメージ en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!