problem with combine features extraction code

1 visualización (últimos 30 días)
hajer jon
hajer jon el 7 de Ag. de 2019
Respondida: Sai Bhargav Avula el 9 de Ag. de 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) ;

Respuestas (1)

Sai Bhargav Avula
Sai Bhargav Avula el 9 de Ag. de 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 !

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by