Library modules
snapshot
-
anatomist.snapshot.autocrop(img, bgcolor)[source]
Crops an image given a background color
-
anatomist.snapshot.detect_min_max_slices(data, slice_directions=['A'], threshold=0)[source]
Returns first and last non empty slices
slices_minmax[direction] = (first_nonempty_slice, last_nonempty_slice)
-
anatomist.snapshot.get_snapshot(w, size)[source]
From a AWindow, returns a PIL screenshot
-
anatomist.snapshot.qt_to_pil_image(qimg)[source]
Converting a Qt Image or Pixmap to PIL image
followerobject
Follower object module
A “follower” object is a small representation of the bounding box of an object
(a cube or parallelepiped) which follows its position and orientation.
main class: :class:``ObjectFollowerCube`
-
class anatomist.cpp.followerobject.ObjectFollowerCube(obj)[source]
Cube (or parallelepiped) representing the bounding box of an object,
or of several objects.
-
boundingbox()[source]
object(s) bounding box
-
redraw()[source]
re-calculates the bounding mesh
-
setObserved(obj)[source]
sets the observed objects
-
unregisterObservable(self, a0: anatomist.Observable | None)[source]
-
update(self, observable: anatomist.Observable | None, arg: PyQt5.sip.voidptr | None)[source]
palettecontrastaction
Module providing a control to set the colormap ranges
Main class: PaletteContrastAction
-
class anatomist.cpp.palettecontrastaction.PaletteContrastAction[source]
Anatomist Action class for palette contrasts adjustment
-
moveContrastMin(x, y, globx, globy)[source]
action move
-
name(self) → object[source]
-
resetPalette()[source]
reset the palette to standard values
-
startContrast(x, y, globx, globy)[source]
action start
-
stopContrast(x, y, globx, globy)[source]
action stop
paletteEditor
Palette editor widget.
This seems to be an older attempt for a small palette edition widget.
A newer one is found in anatomist.cpp.minipalettewidget, whose author was not aware of this one.
However this one is used in BrainVisa nuclear imaging toolbox, so cannot be removed until we replace its uses with the newer one.
-
class anatomist.cpp.paletteEditor.PaletteEditor(image, default=None, title='', palette_filter=None, real_min=0, real_max=100, parent=None, sliderPrecision=100, zoom=1, all_palettes=False)[source]
Palette editor widget
-
closeEvent(self, a0: Optional[QCloseEvent])[source]
simplecontrols
Simplified controls useful to avoid complex interactions.
When you need them in a custom application, you need to register them first in
the ControlManager. They are already registered in the action/control
dictionaries.
-
class anatomist.cpp.simplecontrols.ResetFOVAction[source]
-
name(self) → object[source]
-
class anatomist.cpp.simplecontrols.Simple2DControl(prio=25, name='Simple2DControl')[source]
Simplified control for 2D views
-
doAlsoOnDeselect(self, a0: anatomist.ActionPool | None)[source]
-
eventAutoSubscription(self, a0: anatomist.ActionPool | None)[source]
-
class anatomist.cpp.simplecontrols.Simple3DControl(prio=26, name='Simple3DControl')[source]
Simplified control for 3D views: still allow rotation using mouse mid button
-
eventAutoSubscription(self, a0: anatomist.ActionPool | None)[source]
-
anatomist.cpp.simplecontrols.registerSimpleControls()[source]
register actions and controls