problem with combine features extraction code

조회 수: 1 (최근 30일)
hajer jon
hajer jon 2019년 8월 7일
답변: Sai Bhargav Avula 2019년 8월 9일
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
Sai Bhargav Avula 2019년 8월 9일
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 !

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by