How to do the feature extraction on folders that contains a stack of images for codebook construction ?
1 次查看(过去 30 天)
显示 更早的评论
I try to do features extraction on histological images, I would like to realize the feature extraction (MSER or SURF) on all the images in a folder to construct a codebook.
The main purpose would be to create a classifier (for example using k-means clustering) to check if the classifier is reliable.
I split my folder in training set (70%) and validation set (30%), I succed to use the different methods on 1 image, but I don't know how to do it on every images in order to create a codebook.
Thanks in advance,
Martin
回答(1 个)
Shubham
2023-9-27
I understand that you want to extract features from the images. You have succeeded with a single image and want to perform for all the images present in the directory.
You can refer to the following link as suggested by @Walter Roberson: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
You can also have a look at the case:
You can use “fullfile” to get image names and loop through them using “imread” function. You can use functions like “detectMSERFeatures” or “detectSURFFeatures” to extract features and then store them in a matrix. Then you can perform kmeans clustering algorithm.
Hope this helps!!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!