0x000eHx

Results 2 comments of 0x000eHx

Did someone find an ipyleaflet/ipywidget event which gets called after `on_draw`, meaning the the DrawControl.data property is updated by then? It's weird to access DrawControl.data within another methode for finally...

Ok, I didn't know there was an alternative already implemented in opencv called [distanceTransform](https://docs.opencv.org/4.5.5/d7/d1b/group__imgproc__misc.html#ga8a0b7fdfcb7a13dde018988ba3a43042). With the parameters `cv2.distanceTransform(.astype(np.uint8), distanceType=cv2.DIST_L2, maskSize=cv2.DIST_MASK_PRECISE, dstType=cv2.CV_32F)` its the same calculation as `scipy.ndimage.distance_transform_edt()` does. That one...