News & Resources

scikit-shape Purpose

Simple Example

Shape analysis in Python

Scikit-shape is a Python toolbox for shape detection, image segmentation, and shape analysis. We provide this package as a free, open-source Python module to the research community. Its functionality is well suited to applications in medical image processing, medical image analysis, imaging for astronomy or Earth science, and machine vision.

Scikit-shape is built on the NumPy and SciPy packages to enable Matlab-like interactivity with advanced scripting capabilities and to interface easily with other image processing and machine learning packages, such as SciPy, scikit-image, scikit-learn. If this sounds useful, click below to try it out.

Download

Analyzing an image with scikit-shape is easy! For more you can do with scikit-shape, visit our Examples page.

from skshape.image.segmentation.segment
    import segment_phase_field

I = plt.imread('two_galaxies.png')
# ... or any other valid image
InitSeg = (I > 0.2)
FinSeg = segment_phase_field(I, InitSeg)
plt.figure()
plt.imshow(FinSeg)
plt.show()
        
_images/ExampleFigure.png

You can read more in our user guide.