Esempio n. 1
0
 def supportedRegionFeatures(array, labels):
     '''Return a list of feature names that are available for the given array and label array. 
        These feature names are the valid inputs to a call of 
        :func:`extractRegionFeatures`(array, labels, features=...).
     '''
     
     return analysis.extractRegionFeatures(array, labels, None).supportedFeatures()
Esempio n. 2
0
 def supportedRegionFeatures(array, labels):
     '''Return a list of feature names that are available for the given array and label array. 
        These feature names are the valid inputs to a call of 
        :func:`extractRegionFeatures`. E.g., to compute just the first two features in the 
        list, use::
        
             f = vigra.analysis.supportedRegionFeatures(array, labels)
             print "Computing features:", f[:2]
             r = vigra.analysis.extractRegionFeatures(array, labels, features=f[:2])
     '''
     
     return analysis.extractRegionFeatures(array, labels, None).supportedFeatures()