ó
 \c           @   s7   d  d l  Z d d d g Z g  Z d   Z d   Z d S(   i˙˙˙˙Nt   image_stackt   pusht   popc         C   s2   t  |  t j  s! t d   n  t j |   d S(   sx   Push an image onto the shared image stack.

    Parameters
    ----------
    img : ndarray
        Image to push.

    s*   Can only push ndarrays to the image stack.N(   t
   isinstancet   npt   ndarrayt
   ValueErrorR    t   append(   t   img(    (    s6   lib/python2.7/site-packages/skimage/io/_image_stack.pyR      s    	c           C   s
   t  j   S(   s   Pop an image from the shared image stack.

    Returns
    -------
    img : ndarray
        Image popped from the stack.

    (   R    R   (    (    (    s6   lib/python2.7/site-packages/skimage/io/_image_stack.pyR      s    	(   t   numpyR   t   __all__R    R   R   (    (    (    s6   lib/python2.7/site-packages/skimage/io/_image_stack.pyt   <module>   s   	