天天看點

Python圖像處理算法包scikit-image1. Overview2. Install3. APIAPI Reference for skimage 0.16.dev0

Docs: https://scikit-image.org/docs/dev/index.html

1. Overview

The scikit-image SciKit (toolkit for SciPy) extends 

scipy.ndimage

 to provide a versatile set of image processing routines.

2. Install

簡單安裝

Anaconda or miniconda, use:

conda install -c conda-forge scikit-image
           

pip, use:

pip install scikit-image
           

其它安裝:https://scikit-image.org/docs/dev/install.html

3. API

部分功能包括:(詳見https://scikit-image.org/docs/dev/api/api.html)

color提供色彩空間變換等

feature提供了多種特征計算工具例如灰階共生矩陣glcm的greycomatrix,grecoprops,輪廓、角點特征、相似特征等

fliters提供了各種濾波函數

measure提供了對象提取、香農資訊熵計算等

morphology提供了膨脹、腐蝕、去小面、去小洞等;

API Reference for skimage 0.16.dev0

Submodules

  • skimage
    • color
    • data
    • draw
    • exposure
    • external
    • feature
    • filters
    • future
    • graph
    • io
    • measure
    • morphology
    • restoration
    • segmentation
    • transform
    • util
    • viewer

Submodule Contents

  • skimage

    • Subpackages
    • Utility Functions
    • dtype_limits
    • ensure_python_version
    • img_as_bool
    • img_as_float
    • img_as_float32
    • img_as_float64
    • img_as_int
    • img_as_ubyte
    • img_as_uint
    • lookfor
  • Module: 

    color

    • convert_colorspace
    • guess_spatial_dimensions
    • rgba2rgb
    • rgb2hsv
    • hsv2rgb
    • rgb2xyz
    • xyz2rgb
    • rgb2rgbcie
    • rgbcie2rgb
    • rgb2grey
    • rgb2gray
    • gray2rgb
    • grey2rgb
    • xyz2lab
    • lab2xyz
    • lab2rgb
    • rgb2lab
    • rgb2hed
    • hed2rgb
    • lab2lch
    • lch2lab
    • rgb2yuv
    • yuv2rgb
    • rgb2yiq
    • yiq2rgb
    • rgb2ypbpr
    • ypbpr2rgb
    • rgb2ycbcr
    • ycbcr2rgb
    • rgb2ydbdr
    • ydbdr2rgb
    • separate_stains
    • combine_stains
    • label2rgb
    • deltaE_cie76
    • deltaE_ciede94
    • deltaE_ciede2000
    • deltaE_cmc
  • Module: 

    data

    • load
    • astronaut
    • binary_blobs
    • camera
    • checkerboard
    • chelsea
    • clock
    • coffee
    • coins
    • horse
    • hubble_deep_field
    • immunohistochemistry
    • lbp_frontal_face_cascade_filename
    • lfw_subset
    • logo
    • microaneurysms
    • moon
    • page
    • text
    • retina
    • rocket
    • stereo_motorcycle
  • Module: 

    draw

    • line
    • line_aa
    • bezier_curve
    • polygon
    • polygon_perimeter
    • ellipse
    • ellipse_perimeter
    • ellipsoid
    • ellipsoid_stats
    • circle
    • circle_perimeter
    • circle_perimeter_aa
    • set_color
    • random_shapes
    • rectangle
    • rectangle_perimeter
  • Module: 

    exposure

    • histogram
    • equalize_hist
    • equalize_adapthist
    • rescale_intensity
    • cumulative_distribution
    • adjust_gamma
    • adjust_sigmoid
    • adjust_log
    • is_low_contrast
  • Module: 

    external

  • Module: 

    external.tifffile

    • imsave
    • imread
    • imshow
    • parse_kwargs
    • TiffFile

    • TiffWriter

    • TiffSequence

  • Module: 

    feature

    • canny
    • daisy
    • hog
    • greycomatrix
    • greycoprops
    • local_binary_pattern
    • multiblock_lbp
    • draw_multiblock_lbp
    • peak_local_max
    • structure_tensor
    • structure_tensor_eigvals
    • hessian_matrix
    • hessian_matrix_det
    • hessian_matrix_eigvals
    • shape_index
    • corner_kitchen_rosenfeld
    • corner_harris
    • corner_shi_tomasi
    • corner_foerstner
    • corner_subpix
    • corner_peaks
    • corner_moravec
    • corner_fast
    • corner_orientations
    • match_template
    • register_translation
    • masked_register_translation
    • match_descriptors
    • plot_matches
    • blob_dog
    • blob_doh
    • blob_log
    • haar_like_feature
    • haar_like_feature_coord
    • draw_haar_like_feature
    • Cascade

    • BRIEF

    • CENSURE

    • ORB

  • Module: 

    filters

    • inverse
    • wiener
    • gaussian
    • median
    • sobel
    • sobel_h
    • sobel_v
    • scharr
    • scharr_h
    • scharr_v
    • prewitt
    • prewitt_h
    • prewitt_v
    • roberts
    • roberts_pos_diag
    • roberts_neg_diag
    • laplace
    • rank_order
    • gabor_kernel
    • gabor
    • try_all_threshold
    • meijering
    • sato
    • frangi
    • hessian
    • threshold_otsu
    • threshold_yen
    • threshold_isodata
    • threshold_li
    • threshold_local
    • threshold_minimum
    • threshold_mean
    • threshold_niblack
    • threshold_sauvola
    • threshold_triangle
    • apply_hysteresis_threshold
    • unsharp_mask
    • LPIFilter2D

  • Module: 

    filters.rank

    • autolevel
    • autolevel_percentile
    • bottomhat
    • equalize
    • gradient
    • gradient_percentile
    • maximum
    • mean
    • geometric_mean
    • mean_percentile
    • mean_bilateral
    • subtract_mean
    • subtract_mean_percentile
    • median
    • minimum
    • modal
    • enhance_contrast
    • enhance_contrast_percentile
    • pop
    • pop_percentile
    • pop_bilateral
    • sum
    • sum_bilateral
    • sum_percentile
    • threshold
    • threshold_percentile
    • tophat
    • noise_filter
    • entropy
    • otsu
    • percentile
    • windowed_histogram
    • majority
  • Module: 

    future

    • manual_lasso_segmentation
    • manual_polygon_segmentation
  • Module: 

    future.graph

    • rag_mean_color
    • cut_threshold
    • cut_normalized
    • ncut
    • show_rag
    • merge_hierarchical
    • rag_boundary
    • RAG

  • Module: 

    graph

    • shortest_path
    • route_through_array
    • MCP

    • MCP_Geometric

    • MCP_Connect

    • MCP_Flexible

  • Module: 

    io

    • call_plugin
    • concatenate_images
    • find_available_plugins
    • imread
    • imread_collection
    • imread_collection_wrapper
    • imsave
    • imshow
    • imshow_collection
    • load_sift
    • load_surf
    • plugin_info
    • plugin_order
    • pop
    • push
    • reset_plugins
    • show
    • use_plugin
    • ImageCollection

    • MultiImage

  • Module: 

    measure

    • find_contours
    • regionprops
    • perimeter
    • approximate_polygon
    • subdivide_polygon
    • ransac
    • block_reduce
    • moments
    • moments_central
    • moments_coords
    • moments_coords_central
    • moments_normalized
    • moments_hu
    • marching_cubes_lewiner
    • marching_cubes_classic
    • mesh_surface_area
    • profile_line
    • label
    • points_in_poly
    • grid_points_in_poly
    • compare_ssim
    • compare_mse
    • compare_nrmse
    • compare_psnr
    • shannon_entropy
    • LineModelND

    • CircleModel

    • EllipseModel

  • Module: 

    morphology

    • binary_erosion
    • binary_dilation
    • binary_opening
    • binary_closing
    • erosion
    • dilation
    • opening
    • closing
    • white_tophat
    • black_tophat
    • square
    • rectangle
    • diamond
    • disk
    • cube
    • octahedron
    • ball
    • octagon
    • star
    • label
    • watershed
    • skeletonize
    • skeletonize_3d
    • thin
    • medial_axis
    • convex_hull_image
    • convex_hull_object
    • reconstruction
    • remove_small_objects
    • remove_small_holes
    • h_minima
    • h_maxima
    • local_maxima
    • local_minima
    • flood
    • flood_fill
    • max_tree
    • area_opening
    • area_closing
    • diameter_opening
    • diameter_closing
    • max_tree_local_maxima
  • Module: 

    restoration

    • wiener
    • unsupervised_wiener
    • richardson_lucy
    • unwrap_phase
    • denoise_tv_bregman
    • denoise_tv_chambolle
    • denoise_bilateral
    • denoise_wavelet
    • denoise_nl_means
    • estimate_sigma
    • inpaint_biharmonic
    • cycle_spin
  • Module: 

    segmentation

    • random_walker
    • active_contour
    • felzenszwalb
    • slic
    • quickshift
    • find_boundaries
    • mark_boundaries
    • clear_border
    • join_segmentations
    • relabel_from_one
    • relabel_sequential
    • watershed
    • chan_vese
    • morphological_geodesic_active_contour
    • morphological_chan_vese
    • inverse_gaussian_gradient
    • circle_level_set
    • checkerboard_level_set
    • flood
    • flood_fill
  • Module: 

    transform

    • match_histograms
    • hough_circle
    • hough_ellipse
    • hough_line
    • probabilistic_hough_line
    • hough_circle_peaks
    • hough_line_peaks
    • radon
    • iradon
    • iradon_sart
    • order_angles_golden_ratio
    • frt2
    • ifrt2
    • integral_image
    • integrate
    • warp
    • warp_coords
    • estimate_transform
    • matrix_transform
    • swirl
    • resize
    • rotate
    • rescale
    • downscale_local_mean
    • pyramid_reduce
    • pyramid_expand
    • pyramid_gaussian
    • pyramid_laplacian
    • EuclideanTransform

    • SimilarityTransform

    • AffineTransform

    • ProjectiveTransform

    • EssentialMatrixTransform

    • FundamentalMatrixTransform

    • PolynomialTransform

    • PiecewiseAffineTransform

  • Module: 

    util

    • img_as_float32
    • img_as_float64
    • img_as_float
    • img_as_int
    • img_as_uint
    • img_as_ubyte
    • img_as_bool
    • dtype_limits
    • view_as_blocks
    • view_as_windows
    • pad
    • crop
    • montage
    • random_noise
    • regular_grid
    • regular_seeds
    • apply_parallel
    • invert
    • unique_rows
  • Module: 

    viewer

    • warn
    • CollectionViewer

    • ImageViewer

  • Module: 

    viewer.canvastools

    • LineTool

    • PaintTool

    • RectangleTool

    • ThickLineTool

  • Module: 

    viewer.plugins

    • CannyPlugin

    • ColorHistogram

    • Crop

    • LabelPainter

    • LineProfile

    • Measure

    • OverlayPlugin

    • PlotPlugin

    • Plugin

  • Module: 

    viewer.utils

    • figimage
    • init_qtapp
    • new_plot
    • start_qtapp
    • update_axes_image
    • ClearColormap

    • FigureCanvas

    • LinearColormap

    • RequiredAttr

  • Module: 

    viewer.viewers

    • CollectionViewer

    • ImageViewer

  • Module: 

    viewer.widgets

    • BaseWidget

    • Button

    • CheckBox

    • ComboBox

    • OKCancelButtons

    • SaveButtons

    • Slider

    • Text