problem with combine features extraction code
显示 更早的评论
when iam run this code i hade error "Out of memory. Type "help memory" for your options."
[regon,d] = detectMSERFeatures(I1,'ThresholdDelta',1,'MaxAreaVariation',1);%
[features2, valid_point3] = extractFeatures(I1,regon);
[regon1,d1] = detectMSERFeatures(I2,'ThresholdDelta',1,'MaxAreaVariation',1);%
[features3,valid_point4] = extractFeatures(I2,regon1);
points=detectSURFFeatures(I1,'NumOctaves',1,'NumScaleLevels',3,'MetricThreshold',5000);
points1=detectSURFFeatures(I2,'NumOctaves',1,'NumScaleLevels',3,'MetricThreshold',5000);
[features, valid_point] = extractFeatures(I1,points);
[features1, valid_point1] = extractFeatures(I2,points1);
comfeat=[features(:,:);features2(:,:)];
comfeat1=[features1(:,:);features3(:,:)];
indexPairs1 = matchFeatures(comfeat,comfeat1) ;
回答(1 个)
Sai Bhargav Avula
2019-8-9
0 个投票
The main issue is the system is running out of RAM memory.
These can be avoided by reducing the number of variables and use already existing variables.
Single the matrices are larg they can defined as a single precision or int32.
You can also try allocating more java heap memory to MATLAB.
For this go to : Preferences (in the Matlab tab "Home") --> General --> Java Heap Memory
Hope this helps !
类别
在 帮助中心 和 File Exchange 中查找有关 Image Segmentation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!