darsia.BoxSelectionAssistant#
- class BoxSelectionAssistant(img, **kwargs)[source]#
Bases:
PointSelectionAssistantInteractive assistant for drawing one or more rectangular boxes on an image.
Methods
Attributes
Name of assistant.
Width and height of selected box(es).
Output of assistant.
Image shape.
Dimension of image.
ptsSelected points in voxel format with matrix indexing.
return_coordinatesFlag controlling whether to return coordinates or voxels.
labelsLabels for the image.
imgImage to be analyzed.
backgroundBackground image for plotting.
figFigure for analysis.
axAxes for analysis.
blockFlag controlling whether figure is blocking.
plot_gridFlag controlling whether grid is plotted (in 2d).
thresholdThreshold for active voxels (in 3d).
relativeFlag controlling whether threshold is relative (in 3d).
scalingScaling of points (in 3d).
scatterFlag controlling whether scatter plot is used (in 3d).
use_coordinatesFlag controlling whether plots use physical coordinates.
verbosityFlag controlling verbosity.
cmapColormap for plotting.
- boxes#
Output of assistant.
- dim#
Dimension of image.
- name#
Name of assistant.
- shape#
Image shape.
- width#
Width and height of selected box(es).