Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib64
/
python3.5
/
site-packages
/
scipy
/
ndimage
/
__pycache__
/
File Content:
interpolation.cpython-35.pyc
DB�W�l � @ s� d d l m Z m Z m Z d d l Z d d l Z d d l m Z d d l m Z d d l Z d d d d d d d d g Z d d � Z d d e j d d � Z d e j d d � Z d d � Z d d d d d d f i d d � Z d d d d d d d � Z d d d d d d d d d � Z d d d d d d d � Z d d d d d d d � Z d d � Z d! d d d d d d d d � Z d S)"� )�division�print_function�absolute_importN� )�_ni_support)� _nd_image�spline_filter1d� spline_filter�geometric_transform�map_coordinates�affine_transform�shift�zoom�rotatec C s t j | � } | S)N)r �_extend_mode_to_code)�mode� r �/interpolation.pyr , s r � c C s� | d k s | d k r$ t d � � t j | � } t j | � rN t d � � t j | | � \ } } | d k r� t j | � | d <n+ t j | | j � } t j | | | | � | S)a Calculates a one-dimensional spline filter along the given axis. The lines of the array along the given axis are filtered by a spline filter. The order of the spline must be >= 2 and <= 5. Parameters ---------- input : array_like The input array. order : int, optional The order of the spline, default is 3. axis : int, optional The axis along which the spline filter is applied. Default is the last axis. output : ndarray or dtype, optional The array in which to place the output, or the dtype of the returned array. Default is `numpy.float64`. Returns ------- spline_filter1d : ndarray or None The filtered input. If `output` is given as a parameter, None is returned. r � zspline order not supportedzComplex type not supportedr .)r r )�RuntimeError�numpy�asarray�iscomplexobj� TypeErrorr �_get_output�arrayZ_check_axis�ndimr r )�input�order�axis�output�return_valuer r r r 1 s c C s� | d k s | d k r$ t d � � t j | � } t j | � rN t d � � t j | | � \ } } | d k r� | j d k r� xD t | j � D]"