@staticmethod<EOL><INDENT>def from_grayscale(im, channels_on=(True, True, True)):<DEDENT>
xdim, ydim = im.shape<EOL>canvas = np.zeros((xdim, ydim, <NUM_LIT:3>), dtype=np.uint8)<EOL>for i, include in enumerate(channels_on):<EOL><INDENT>if include:<EOL><INDENT>canvas[:, :, i] = im<EOL><DEDENT><DEDENT>return canvas.view(AnnotatedImage)<EOL>
Return a canvas from a grayscale image.

        :param im: single channel image
        :channels_on: channels to populate with input image
        :returns: :class:`jicbioimage.illustrate.Canvas`