def annotateEntityDense ( self, ch, entityid, corner, resolution, annodata, conflictopt ):

    #vec_func = np.vectorize ( lambda x: 0 if x == 0 else entityid ) 
    #annodata = vec_func ( annodata )
    annodata = ocplib.annotateEntityDense_ctype ( annodata, entityid )

    return self.annotateDense ( ch, corner, resolution, annodata, conflictopt )

  #
  # shaveDense
  #
  #  Reduce the specified annotations 
  #
Relabel all nonzero pixels to annotation id and call annotateDense
dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.annotateEntityDense