MATLAB Answers

0

problem with combine features extraction code

Asked by hajer jon on 7 Aug 2019
Latest activity Answered by Sai Bhargav Avula on 9 Aug 2019
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) ;

  0 Comments

Sign in to comment.

1 Answer

Answer by Sai Bhargav Avula on 9 Aug 2019

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 !

  0 Comments

Sign in to comment.