補助関数(サポート関数)のコードの意味について
Ältere Kommentare anzeigen
こんにちは。
FRCNNやYOLOなどの検出器を学習させる際に、学習データの前処理としてサイズを一律にそろえる補助関数が以下のコードのように定義されていますが、これはどのように処理されているのでしょうか。学習データとラベルをリサイズしているのはわかりますが、具体的な処理方法がわかっていません。。。
プログラミング初心者なため、基本的な質問となってしまい申し訳ありませんが、よろしくお願いいたします。
function data = preprocessData(data,targetSize)
% Resize image and bounding boxes to targetSize.
scale = targetSize(1:2)./size(data{1},[1 2]);
data{1} = imresize(data{1},targetSize(1:2));
data{2} = bboxresize(data{2},scale);
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 深層学習を使用したオブジェクトの検出 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!