Documente Academic
Documente Profesional
Documente Cultură
Emmanuelle Gouillart
plotly and scikit-image team
@EGouillart
Image processing for science and business
What is scikit-image?
An open-source (BSD)
non-local means denoising blob detection super-pixels skeleton & local diameter
No bleeding-edge algorithm
Development
image file(s) environment
array 1 75 ... 32
...
10 3 ... 2
machine learning
...
...
...
8 5 ... 73 4 10 ... 55
...
...
78 98 ... 9 10 3 ... 9
image properties
object properties
visualization
First steps with scikit-image
import numpy as np
image = np . ones ((5 , 5) )
image [0 , 0] = 0
image [2 , :] = 0
x
Manipulating images as numerical (numpy) arrays
import numpy as np
image = np . ones ((5 , 5) )
image [0 , 0] = 0
image [2 , :] = 0
x
>>> coffee.shape
(400, 600, 3)
>>> red channel = coffee[...,
0]
>>> image 3d = np.ones((100,
100, 100))
API of scikit-image
module skimage
function denoise_bilateral
Powered by sphinx-gallery
Getting started: finding documentation
Auto documenting your API with links to examples
Auto documenting your API with links to examples
Picture denoising
Picture denoising
Denoising tomography images
@memory . cache
d e f mem_label ( x ) :
r e t u r n measure . label ( x )
@memory . cache
d e f mem_threshold_otsu ( x ) :
r e t u r n filters . thres hold_ots u ( x )
[...]
val = m e m _ t h r e s h o l d _ o t s u ( dat )
objects = dat > val
median_dat = m e m _ m e d i a n _ f i l t e r ( dat , 3 )
val2 = m e m _ t h r e s h o l d _ o t s u ( median_dat [ objects ] )
liquid = median_dat > val2
s e g m e n t a t i o n _ r e s u l t = np . copy ( objects ) . astype ( np . uint8 )
s e g m e n t a t i o n _ r e s u l t [ liquid ] = 2
aggregates = m e m _ b i n a r y _ f i l l _ h o l e s ( objects )
cores = m e m _ b i n a r y _ e r o s i o n ( aggregates , np . ones ( ( 1 0 , 1 0 , ←-
10) ) )
More interaction for faster discovery: widgets
Interaction with images: annotations
More interaction for faster discovery: web applications made easy
Package: http://github.com/plotly/dash-canvas
pip install dash-canvas
Gallery: https://dash-canvas.plotly.host/
Based on react-sketch, fabricJS and Dash.
https://dash-canvas.plotly.host/segmentation/
Available components
dash html components
HTML elements html.H5
Interactive DataTable
https://dash-canvas.plotly.host/
Roadmap of dash-canvas
Richer interaction with images
Thank you!
Feedback very welcome
Be in touch @EGouillart