U
    ?h                  
   @   s  d Z dZddlmZ ed ddlZeee\Z	Z
Zdd Zd	Zd
Zdd Zze W n ek
rn   dZY nX erddlZejd n~zddlmZ [W n* ek
r Z zee W 5 dZ[X Y nX ddlmZmZmZmZmZmZm Z m!Z! ddl"m#Z# ddl$m%Z% dekrddl&Z&ddl'Z(z*e&j)ddddge&j*e&j*e(j+,edZ-W n e.k
rb   Y nxX e-/ \Z0Z1e-j2dkre03d4 5dd6dd 5dd6 \Z7Z8d9dd  e6dD Zed!e8 d"e7 7 Zdd#l:m;Z; e;eZ<[;dS )$a  Image Processing for Python

``scikit-image`` (a.k.a. ``skimage``) is a collection of algorithms for image
processing and computer vision.

The main package of ``skimage`` only provides a few utilities for converting
between image data types; for most features, you need to import one of the
following subpackages:

Subpackages
-----------
color
    Color space conversion.
data
    Test images and example data.
draw
    Drawing primitives (lines, text, etc.) that operate on NumPy arrays.
exposure
    Image intensity adjustment, e.g., histogram equalization, etc.
feature
    Feature detection and extraction, e.g., texture analysis corners, etc.
filters
    Sharpening, edge finding, rank filters, thresholding, etc.
graph
    Graph-theoretic operations, e.g., shortest paths.
io
    Reading, saving, and displaying images and video.
measure
    Measurement of image properties, e.g., region properties and contours.
metrics
    Metrics corresponding to images, e.g. distance metrics, similarity, etc.
morphology
    Morphological operations, e.g., opening or skeletonization.
restoration
    Restoration algorithms, e.g., deconvolution algorithms, denoising, etc.
segmentation
    Partitioning an image into multiple regions.
transform
    Geometric and other transforms, e.g., rotation or the Radon transform.
util
    Generic utilities.

Utility Functions
-----------------
img_as_float
    Convert an image to floating point format, with values in [0, 1].
    Is similar to `img_as_float64`, but will not convert lower-precision
    floating point arrays to `float64`.
img_as_float32
    Convert an image to single-precision (32-bit) floating point format,
    with values in [0, 1].
img_as_float64
    Convert an image to double-precision (64-bit) floating point format,
    with values in [0, 1].
img_as_uint
    Convert an image to unsigned integer format, with values in [0, 65535].
img_as_int
    Convert an image to signed integer format, with values in [-32768, 32767].
img_as_ubyte
    Convert an image to unsigned byte format, with values in [0, 255].
img_as_bool
    Convert an image to boolean format, with values either True or False.
dtype_limits
    Return intensity limits, i.e. (min, max) tuple, of the image's dtype.

z0.21.0   )ensure_python_version)          Nc                   C   s   t  dg S )N__version__)__lazy_dir__ r   r   B/var/www/html/venv/lib/python3.8/site-packages/skimage/__init__.py__dir__L   s    r
   z
It appears that you are importing a local scikit-image source tree. For
this, you need to have an inplace install. Maybe you are in the source
directory and you need to try from another location.z
Your install of scikit-image appears to be broken.
Try re-installing the package following the instructions at:
https://scikit-image.org/docs/stable/install.html c                 C   s@   dd l m} |td }t}|dkr*t}t|  d| d S )Nr   Zskimagez:
It seems that scikit-image has not been built correctly.
)os.pathpathsplit__file___STANDARD_MSG_INPLACE_MSGImportError)eZospZ	local_dirmsgr   r   r	   _raise_build_error]   s    r   Fz4Partial import of skimage during the build process.
)geometry)dtype_limitsimg_as_float32img_as_float64img_as_float
img_as_intimg_as_uintimg_as_ubyteimg_as_bool)lookfor)data_dirdevgitlogz-1z--format="%h %aI")stdoutstderrcwdzutf-8" T-+c                 C   s   g | ]}| d s|qS )r!   )
startswith).0tagr   r   r	   
<listcomp>   s    
r.   z+git.)PytestTester)=__doc__r   Z_shared.version_requirementsr   Zlazy_loaderZlazyZattach_stub__name__r   __getattr__r   _r
   r   r   r   Z__SKIMAGE_SETUP__	NameErrorsysr$   writeZ_sharedr   r   r   Z
util.dtyper   r   r   r   r   r   r   r   Zutil.lookforr   datar   
subprocessr   osPopenPIPEr   dirnamepFileNotFoundErrorcommunicateouterr
returncodedecodestripreplacer   Zgit_hashZgit_datejoinZskimage._shared.testerr0   testr   r   r   r	   <module>   sr   C
(



  	