イメージサイズを(256 256 1)にしたいのですが
256 256 3になっているみたいなのですがどこを変更すればよろしいでしょうか?
imds = imageDatastore('sindou','IncludeSubfolders',true,'LabelSource','foldernames');
labelCount = countEachLabel(imds)
%% データで振り分ける
rateTrainFiles = 0.6;
[imdsTrain,imdsValidation] = splitEachLabel(imds,rateTrainFiles,'randomize');
s_image = [256 256 1];
audsTrain = augmentedImageDatastore(s_image,imdsTrain);
audsValidation = augmentedImageDatastore(s_image,imdsValidation);

 Respuesta aceptada

Hernia Baby
Hernia Baby el 21 de Jul. de 2022

1 voto

augmentedImageDatastoreで可能なはずです
グレースケールにしたい場合はColorPreprocessingをご参考ください
auds = augmentedImageDatastore([256 256],imds,'ColorPreprocessing','rgb2gray')

3 comentarios

Atsushi Ueno
Atsushi Ueno el 3 de Ag. de 2022
この回答で良いと思ったのですが同じ質問を繰り返していますね。
どこが問題なのでしょう?
大空
大空 el 4 de Ag. de 2022
ごめんなさい最初行ったのですが上手くいかず再度行ったら上手くいきました。
ありがとうございます
Hernia Baby
Hernia Baby el 4 de Ag. de 2022
うまくいったようでよかったです。もし、ダメだった場合はコメント頂けると再検討しますので遠慮なくどうぞ。

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing and Computer Vision en Centro de ayuda y File Exchange.

Productos

Versión

R2022a

Preguntada:

el 21 de Jul. de 2022

Comentada:

el 4 de Ag. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!