
    9i:                     $    S SK r/ SQr/ rS rS rg)    N)image_stackpushpopc                     [        U [        R                  5      (       d  [        S5      e[        R                  U 5        g)zdPush 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/land-doc-ocr/venv/lib/python3.13/site-packages/skimage/io/_image_stack.pyr   r      s/     c2::&&EFFs    c                  *    [         R                  5       $ )zkPop 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   