o
    h6                     @   s   d dl Zd dlm  mZ d dlmZ ejdejdZ	e
g dg dg dg dg dg dg dg dgZe
g dg dg dg d	g d
g dg dg dgZdd ZdS )    N)assert_array_equal)   r   )dtype)              ?       @      @      @      @      @      @)r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )r	   r	   r	   r	   r	   r	   r	   r	   )r
   r
   r
   r
   r
   r
   r
   r
   )r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   c            
      C   s   dd t dD } dd t dD }t ddD ]:}t ddD ]2}||f}tjt|dd}|| \}}tjt|dd}||\}	}t|t|  t|	t|  qqd S )	Nc                 S   s   g | ]}|d fqS r    .0ir   r   ^/var/www/html/scripts/venv/lib/python3.10/site-packages/skimage/graph/tests/test_anisotropy.py
<listcomp>       z#test_anisotropy.<locals>.<listcomp>r   c                 S   s   g | ]}d |fqS r   r   r   r   r   r   r      r         T)samplingfully_connected)rangemcpMCP_Geometrica
find_costsr   horizontal_rampvertical_ramp)
seeds_for_horizontalseeds_for_vertcalsysxr   m1costs1	tracebackm2costs2r   r   r   test_anisotropy   s   r)   )numpynpskimage.graph.mcpgraphr   skimage._shared.testingr   onesfloat32r   arrayr   r   r)   r   r   r   r   <module>   s.    

	
