Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile errors #9

Open
frash1989 opened this issue Feb 23, 2017 · 1 comment
Open

compile errors #9

frash1989 opened this issue Feb 23, 2017 · 1 comment

Comments

@frash1989
Copy link

frash1989 commented Feb 23, 2017

Hi
When I try to extract lbp features and ssim features with Matlab2015b, the code cannot work.
For lbp feature,the errors are listed below:

Dataset: demo
Processing filelist (train, lbp): batch 0 of 1
Processing filelist (train, lbp): batch 1 of 1
Error using getmapping (line 37)
ASSUMEDTYPE must be an integer type name.

Error in lbp_original (line 3)
mapping=getmapping(8,'u2');

Error in lbp_original_4x4 (line 3)
feature_L0(:,1) = lbp_original(I);

Error in lbp_feature (line 10)
[lbp_L0 lbp_L1 lbp_L2] = lbp_original_4x4(im);

Error in extract_lbp (line 17)
d = lbp_feature(img);

Error in extract_feature (line 15)
[feat, x, y, wid, hgt] = feval(['extract_' feature], img, c);

Error in filelist_feature (line 23)
parfor i=1:length(filelist)

Error in batch_feature (line 42)
poolfeat = filelist_feature('', filelist(this_batch), feature, c);

Error in datasets_feature (line 34)
batch_feature(train_lists{i}, 'train', feature, c);

Error in demo (line 24)
datasets_feature(datasets, train_lists, test_lists, feature, c);

For ssim featurem, the errors are listed below:

Dataset: demo
Learning dictionary for feature: ssim, size 20
Running k-means, dictionary size 20...done!
Saving dictionary: cache//demo//dictionary_ssim_20.mat
Processing filelist (train, ssim): batch 0 of 1
Processing filelist (train, ssim): batch 1 of 1
Error using cellfun
Non-scalar in Uniform output, at index 1, output 1.
Set 'UniformOutput' to false.

Error in max_pooling (line 36)
emptyIdx = find(cellfun(@(x) sum(x)==0, idx));

Error in filelist_feature (line 37)
poolfeat = max_pooling(llcfeat, info, c.pool_region, p.pyramid_levels);

Error in batch_feature (line 42)
poolfeat = filelist_feature('', filelist(this_batch), feature, c);

Error in datasets_feature (line 34)
batch_feature(train_lists{i}, 'train', feature, c);

Error in demo (line 24)
datasets_feature(datasets, train_lists, test_lists, feature, c);

@adikhosla
Copy link
Owner

Hi frash1989,

Thanks for pointing out these errors! I have updated the getmapping.m code such that it will now support newer versions of Matlab. I have yet to look into the issue with SSIM. I will let you know once I fix that.

Thanks!
Aditya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants