Exemplo n.º 1
0
    def getSectionImages(self, onlyFiltered=True):
        self.sectionImageList = []
        
        list_to_use = []
        if onlyFiltered:
            list_to_use = self.filteredMarkers
        else:
            list_to_use = self.allMarkers

        for sds in list_to_use:
            import aibs
            api = aibs.api()

            imageList = api.getSectionImagesForID(sds['id'])
            self.sectionImageList += imageList

        return self.sectionImageList            
Exemplo n.º 2
0
    def collectRawGenerics(self, DOWNSAMPLE, _dir):

        if self.s.remoteSpecimen == True:
        
            print '-> collecting images from remote source'
            # download downsampled images

            import aibs
            reload(aibs)
            api = aibs.api()
            api.getDSImagesFromListToPath(self.s.getSortedImageList(), _dir, downsample=DOWNSAMPLE)



        else:
            
            # print '-> collecting images from local source'
            return self.getDSImagesFromLocalToPath(self.s.getSortedImageList(), _dir, downsample=DOWNSAMPLE)
    def getSectionImages(self, onlyFiltered=True):
        if self.remoteSpecimen:

            self.sectionImageList = []
            
            list_to_use = []
            if onlyFiltered and len(self.filteredMarkers) > 0:
                list_to_use = self.filteredMarkers
            else:
                list_to_use = self.allMarkers

            for sds in list_to_use:
                import aibs
                api = aibs.api()

                imageList = api.getSectionImagesForID(sds['id'])
                self.sectionImageList += imageList

            return self.sectionImageList            

        else:
            self.sectionImageList = []
            

            list_to_use = []
            if onlyFiltered and len(self.filteredMarkers) > 0:
                list_to_use = self.filteredMarkers
            else:
                list_to_use = self.allMarkers

            for sds in list_to_use:
                imageList = self._getLocalImageList(sds['id'])
                #imageList = api.getSectionImagesForID(sds['id'])
                self.sectionImageList += imageList

            return self.sectionImageList