samuroi.util package¶
-
class
samuroi.util.branch.Branch(data=None, x=None, y=None, z=None, r=None)[source]¶ Bases:
objectRepresent a dendrite branch, or part of a dendrite branch. Provide functionality for splitting, joining and iterating over segments.
-
corners¶ Nx2x2 array, where N is the number of corners. The second dimension is for left and right corner. The last dimension holds x,y values.
-
length¶
-
nquadrilaterals¶ The number of segments of this branch
-
outline¶ Return the corners of the branch in such order that they encode a polygon.
-
quadrilaterals¶ Generator over quadrilateral segments of that branch.
-
radius¶ The radius around the anchor points along the branch. (1D array)
-
x¶ The x coordinates of the center points along the branch. (1D array)
-
y¶ The y coordinates of the center points along the branch. (1D array)
-
-
class
samuroi.util.branchmaskcreator.BranchMaskCreator(axes, canvas, update, notify, enabled=False)[source]¶ Bases:
samuroi.util.maskcreator.MaskCreator-
default_radius= 5.0¶
-
enabled¶
-
-
class
samuroi.util.maskcreator.MaskCreator(axes, canvas, update, notify, enabled=False)[source]¶ Bases:
objectManages the interactive creation of masks. I.e. event handling, connecting and disconnecting slots.
-
enabled¶
-
-
class
samuroi.util.pixelmaskcreator.PixelMaskCreator(axes, canvas, update, notify, enabled=False)[source]¶ Bases:
samuroi.util.maskcreator.MaskCreator-
class
Status(x, y, scatter)¶ Bases:
tuple-
scatter¶ Alias for field number 2
-
x¶ Alias for field number 0
-
y¶ Alias for field number 1
-
-
PixelMaskCreator.enabled¶
-
class
-
class
samuroi.util.polymaskcreator.PolyMaskCreator(axes, canvas, update, notify, enabled=False)[source]¶ Bases:
samuroi.util.maskcreator.MaskCreatorManages the interactive creation of polygon masks.
-
class
Status(x, y, line)¶ Bases:
tuple-
line¶ Alias for field number 2
-
x¶ Alias for field number 0
-
y¶ Alias for field number 1
-
-
PolyMaskCreator.enabled¶
-
class