def objectsSlow3d(self, cc):
        #returns a dictionary, where the key is the point "intensity" (i.e. connected component number)
        #and the value is a list of point coordinates [[x], [y], [z]]
        objs = {}

        nzindex = numpy.nonzero(cc)
        for i in range(len(nzindex[0])):
            value = cc[nzindex[0][i], nzindex[1][i], nzindex[2][i]]
            if value > 0:
                if value not in objs:
                    objs[value] = [[], [], []]
                objs[value][0].append(nzindex[0][i])
                objs[value][1].append(nzindex[1][i])
                objs[value][2].append(nzindex[2][i])
                
        return objs
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/modules/connected_components/core/synapseDetectionFilter.py/SynapseFilterAndSegmentor.objectsSlow3d/original