o
    ec                     @   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   )Z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   SD:\Projects\ConvertPro\env\Lib\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)samplingZfully_connected)rangemcpZMCP_GeometricaZ
find_costsr   horizontal_rampvertical_ramp)
Zseeds_for_horizontalZseeds_for_vertcalZsysxr   m1Zcosts1	tracebackm2Zcosts2r   r   r   test_anisotropy   s   r    )numpynpZskimage.graph.mcpgraphr   Zskimage._shared.testingr   ZonesZfloat32r   arrayr   r   r    r   r   r   r   <module>   s.    

	
