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

Issue with the "findOverlapping3" function #2

Open
kulkarnip0 opened this issue Sep 15, 2014 · 3 comments
Open

Issue with the "findOverlapping3" function #2

kulkarnip0 opened this issue Sep 15, 2014 · 3 comments

Comments

@kulkarnip0
Copy link

As discussed I just created the new issue for the problem. Below is the small snippet of code.

findOverlapping3('ds.nextround.prevdets',find(ds.classperbatch==ds.uniquelabels(dsidx)),[ds.batchfordetr(:,1),ds.classperbatch(ds.batchfordetr(:,2))],struct('ndetsforoverlap',.5,'maxoverlaps',3,'clusterer','agglomerative'))

I get below error in the log file:

sort by image
compute overlaps
ismapreducer:1
Undefined variable "internal" or class "internal.stats.getParamVal".
file: '/data/chercheurs/kulkarnip/dev/elementdiscovery-master/linkage2.m'
name: 'linkage2'
line: 154

file: [1x73 char]
name: 'findOverlapping3'
line: 189

file: [1x82 char]
name: 'dsmapredrun'
line: 5

file: [1x83 char]
name: 'dsmapreducer'
line: 316

file: [1x90 char]
name: 'dsmapreducerbarrier'
line: 10

file: [1x87 char]
name: 'dsmapreducerwrap'
line: 6
MATLAB:undefinedVarOrClass

checkpassed =

1
Could you please help me resolve this problem.

Thanks
Praveen

@kulkarnip0
Copy link
Author

I am finding real hard time to alter 'findOverlapping3 to return a trivial clustering'. Is there possibility if some part can be commented or any other easy way.

@kulkarnip0
Copy link
Author

I thought commenting the code from line number 104 to 205 in "findOverlapping3.m" and returning below code snippet should solve the problem.

detids=detids();%(ord(eliminate))=[];
detids(eliminate)=[];
scores=scores();%(ord(eliminate))=[];
scores(eliminate)=[];

@cdoersch
Copy link
Owner

I don't think your changes do what you want--the only output argument that gets read is component which is created on line 197.

I'd recommend reverting your changes and then adding the following two lines after line 130:

component=[c(detids(ord)) c(detids(:)*0+detids(ord(1))) c(scores(ord))];
return;

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