Dalsa |
The DalsaCamera type exposes the following members.
Name | Description | |
---|---|---|
![]() | CalcInterpolatedCenterOffsetCorrection |
During camera calibration we create a set of RectificationData
objects (8 or 16, dependent on quadratic or cubic interpolation) at
some positions in the scan field. For other positions we need
interpolated ones.
(Inherited from BasePluginCamera) |
![]() | CalcReducedWidthHeightAndOffsets |
Calculates to the wanted width and height valid width, height and
offset values fulfilling these conditions:
- Width must be a multiple of 8.
- Width must be >= FieldWidthMinPixel.
- Height must be a multiple of 4.
- Height must be >= FieldHeightMinPixel.
- OffsetX must be a multiple of 4.
- OffsetY must be a multiple of 4.
- OffsetX must be MaxWidth/2 - Width/2.
- OffsetY must be MaxHeight/2 - Height/2.
(Overrides BasePluginCameraCalcReducedWidthHeightAndOffsets(Int32, Int32, Int32, Int32, Int32, Int32)) |
![]() | CheckCuttingSize |
Checks if the given size is less than the camera's hardware sensor
size.
(Inherited from BasePluginCamera) |
![]() | CheckOnChangedScanHeadParameters |
Checks if some scan head parameters has changed after the camera
has been calibrated. A re-calibration is necessary when the scan
head, its correction file or the scan field size has changed.
(Inherited from BasePluginCamera) |
![]() | ClearScanFieldImage |
Creates a new scan field image Mat object and fills it with empty
pixels.
(Inherited from BasePluginCamera) |
![]() | Connect |
Tries to connect with the camera whose ID is stored in property
CameraID. Called by RAYGUIDE's DeviceControllerService, e. g. at
program start.
(Overrides BaseDeviceControllerConnect) |
![]() | Connect(String) | Tries to connect with the camera with the given ID. Called by the settings dialog when pressing the connect button. |
![]() | ConvertPixelLengthToWorldLength(Double) |
Converts a distance, given in pixel coordinates, into the same
distance in world coordinates. The downscale factor is taken into
account.
(Inherited from BasePluginCamera) |
![]() | ConvertPixelLengthToWorldLength(dvec2) | (Inherited from BasePluginCamera) |
![]() | ConvertPixelPosToWorldPos |
Inversion method of ConvertWorldPosToPixelPos().
(Inherited from BasePluginCamera) |
![]() | ConvertScanFieldPixelToWorld |
converts scan field pixel point to the scan field or world coordinates (µm)
pixel coordinate system:
left top 0/0
right bottom w/h
(Inherited from BasePluginCamera) |
![]() | ConvertScanFieldWorldToPixel |
converts scan field or world coordinates to pixel
(Inherited from BasePluginCamera) |
![]() | ConvertWorldLengthToPixelLength |
Converts a distance, given in world coordinates, into the same
distance in pixel coordinates. The downscale factor is taken into
account.
(Inherited from BasePluginCamera) |
![]() | ConvertWorldPosToPixelPos |
Converts a point in world coordinates into pixel coordinates. The
current size in world coordinates and the current pixel size of the
scan field is taken into account. The origin in world coordinates
is expected to be in the middle of the field.
Attention: Field and process transformations are not considered.
(Inherited from BasePluginCamera) |
![]() | ConvertWorldToPixel(dvec2) |
same functionality as the one above, just using the DownscalFactor from the camera
(Inherited from BasePluginCamera) |
![]() | ConvertWorldToPixel(dvec2, Double) |
Converts a point in world coordinates into pixel coordinates using
the field sizes in world and pixel coordinates and the downscale
factor. In difference to ConvertWorldPosToPixelPos() the origin in
world coordinates is not expected to be in the center of the field.
The origin of the pixel coordinates is expected to be in the upper
left corner.
(Inherited from BasePluginCamera) |
![]() | ConvertWorldToPixel(dvec3, Double) | (Inherited from BasePluginCamera) |
![]() | CreateDownscaledTakenPicture |
Creates a downscaled, three channel Mat object from the given, one
channel takenPictureMat and adds a red cross hair if wanted.
(Inherited from BasePluginCamera) |
![]() | CropPicture |
Crops the given srcMat according to the rectification crop factor,
needed to avoid black artifact stripes caused by the rectification
on F-Theta lens systems.
(Inherited from BasePluginCamera) |
![]() | CutRegionMat |
Creates a cutting of the taken scan field image based on the given
center point and the given size.
(Inherited from BasePluginCamera) |
![]() | Disconnect |
Disconnects the camera. Called by RAYGUIDE's
DeviceControllerService, e.g. at program end.
(Overrides BaseDeviceControllerDisconnect) |
![]() | Dispose | (Inherited from BasePlugin) |
![]() | Dispose(Boolean) |
Stops the streaming and disconnects the camera.
(Inherited from BasePluginCamera) |
![]() | DisposeUI |
Disposes the given setting view.
(Inherited from BaseDeviceController) |
![]() | DoDisposeUI | (Inherited from BasePlugin) |
![]() | DoShowUI |
Opens the camera's configuration dialog. Called by RAYGUIDE's
dialog service.
(Overrides BasePluginDoShowUI(String)) |
![]() | DoShowUICallback |
Callback method to get modified data out of the camera settings
dialog.
(Overrides BasePluginDoShowUICallback(PluginSettingsView)) |
![]() | FieldImageCenterInPixel |
return the real center point of Image rect in pixel
(Inherited from BasePluginCamera) |
![]() | GetDeviceStatusRepresentation |
Returns the color and description of device state. Useful for UI purpose.
(Inherited from BaseDeviceController) |
![]() | GetFieldAndProcessTrafo | (Inherited from BasePluginCamera) |
![]() | GetFieldSizePixel |
Size of one camera image
(Inherited from BasePluginCamera) |
![]() | GetLastScanHeadPositionFieldRectPixel | (Inherited from BasePluginCamera) |
![]() | GetRectificationCalibrationTilePositions |
Creates a list of 9 points being the positions of the center of the
tiles that are used during the rectification calibration.
(Inherited from BasePluginCamera) |
![]() | GetRegionInPixel |
Rectangle in image pixel + rotation for RegionOfInterest
(Inherited from BasePluginCamera) |
![]() | GetRegionMat |
Image of RegionOfInterest
(Inherited from BasePluginCamera) |
![]() | GetScanFieldSizePixel |
Gets the field size in pixels with respect to the downscale factor
the user has set.
(Inherited from BasePluginCamera) |
![]() | GetScanHeadPositionFieldRectPixel | (Inherited from BasePluginCamera) |
![]() | GetUsedScanController | (Inherited from BasePluginCamera) |
![]() | HandleCombinePixelsChanges |
Handles wanted binning changes in the camera settings by writing the
values to the hardware only if needed.
(Overrides BasePluginCameraHandleCombinePixelsChanges(Boolean)) |
![]() | HandleExternalDeviceRequestAsync | (Overrides BaseDeviceControllerHandleExternalDeviceRequestAsync(IListTupleChainableFeatureType, ExpandoObject, CancellationToken)) |
![]() | Initialize |
Retrieves the scan head from the device list whose short label
matches the serialized ScanHeadID property.
(Overrides BasePluginInitialize) |
![]() | InitializeCalibrationDataSet |
Initializes the calibration data set based on the scan head's
configuration file. If there are no entries in the dictionary, two
entries are created with the top and bottom z-values. Otherwise
the min and max focus levels are read from the dictionary's min
and max levels.
The remaining data must be filled later with the calibration data.
(Inherited from BasePluginCamera) |
![]() | InterpolateCalibrations |
Interpolates to a given z value between the two nearest calibration
sets.
The dictionary _calibrationDataSet contains an arbitrary number of
calibrations (at least one), each calibrated at a specific z value.
To get the calibration at an arbitrary z value, the nearest two
calibrations are searched and all calibration data is interpolated
between these two according to the arbitrary z value.
(Inherited from BasePluginCamera) |
![]() | InterruptStreaming | (Inherited from BasePluginCamera) |
![]() | InvokeConnected |
Invokes Connected event.
(Inherited from BaseDeviceController) |
![]() | InvokeDeviceUIRequested |
Callback method to show the nested scan head settings dialog.
(Inherited from BaseCamera) |
![]() | InvokeDisconnected |
Invokes Disconnected event.
(Inherited from BaseDeviceController) |
![]() | InvokeInitialized |
Invokes Initialized event.
(Inherited from BaseDeviceController) |
![]() | InvokeStatusChanged |
Invokes StatusChanged event.
(Inherited from BaseDeviceController) |
![]() | LoadCalibration |
Loads the properties building the calibration data.
(Inherited from BasePluginCamera) |
![]() | OnDevicesChanged | (Inherited from BaseDeviceController) |
![]() | PutIntoMat |
Puts a smaller inMat object into a bigger outMat object at the
given point. In case of picking, centerWorldPoint is the position
where the user has clicked into the workspace, without any
transformations. To get the pixel position where inMat has to be put,
the center offset and other transformations must be applied, before
the point is transformed from world into pixel coordinates. Because
of the center offset the given point is *not* the center of
inMat.
This method is also used when taking pictures of a ROI. In this
case the given point should be the center of the inMat. Therefore
the given point must be adjusted by the center offset before to
compensate the transformation.
(Inherited from BasePluginCamera) |
![]() | Rectify |
Rectifies the image in srcMat according to its center point in the
workspace. The rectification data points are interpolated first
according to the center point.
(Inherited from BasePluginCamera) |
![]() | ResetCameraFieldSize |
Resets the image size to the maximal value, defined by the camera's
physical sensor size.
(Overrides BasePluginCameraResetCameraFieldSize(Boolean)) |
![]() | ResetCameraSettings |
Resets all parameters to the ones stored in the temporary
properties. See comment in StoreCurrentCameraSettings() for
details.
(Inherited from BasePluginCamera) |
![]() | SaveCalibration |
Saves the properties building the calibration data.
(Inherited from BasePluginCamera) |
![]() | SetCameraFieldSize |
Sets the camera's field width and height (in pixel). Can be
overloaded to set it in the camera's real hardware.
(Overrides BasePluginCameraSetCameraFieldSize(Int32, Int32, Int32)) |
![]() | SetCurrentParameterValuesOnCamera |
Sets the camera parameters in the hardware according to the current
parameters in this camera object.
(Inherited from BasePluginCamera) |
![]() | SetExposureTime |
Sets the camera's exposure time. Can be overloaded to set it in the camera's real hardware.
(Inherited from BasePluginCamera) |
![]() | SetExposureTimeOnCamera | (Overrides BasePluginCameraSetExposureTimeOnCamera(Double)) |
![]() | SetFieldTrafoScaleAndRotation | (Inherited from BasePluginCamera) |
![]() | SetGain |
Sets the camera's gain. Can be overloaded to set it in the camera's real hardware.
(Inherited from BasePluginCamera) |
![]() | SetGainOnCamera | (Overrides BasePluginCameraSetGainOnCamera(Double)) |
![]() | SetIsAutoBrightness |
Sets whether the gain and exposure time should be set automatically by the camera.
(Inherited from BasePluginCamera) |
![]() | SetIsAutoBrightnessOnCamera | (Overrides BasePluginCameraSetIsAutoBrightnessOnCamera(Boolean)) |
![]() | SetIsAutoExposure |
Sets whether the exposure time should be set automatically by the camera.
(Inherited from BasePluginCamera) |
![]() | SetIsAutoExposureOnCamera | (Overrides BasePluginCameraSetIsAutoExposureOnCamera(Boolean)) |
![]() | SetIsAutoGain |
Sets whether the gain should be set automatically by the camera.
(Inherited from BasePluginCamera) |
![]() | SetIsAutoGainOnCamera | (Overrides BasePluginCameraSetIsAutoGainOnCamera(Boolean)) |
![]() | SetIsCombinePixels |
Sets whether pixels should be combined.
(Inherited from BasePluginCamera) |
![]() | SetIsCombinePixelsOnCamera | (Overrides BasePluginCameraSetIsCombinePixelsOnCamera(Boolean, Boolean)) |
![]() | SetRectificationCropFactor |
Sets the crop factor needed in case of F-Theta lens systems to
reduce the tile size.
Must be virtual to have access to the settings dialog for updating
the value there.
(Overrides BasePluginCameraSetRectificationCropFactor(Int32)) |
![]() | SetStandardMeasure |
Sets the standard measure in the camera's settings dialog.
Must be virtual to have access to the settings dialog for updating
the value there.
(Overrides BasePluginCameraSetStandardMeasure(Double)) |
![]() | ShowUI |
Shows the specific UI embedded in the plugin instance.
(Inherited from BaseDeviceController) |
![]() | ShowUICallback |
Invokes the callback that can be used when the ShowUI method is done.
(Inherited from BaseDeviceController) |
![]() | ShowUICancelCallback |
Invokes the callback that can be used when the ShowUI method is done and the user pressed the cancel button
(Inherited from BasePlugin) |
![]() | StartStreaming |
Starts the video stream. Not really needed in case of DALSA
cameras (see "JAICamera.cs") when using software triggering.
(Overrides BasePluginCameraStartStreaming) |
![]() | StopStreaming |
Stops the image stream. Not really needed in case of DALSA
cameras (see "JAICamera.cs") and software triggering.
(Overrides BasePluginCameraStopStreaming) |
![]() | StoreCurrentCameraSettings |
Stores all current camera settings in the temporary properties.
This is needed to allow the cancel button in the settings dialog
to work: When the dialog is opened all current settings are stored
here. The user can now change all parameters as he wants it, and
they can be used immediately internally e. g. for the calibration
process (using the possibly changed StandardMeasure e. g.). If the
dialog is canceled afterwards all parameters can be restored
from temporary values.
(Inherited from BasePluginCamera) |
![]() | TakePicture(Boolean, Boolean, Double, Int32, Double) |
Takes a picture with the camera and downscales it if demanded.
The default color (red) is used for the cross hairs.
(Inherited from BasePluginCamera) |
![]() | TakePicture(Boolean, Boolean, Double, Int32, Color, Double) |
Takes a picture with the camera and downscales it if demanded.
(Inherited from BasePluginCamera) |
![]() | TakePictureAndPutItIntoScanFieldImage |
Takes a picture at the given position and puts it into the
untransformed ScanFieldImage at the correct place.
(Inherited from BasePluginCamera) |
![]() | TakePictureMat |
Takes a single picture.
(Overrides BasePluginCameraTakePictureMat(Boolean, Boolean, Double, Double, Color, Double)) |
![]() | ToString | (Inherited from BasePlugin) |
![]() | TransformScanFieldImage |
Transforms the camera's ScanFieldImage according to the current
FieldTrafo and ProcessTrafo by applying the inverses.
(Inherited from BasePluginCamera) |
![]() | TransformWorldPosAndConvertToPixelPos |
Transforms the given point (in world coordinates) according to the
field and process trafo, subtracts the center offset if demanded
and converts it to the same point in pixel coordinates of the big
scan field image.
(Inherited from BasePluginCamera) |
![]() | UpdateFieldSizeProperties | (Inherited from BasePluginCamera) |