
    |h:                     $    d dl Zg dZg Zd Zd Zy)    N)image_stackpushpopc                 x    t        | t        j                        st        d      t        j                  |        y)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    V/var/www/html/test/engine/venv/lib/python3.12/site-packages/skimage/io/_image_stack.pyr   r      s,     c2::&EFFs    c                  *    t         j                         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      s      ) 	r   