parameters: (filename)
return_statement: return (labelMapping, names, labels)
docstring: Read a compressed label lookup table file into an ordered dictionary
      to labels and names. This also returns corresponding label indices and names
      in a tuple, although we can probably re-extract this info from the labelMapping
      object down the road.
docstring_summary: Read a compressed label lookup table file into an ordered dictionary
      to labels and names. This also returns corresponding label indices and names
      in a tuple, although we can probably re-extract this info from the labelMapping
      object down the road.
docstring_tokens: Read a compressed label lookup table file into an ordered dictionary to labels and names . This also returns corresponding label indices and names in a tuple although we can probably re - extract this info from the labelMapping object down the road .
function: def read_compression_lookup_table(filename):
      """
      Read a compressed label lookup table file into an ordered dictionary
      to labels and names. This also returns corresponding label indices and names
      in a tuple, although we can probably re-extract this info from the labelMapping
      object down the road.
      """
      labelMapping = fs.LookupTable()
      labels, names, colors = samseg.kvlReadCompressionLookupTable(filename)
      labels = np.array(labels)
      for label, name, color in zip(labels, names, colors):
          labelMapping.add(label, name, color)
      return (labelMapping, names, labels)
function_tokens: def read_compression_lookup_table ( filename ) : labelMapping = fs . LookupTable ( ) labels , names , colors = samseg . kvlReadCompressionLookupTable ( filename ) labels = np . array ( labels ) for label , name , color in zip ( labels , names , colors ) : labelMapping . add ( label , name , color ) return ( labelMapping , names , labels )