Example #1
0
  def shave_ctype ( self, annid, offset, locations ):
    """Remove annotation by a list of locations"""

    # the cython optimized version of this function.
    self.data , exceptions, zeroed = ocplib.shave_ctype ( self.data, annid, offset, np.array(locations, dtype=np.uint32))
    
    return exceptions, zeroed
Example #2
0
    def shave(self, annid, offset, locations):
        """Remove annotation by a list of locations"""

        self.data, exceptions, zeroed = ocplib.shave_ctype(
            self.data, annid, offset, np.array(locations, dtype=np.uint32))
        return exceptions, zeroed
Example #3
0
  def shave ( self, annid, offset, locations ):
    """Remove annotation by a list of locations"""

    self.data , exceptions, zeroed = ocplib.shave_ctype ( self.data, annid, offset, np.array(locations, dtype=np.uint32))
    return exceptions, zeroed