CameraManager
scanimage.components.CameraManager, reachable as hSI.hCameraManager, wraps every
configured camera device in a scanimage.components.cameramanager.CameraWrapper and keeps
each wrapper’s alignment to reference space.
Component
Member |
Description |
|---|---|
|
Array of |
|
The camera currently selected for viewing. |
|
Reset every camera’s alignment to reference space. |
|
Persist the camera alignments to the class data file. |
|
Rebuild the wrapper list after cameras were added or removed. |
hWrapper = hSI.hCameraManager.hSelectedCameraWrapper;
hWrapper.name
CameraWrapper
The wrapper holds the ScanImage-side state; the actual device lives in hDevice and
follows the camera device API.
Member |
Description |
|---|---|
|
Read-only handle to the |
|
The camera’s unique name. |
|
The camera’s coordinate system, named
|
|
Legacy 3x3 affine from camera space to reference space. |
|
Read-only 3x3 affine from pixel coordinates to camera space. |
|
Read-only 3x3 affine from pixel coordinates to reference space. |
|
|
|
Start, stop and query the polled frame acquisition. |
|
Meshgrid over the camera’s field, in camera space. |
|
The same grid in reference space. |
|
Corner points of the camera image, in reference space. |
Camera space is the unit square with corners [-.5 -.5], [.5 -.5], [.5 .5],
[-.5 .5], so pixelToCameraTransform normalizes out the sensor resolution and
hCSZAffineLut carries the alignment.
hWrapper = hSI.hCameraManager.hSelectedCameraWrapper;
img = hWrapper.hDevice.snapshot();
[xx,yy] = hWrapper.getRefCornerPoints();
fprintf('camera covers x = %.2f..%.2f deg\n',min(xx),max(xx));