ClickAndTeachViewModelCreateRoiImage Method |
Creates an image from the given ROI. In multi head scenarios a
combined image from several cameras will be created if necessary.
Namespace: RAYLASE.Marker.ClickAndTeachPluginAssembly: RAYLASE.Marker.ClickAndTeachPlugin (in RAYLASE.Marker.ClickAndTeachPlugin.dll) Version: 2.49.0
Syntaxpublic Mat CreateRoiImage(
WorkspaceRegion roi,
out Rectangle rectPixel,
out int unifiedFieldWidthPxl,
out int unifiedFieldHeightPxl,
out int wrkspcWidthPxl,
out int wrkspcHeightPxl,
BasePluginCamera forcedCamera = null,
JobDefinition jobDef = null
)
Parameters
- roi WorkspaceRegion
- The region of interest in workspace world coordinates
without any transformations; i. e. as given in the settings dialog.
- rectPixel Rectangle
- The rectangle where the created ROI is located
in the workspace in pixel coordinates.
- unifiedFieldWidthPxl Int32
- The unified field's width in pixel.
- unifiedFieldHeightPxl Int32
- The unified field's 's height in pixel.
- wrkspcWidthPxl Int32
- The pixel width of the workspace.
- wrkspcHeightPxl Int32
- The pixel height of the workspace.
- forcedCamera BasePluginCamera (Optional)
- If not null, this camera's scan field is used
to get the ROI.
- jobDef JobDefinition (Optional)
- The job definition must be provided in case we
are called from image processing to get the workspace.
Return Value
MatThe image of the given ROI
See Also