Analyse d'images biomédicales en Python
Stephen Bailey
Instructor
im=imageio.imread('foot-xray.jpg')weights = [[+1, +1, +1], [ 0, 0, 0], [-1, -1, -1]]edges = ndi.convolve(im, weights)plt.imshow(edges, cmap='seismic')



ndi.sobel(im, axis=0)

ndi.sobel(im, axis=1)

Combinez les contours horizontaux et verticaux en calculant la distance :
$$z = \sqrt{x^2 + y^2}$$
edges0=ndi.sobel(im, axis=0)
edges1=ndi.sobel(im, axis=1)
edges=np.sqrt(np.square(edges0) +
np.square(edges1))
plt.imshow(edges, cmap='gray')

Analyse d'images biomédicales en Python