Module ImportFrom alias Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore Call NameLoad Str ListLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Assign NameStore CompareLt NameLoad Num Assign NameStore BoolOpAnd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BoolOpOr CompareLt NameLoad NameLoad CompareGt NameLoad NameLoad Assign NameStore BoolOpAnd CompareNotEq NameLoad NameLoad Call NameLoad NameLoad Assign NameStore CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad Str If AttributeLoad NameLoad attr body Expr Call NameLoad Str If AttributeLoad NameLoad attr body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad UnaryOpUSub NameLoad NameLoad Assign NameStore NameLoad orelse If Call NameLoad NameLoad body Expr Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Assign NameStore NameLoad orelse Assign NameStore Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str If CompareEq Call AttributeLoad NameLoad attr Str NameLoad Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpOr BoolOpAnd CompareNotEq NameLoad NameLoad CompareIsNot NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call NameLoad decorator_list
N/A collections namedtuple N/A numpy np N/A matplotlib.pyplot plt mpl_toolkits.axes_grid1 make_axes_locatable util dtype dtypes exposure is_low_contrast util.colormap viridis _shared.utils warn N/A _default_colormap gray N/A _nonstandard_colormap viridis N/A _diverging_colormap RdBu N/A ImageProperties N/A namedtuple ImageProperties N/A signed out_of_range_float low_dynamic_range unsupported_dtype _get_image_properties N/A N/A image N/A N/A N/A Determine nonstandard properties of an input image.

    Parameters
    ----------
    image : array
        The input image.

    Returns
    -------
    ip : ImageProperties named tuple
        The properties of the image:

        - signed: whether the image has negative values.
        - out_of_range_float: if the image has floating point data
          outside of [-1, 1].
        - low_dynamic_range: if the image is in the standard image
          range (e.g. [0, 1] for a floating point image) but its
          dynamic range would be too small to display with standard
          image ranges.
        - unsupported_dtype: if the image data type is not a
          standard skimage type, e.g. ``numpy.uint64``.
     N/A N/A immin immax N/A N/A N/A np min image N/A N/A np max image N/A imtype N/A N/A image dtype type N/A N/A N/A N/A lo hi N/A N/A dtypes dtype_range N/A imtype N/A N/A N/A KeyError N/A N/A N/A lo hi N/A immin immax N/A signed N/A immin 0 N/A out_of_range_float N/A N/A N/A np issubdtype N/A image dtype N/A np float N/A N/A immin lo N/A immax hi N/A low_dynamic_range N/A N/A immin immax N/A is_low_contrast image N/A unsupported_dtype N/A N/A image dtype N/A dtypes _supported_types N/A N/A ImageProperties signed out_of_range_float low_dynamic_range unsupported_dtype N/A _raise_warnings N/A N/A image_properties N/A N/A N/A Raise the appropriate warning for each nonstandard image type.

    Parameters
    ----------
    image_properties : ImageProperties named tuple
        The properties of the considered image.
     N/A ip image_properties N/A N/A ip unsupported_dtype N/A N/A N/A warn Non-standard image type; displaying image with stretched contrast. N/A N/A ip low_dynamic_range N/A N/A N/A warn Low image dynamic range; displaying image with stretched contrast. N/A N/A ip out_of_range_float N/A N/A N/A warn Float image out of standard range; displaying image with stretched contrast. N/A _get_display_range N/A N/A image N/A N/A N/A Return the display range for a given set of image properties.

    Parameters
    ----------
    image : array
        The input image.

    Returns
    -------
    lo, hi : same type as immin, immax
        The display range to be used for the input image.
    cmap : string
        The name of the colormap to use.
     N/A ip N/A _get_image_properties image N/A N/A immin immax N/A N/A N/A np min image N/A N/A np max image N/A N/A ip signed N/A N/A magnitude N/A max N/A abs immin N/A abs immax N/A N/A lo hi N/A N/A magnitude magnitude N/A cmap _diverging_colormap N/A N/A N/A any ip N/A N/A N/A _raise_warnings ip N/A N/A lo hi N/A immin immax N/A cmap _nonstandard_colormap N/A N/A lo 0 N/A imtype N/A N/A image dtype type N/A hi N/A N/A N/A dtypes dtype_range N/A imtype N/A 1 N/A cmap _default_colormap N/A N/A lo hi cmap N/A imshow N/A N/A im ax show_cbar N/A None None kwargs N/A N/A Show the input image and return the current axes.

    By default, the image is displayed in greyscale, rather than
    the matplotlib default colormap.

    Images are assumed to have standard range for their type. For
    example, if a floating point image has values in [0, 0.5], the
    most intense color will be gray50, not white.

    If the image exceeds the standard range, or if the range is too
    small to display, we fall back on displaying exactly the range of
    the input image, along with a colorbar to clearly indicate that
    this range transformation has occurred.

    For signed images, we use a diverging colormap centered at 0.

    Parameters
    ----------
    im : array, shape (M, N[, 3])
        The image to display.
    ax: `matplotlib.axes.Axes`, optional
        The axis to use for the image, defaults to plt.gca().
    show_cbar: boolean, optional.
        Whether to show the colorbar (used to override default behavior).
    **kwargs : Keyword arguments
        These are passed directly to `matplotlib.pyplot.imshow`.

    Returns
    -------
    ax_im : `matplotlib.pyplot.AxesImage`
        The `AxesImage` object returned by `plt.imshow`.
     N/A N/A N/A N/A kwargs get cmap None viridis N/A N/A N/A kwargs N/A cmap viridis N/A N/A lo hi cmap N/A _get_display_range im N/A N/A N/A kwargs setdefault interpolation nearest N/A N/A N/A kwargs setdefault cmap cmap N/A N/A N/A kwargs setdefault vmin lo N/A N/A N/A kwargs setdefault vmax hi N/A ax N/A ax N/A N/A plt gca N/A ax_im N/A N/A ax imshow im kwargs N/A N/A N/A N/A cmap _default_colormap N/A show_cbar False show_cbar N/A N/A divider N/A make_axes_locatable ax N/A cax N/A N/A divider append_axes right size 5% pad 0.05 N/A N/A N/A plt colorbar ax_im cax cax N/A N/A N/A ax set_adjustable box-forced N/A N/A N/A N/A N/A ax get_figure tight_layout N/A ax_im N/A imshow_collection N/A N/A ic N/A args kwargs N/A N/A Display all images in the collection.

     N/A N/A fig axes N/A N/A plt subplots 1 N/A len ic N/A N/A n image N/A enumerate ic N/A N/A N/A kwargs N/A ax N/A axes N/A n N/A N/A imshow image args kwargs N/A N/A imread N/A plt imread N/A show N/A plt show _app_show N/A N/A N/A N/A N/A N/A show N/A