
    1-Ph:                     &    d dl Zg dZg Zd Zd ZdS )    N)image_stackpushpopc                     t          | t          j                  st          d          t                              |            dS )zxPush an image onto the shared image stack.

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

    z*Can only push ndarrays to the image stack.N)
isinstancenpndarray
ValueErrorr   append)imgs    W/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/skimage/io/_image_stack.pyr   r      sB     c2:&& GEFFFs    c                  4    t                                           S )zPop an image from the shared image stack.

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

    )r   r    r   r   r   r      s     ??r   )numpyr   __all__r   r   r   r   r   r   <module>r      sM        )
(
(   	 	 	 	 	r   