U
    hq                     @   s:   d Z ddlmZ ddlZddlZdd Zedkr6e  dS )zHelper script for creating image .dat files by numpy.save

Usage:

    python create_dat.py <name of image file> <name of dat file>

Example (to create aero.dat):

    python create_dat.py aero.png aero.dat

Requires Scipy and PIL.
    )print_functionNc                  C   sV   ddl m}  ttjdkr(tt t  tjd }tjd }| |}tj	||d d S )Nr   )imread         )data)
Z
scipy.miscr   lensysargvprint__doc__exitnpZsavez_compressed)r   Zimage_fnameZ	dat_fnamer    r   8/tmp/pip-unpacked-wheel-mu97bu1x/pywt/data/create_dat.pymain   s    

r   __main__)r   
__future__r   r	   Znumpyr   r   __name__r   r   r   r   <module>   s   