How to convert images into grayscale, which are stored in the imagedatastore then split into testing and training?
조회 수: 2 (최근 30일)
이전 댓글 표시
hi,
I have 200 images in imagedatastore. I need to convert that images into grayscale and then split into training and testing.Then wanted to apply glcm feature extraction method for classification. Can any help me. Any help is appreciated.
댓글 수: 0
답변 (1개)
yanqi liu
2021년 12월 30일
yes,sir,may be use ColorPreprocessing to aument data,such as
augimdsTrain = augmentedImageDatastore(inputSize(1:2),imdsTrain,'ColorPreprocessing','rgb2gray');
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!