def filterObjects(self, objsbig, objsref):
        #objsbig refers to the objects with user-defined thresholds, because
        #the threshold is usually bigger than the reference threshold
        goodobjs = []
        bboxes = []
        print "filtering, min good size: ", self.minsize, "max good size:", self.maxsize
        for key, value in objsbig.iteritems():
            if len(value[0])>self.minsize:
                goodobjs.append(value)
                bboxes.append([numpy.amin(value[0]), numpy.amin(value[1]), numpy.amin(value[2]), numpy.amax(value[0]), numpy.amax(value[1]), numpy.amax(value[2])])
                                        
        goodobjsref = []
        bboxesref = []    
        for key, value in objsref.iteritems():
            if len(value[0])>self.minsize:
                goodobjsref.append(value)
                bboxesref.append([numpy.amin(value[0]), numpy.amin(value[1]), numpy.amin(value[2]), numpy.amax(value[0]), numpy.amax(value[1]), numpy.amax(value[2])])
        #print "after size filtering, with user threshold ", len(goodobjs), ", with ref. threshold ", len(goodobjsref)
        found = False
        foundlist = []
        objs_final = []
        for i, big in enumerate(bboxesref):
            #print "in loop"
            found = False
            for j, small in enumerate(bboxes):
                if big[0] >= small[0] and small[3]<=big[3] and small[1]>=big[1] and small[4]<=big[4] and small[2]>=big[2] and small[5]<=big[5]:
                    found = True
                    break
                else:
                    continue
            
            if found == True:
                if len(goodobjsref[i][0])<self.maxsize:
                    objs_final.append(goodobjsref[i])
        print "total synapses found: ", len(objs_final)        
        return objs_final
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/modules/connected_components/core/synapseDetectionFilter.py/SynapseFilterAndSegmentor.filterObjects/swapped operands of `>=`