This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from skimage.graph.heap import BinaryHeap as BinaryHeap_sk | |
import time | |
VALUE_T = nb.float64 | |
REFERENCE_T = nb.int32 | |
@nb.jit # jit is slightly faster, compile time for autojit is ~2s | |
class BinaryHeap: | |
@nb.void(nb.int32) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import skimage.measure | |
import skimage.morphology | |
import visvis as vv | |
from visvis.utils import iso | |
import numpy as np | |
def ball(radius, dtype=np.uint8): | |
# New from skimage.morphology |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MouseEvent(Event): | |
""" Class describing mouse events. | |
Input arguments | |
--------------- | |
source : object | |
The visualization object that this event is created from or applies to. | |
type : str | |
string indicating the event type (e.g. mouse_press, key_release) | |
kwds : keyword arguments |
NewerOlder