ó
î&]\c        
   @` sŤ  d  Z  d d l m Z m Z m Z d d d d d d d	 d
 d d g
 Z d d l m Z d d l Td d l	 m
 Z m Z m Z d d l	 Z d d l m Z d d l m Z m Z m Z m Z m Z d d l Z d Z  e j! e d e  i e j" d 6Z e j! e d e  i e j" d 6Z e j! e d e  i e j" d 6Z e j! e d e  i e j" d 6Z e j! e d e  i e j" d 6Z d Z  e j! e d e  Z d Z  e j! e d e  i d d 6Z
 e j! e d e  i d d 6Z e j! d e  i d d 6 d d e j$ d d   Z e j  e _  [ y. d d l% Td d l m% Z% e e% j 7Z [% Wn e& k
 rgn Xd d l m Z e e j 7Z [ d d l' m( Z( e( e"  Z) [( d S(    s		  
==========================================
Miscellaneous routines (:mod:`scipy.misc`)
==========================================

.. currentmodule:: scipy.misc

Various utilities that don't have another home.

Note that Pillow (https://python-pillow.org/) is not a dependency
of SciPy, but the image manipulation functions indicated in the list
below are not available without it.

.. autosummary::
   :toctree: generated/

   ascent - Get example image for processing
   central_diff_weights - Weights for an n-point central m-th derivative
   derivative - Find the n-th derivative of a function at a point
   face - Get example image for processing
   electrocardiogram - Load an example of a one-dimensional signal.

Deprecated functions:

.. autosummary::
   :toctree: generated/

   bytescale - Byte scales an array (image) [requires Pillow]
   fromimage - Return a copy of a PIL image as a numpy array [requires Pillow]
   imfilter - Simple filtering of an image [requires Pillow]
   imread - Read an image file from a filename [requires Pillow]
   imresize - Resize an image [requires Pillow]
   imrotate - Rotate an image counter-clockwise [requires Pillow]
   imsave - Save an array to an image file [requires Pillow]
   imshow - Simple showing of an image through an external viewer [requires Pillow]
   toimage - Takes a numpy array and returns a PIL image [requires Pillow]


Deprecated aliases:

.. autosummary::
   :toctree: generated/

   comb - Combinations of N things taken k at a time, "N choose k" (imported from `scipy.special`)
   factorial  - The factorial function, ``n! = special.gamma(n+1)``
                (imported from `scipy.special`)
   factorial2 - Double factorial, ``(n!)!`` (imported from `scipy.special`)
   factorialk - ``(...((n!)!)!...)!`` where there are k '!' (imported from `scipy.special`)
   logsumexp - Compute the log of the sum of exponentials of input elements
               (imported from `scipy.special`)
   pade - Pade approximation to function as the ratio of two polynomials.
          (imported from `scipy.interpolate`)
   info - Get help information for a function, class, or module. (imported from `numpy`)
   source - Print function source code. (imported from `numpy`)
   who - Print the Numpy arrays in the given dictionary. (imported from `numpy`)

i    (   t   divisiont   print_functiont   absolute_importt   whot   sourcet   infot   doccert   padet   combt	   factorialt
   factorial2t
   factorialkt	   logsumexpi   (   R   (   t   *(   R   R   R   N(   R   (   R   R   R	   R
   R   sh   Importing `%(name)s` from scipy.misc is deprecated in scipy 1.0.0. Use `scipy.special.%(name)s` instead.t   messaget   namesd   Importing `pade` from scipy.misc is deprecated in scipy 1.0.0. Use `scipy.interpolate.pade` instead.s`   Importing `%(name)s` from scipy.misc is deprecated in scipy 1.0.0. Use `numpy.%(name)s` instead.s   info.(..., toplevel='scipy')iL   t   scipyc         C` s   t  |  | | |  S(   N(   t   _info(   t   objectt   maxwidtht   outputt   toplevel(    (    s2   lib/python2.7/site-packages/scipy/misc/__init__.pyR   [   s    (   t   pilutil(   t   common(   t   PytestTester(*   t   __doc__t
   __future__R    R   R   t   __all__t    R   R   t   numpyR   t   _whoR   t   _sourceR   R   t   npt   scipy.interpolate._padeR   t   _padet   scipy.specialR   t   _combR   t   _lsmR	   t   _factR
   t   _fact2R   t   _factkt   syst   _msgt	   deprecatet   __name__t   Nonet   stdoutR   t   ImportErrort   scipy._lib._testutilsR   t   test(    (    (    s2   lib/python2.7/site-packages/scipy/misc/__init__.pyt   <module>9   sL   
(#####  
