nd2.structures¶
ExpLoop = Union[TimeLoop, NETimeLoop, XYPosLoop, ZStackLoop, CustomLoop]
module-attribute
¶
LoopParams = Union[TimeLoopParams, NETimeLoopParams, XYPosLoopParams, ZStackLoopParams]
module-attribute
¶
ModalityFlags = Literal['aux', 'brightfield', 'camera', 'diContrast', 'dsdConfocal', 'fluorescence', 'gaasp', 'iSIM', 'laserScanConfocal', 'liveSR', 'multiphoton', 'nonDescannedDetector', 'phaseContrast', 'pmt', 'RCM', 'remainder', 'SIM', 'sora', 'spectral', 'spinningDiskConfocal', 'sweptFieldConfocalPinhole', 'sweptFieldConfocalSlit', 'TIRF', 'transmitDetector', 'vaasIF', 'vaasNF', 'VCS', 'virtualFilter']
module-attribute
¶
AnimParam
dataclass
¶
Parameters of ROI position/shape.
boxShape: BoxShape = field(default_factory=BoxShape)
class-attribute
instance-attribute
¶
center: XYZPoint
property
¶
Center point as a named tuple (x, y, z).
centerX: float = 0
class-attribute
instance-attribute
¶
centerY: float = 0
class-attribute
instance-attribute
¶
centerZ: float = 0
class-attribute
instance-attribute
¶
enabled: bool = True
class-attribute
instance-attribute
¶
extrudedShape: ExtrudedShape = field(default_factory=ExtrudedShape)
class-attribute
instance-attribute
¶
rotationZ: float = 0
class-attribute
instance-attribute
¶
timeMs: float = 0
class-attribute
instance-attribute
¶
Attributes
¶
bitsPerComponentInMemory: int
instance-attribute
¶
bitsPerComponentSignificant: int
instance-attribute
¶
channelCount: int | None = None
class-attribute
instance-attribute
¶
componentCount: int
instance-attribute
¶
compressionLevel: float | None = None
class-attribute
instance-attribute
¶
compressionType: Literal['lossless', 'lossy', 'none'] | None = None
class-attribute
instance-attribute
¶
heightPx: int
instance-attribute
¶
pixelDataType: Literal['float', 'unsigned']
instance-attribute
¶
sequenceCount: int
instance-attribute
¶
tileHeightPx: int | None = None
class-attribute
instance-attribute
¶
tileWidthPx: int | None = None
class-attribute
instance-attribute
¶
widthBytes: int | None = None
class-attribute
instance-attribute
¶
widthPx: int | None = None
class-attribute
instance-attribute
¶
BoxShape
¶
Channel
dataclass
¶
ChannelMeta
dataclass
¶
color: Color
instance-attribute
¶
colorRGBA: int
property
¶
Return color as unsigned 4-byte (32-bit) integer in ABGR format.
emissionLambdaNm: float | None = None
class-attribute
instance-attribute
¶
excitationLambdaNm: float | None = None
class-attribute
instance-attribute
¶
index: int
instance-attribute
¶
name: str
instance-attribute
¶
Color
¶
a: float = 1.0
class-attribute
instance-attribute
¶
b: int
instance-attribute
¶
g: int
instance-attribute
¶
r: int
instance-attribute
¶
as_abgr_u4() -> int
¶
Return color as an unsigned 4-byte (32-bit) integer in ABGR format.
This is the native format of NIS Elements.
as_hex() -> str
¶
Return color as a hex string.
from_abgr_u4(val: int) -> Color
classmethod
¶
Create a color from an unsigned 4-byte (32-bit) integer in ABGR format.
Coordinate
¶
CustomLoop
dataclass
¶
ExperimentEvent
dataclass
¶
data: str = ''
class-attribute
instance-attribute
¶
description: str = ''
class-attribute
instance-attribute
¶
id: int = 0
class-attribute
instance-attribute
¶
meaning: EventMeaning = EventMeaning.Unspecified
class-attribute
instance-attribute
¶
stimulation: StimulationEvent | None = None
class-attribute
instance-attribute
¶
time: float = 0.0
class-attribute
instance-attribute
¶
time2: float = 0.0
class-attribute
instance-attribute
¶
ExtrudedShape
¶
FrameChannel
dataclass
¶
FrameMetadata
dataclass
¶
ImageInfo
¶
InterpType
¶
LoopIndices
dataclass
¶
CustomLoop: int | None = field(default=None, repr=False, compare=False)
class-attribute
instance-attribute
¶
NETimeLoop: int | None = None
class-attribute
instance-attribute
¶
TimeLoop: int | None = None
class-attribute
instance-attribute
¶
XYPosLoop: int | None = None
class-attribute
instance-attribute
¶
ZStackLoop: int | None = None
class-attribute
instance-attribute
¶
LoopType
¶
CustomLoop = 7
class-attribute
instance-attribute
¶
ManTimeLoop = 9
class-attribute
instance-attribute
¶
NETimeLoop = 8
class-attribute
instance-attribute
¶
PolarLoop = 5
class-attribute
instance-attribute
¶
SpectLoop = 6
class-attribute
instance-attribute
¶
TimeLoop = 1
class-attribute
instance-attribute
¶
Unknown = 0
class-attribute
instance-attribute
¶
XYDiscrLoop = 3
class-attribute
instance-attribute
¶
XYPosLoop = 2
class-attribute
instance-attribute
¶
ZStackLoop = 4
class-attribute
instance-attribute
¶
ZStackLoopAccurate = 10
class-attribute
instance-attribute
¶
Metadata
dataclass
¶
Microscope
dataclass
¶
immersionRefractiveIndex: float | None = None
class-attribute
instance-attribute
¶
modalityFlags: list[ModalityFlags] = field(default_factory=list)
class-attribute
instance-attribute
¶
objectiveMagnification: float | None = None
class-attribute
instance-attribute
¶
objectiveName: str | None = None
class-attribute
instance-attribute
¶
objectiveNumericalAperture: float | None = None
class-attribute
instance-attribute
¶
pinholeDiameterUm: float | None = None
class-attribute
instance-attribute
¶
projectiveMagnification: float | None = None
class-attribute
instance-attribute
¶
zoomMagnification: float | None = None
class-attribute
instance-attribute
¶
NETimeLoop
dataclass
¶
PeriodDiff
dataclass
¶
Position
dataclass
¶
ROI
dataclass
¶
RoiInfo
dataclass
¶
Info associated with an ROI.
appData: int = 0
class-attribute
instance-attribute
¶
autodetected: bool = False
class-attribute
instance-attribute
¶
bpc: int = 16
class-attribute
instance-attribute
¶
color: int = 255
class-attribute
instance-attribute
¶
compCount: int = 2
class-attribute
instance-attribute
¶
cookie: int = 0
class-attribute
instance-attribute
¶
gradientStimulation: bool = False
class-attribute
instance-attribute
¶
gradientStimulationBitDepth: int = 0
class-attribute
instance-attribute
¶
gradientStimulationHi: float = 0.0
class-attribute
instance-attribute
¶
gradientStimulationLo: float = 0.0
class-attribute
instance-attribute
¶
interpType: InterpType
instance-attribute
¶
label: str = ''
class-attribute
instance-attribute
¶
locked: bool = False
class-attribute
instance-attribute
¶
multiFrame: bool = False
class-attribute
instance-attribute
¶
scope: ScopeType = ScopeType.Global
class-attribute
instance-attribute
¶
shapeType: RoiShapeType
instance-attribute
¶
stimulationGroup: int = 0
class-attribute
instance-attribute
¶
RoiShapeType
¶
The type of ROI shape.