class_docstr: A class for binary morphological operators
class_docstr_tok: ["A","class","for","binary","morphological","operators"]
docstr: Get a list of all turned on pixels in a binary image
  
  Returns a list of tuples of (x,y) coordinates
  of all matching pixels. See :ref:`coordinate-system`.
docstr_tok: ["Get","a","list","of","all","turned","on","pixels","in","a","binary","image","Returns","a","list","of","tuples","of","(","x",",","y",")","coordinates","of","all","matching","pixels",".","See",":","ref",":","`","coordinate-system","`","."]
code: def get_on_pixels(self, image):
      """Get a list of all turned on pixels in a binary image
  
      Returns a list of tuples of (x,y) coordinates
      of all matching pixels. See :ref:`coordinate-system`."""
  
      if image.mode != "L":
          raise Exception(
              "Image must be binary, meaning it must use mode L"
          )
      return _imagingmorph.get_on_pixels(image.im.id)
  
imports: from __future__ import print_function
  import re
  from .None import Image, _imagingmorph
label_desc: Use image node_id 4 for calling the MorphOp obj's underlying member method code with example usage: obj.get_on_pixels(image) and returns: _imagingmorph