
    |h                         d dl Zd Zy)    Nc                    | j                   dk7  rt        d| j                          t        j                  |       } | j	                  d| j
                  | j                  d   z         }t        j                  |d      \  }}| |   }|S )a;  Remove repeated rows from a 2D array.

    In particular, if given an array of coordinates of shape
    (Npoints, Ndim), it will remove repeated points.

    Parameters
    ----------
    ar : ndarray, shape (M, N)
        The input array.

    Returns
    -------
    ar_out : ndarray, shape (P, N)
        A copy of the input array with repeated rows removed.

    Raises
    ------
    ValueError : if `ar` is not two-dimensional.

    Notes
    -----
    The function will generate a copy of `ar` if it is not
    C-contiguous, which will negatively affect performance for large
    input arrays.

    Examples
    --------
    >>> ar = np.array([[1, 0, 1],
    ...                [0, 1, 0],
    ...                [1, 0, 1]], np.uint8)
    >>> unique_rows(ar)
    array([[0, 1, 0],
           [1, 0, 1]], dtype=uint8)
       z2unique_rows() only makes sense for 2D arrays, got z|S   T)return_index)ndim
ValueErrornpascontiguousarrayviewitemsizeshapeunique)arar_row_view_unique_row_indicesar_outs        R/var/www/html/test/engine/venv/lib/python3.12/site-packages/skimage/util/unique.pyunique_rowsr      s    F 
ww!|CBGG9M
 	
 
		b	!B ''Br{{RXXa[89:;KIIkEA"#FM    )numpyr	   r    r   r   <module>r      s    /r   