補助関数(サポート関数)のコードの意味について
Afficher commentaires plus anciens
こんにちは。
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 深層学習を使用したオブジェクトの検出 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!