You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CSK_Module_MultiImageEdgeMatcher/pages/pages/CSK_Module_MultiImageEdgeMatcher/CSK_Module_MultiImageEdgeMatcher.html
Copy file name to clipboardExpand all lines: CSK_Module_MultiImageEdgeMatcher/project.mf.xml
+28-6Lines changed: 28 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,13 @@ This module provides a UI for all relevant features. +
11
11
{empty} +
12
12
Typically to configure this module to work with other modules you should do this: +
13
13
{empty} +
14
-
1) If multiple instances are needed, these can be added via addInstance() (not needed if you only use 1 single instace). +
14
+
1) If multiple instances are needed, these can be added via 'addInstance' (not needed if you only use 1 single instace). +
15
15
2) Select the instance you want to configur via setInstance(). +
16
16
3) Set the event providing the images to be processed e.g. via setRegisterEvent('CSK_ImagePlayer.OnNewImage'). +
17
17
4) Optionally edit EdgeMatcher parameters via 'setEdgeThreshold', 'setMaximumMatches', 'setDownsampleFactor'. +
18
18
5) Press the "Teach Mode" button within the UI. It will provide a ROI editor to select a an object and show its teached edges. Press the button again to confirm the teached structure.+
19
19
6) Define the minimum valid score via 'setMinScore'. +
20
-
7) The module will align the image in relation to the first found object. Other modules can register on the 'CSK_MultiImageEdgeMatcher.OnNewAlignedImage[NUM]' event to receive the aligned image for further processing or on 'OnNewStatusFoundMatchesNUM' / 'OnNewStatusMatchScoreResultNUM' to receive the processing result values. +
20
+
7) The module will align the image in relation to the first found object. Other modules can register on the 'CSK_MultiImageEdgeMatcher.OnNewAlignedImage[NUM]' event to receive the aligned image for further processing, on the 'CSK_MultiImageEdgeMatcher.OnNewTransformation[NUM]' event to receive the transformation itself or on 'OnNewStatusFoundMatchesNUM' / 'OnNewStatusMatchScoreResultNUM' to receive the processing result values. +
21
21
{empty} +</desc>
22
22
<serves>
23
23
<eventname="OnNewStatusLoadParameterOnReboot">
@@ -68,15 +68,15 @@ Typically to configure this module to work with other modules you should do this
68
68
</event>
69
69
<eventname="OnNewValueUpdateNUM">
70
70
<desc>Example of dynamically created event to sync paramters between instance threads and Controller part of module. +
71
-
NUM will be replaced by the number of instance (e.g. "OnNewResult1"). +</desc>
71
+
NUM will be replaced by the number of instance (e.g. "OnNewValueUpdate1"). +</desc>
72
72
<paramdesc="Instance new value is coming from."multiplicity="1"name="instance"type="int"/>
73
73
<paramdesc="Name of the paramter to update/sync."multiplicity="1"name="parameter"type="string"/>
74
74
<paramdesc="Value to update."multiplicity="1"name="value"type="auto"/>
75
75
<paramdesc="Optionally if internal parameter should be used for internal objects."multiplicity="?"name="selectedObject"type="int"/>
76
76
</event>
77
77
<eventname="OnNewValueToForwardNUM">
78
78
<desc>Example of dynamically created event to forward data from instance thread to Controller part of module, e.g. to forward values to UI. +
79
-
NUM will be replaced by the number of instance (e.g. "OnNewResult1"). +</desc>
79
+
NUM will be replaced by the number of instance (e.g. "OnNewValueToForward1"). +</desc>
80
80
<paramdesc="Eventname to use to forward value."multiplicity="1"name="eventname"type="string"/>
81
81
<paramdesc="Value to forward."multiplicity="1"name="value"type="auto"/>
82
82
</event>
@@ -139,6 +139,20 @@ NUM will be replaced by the number of instance (e.g. "OnNewStatusFoundMatches1")
139
139
INFO: Other modules can check via "Script.isServedAsEvent" if event of sepecific instance exists.</desc>
140
140
<paramdesc="Amount of found matches."multiplicity="1"name="amount"type="int"/>
141
141
</event>
142
+
<eventname="OnNewTransformationNUM">
143
+
<desc>Example of dynamically created event to provide transformation data to be used for post processing. +
144
+
NUM will be replaced by the number of instance (e.g. "OnNewTransformation1"). +
145
+
INFO: Other modules can check via "Script.isServedAsEvent" if event of sepecific instance exists.</desc>
-- Option A --> prepare an event to trigger processing via this one
71
-
--Script.serveEvent("CSK_MultiImageEdgeMatcher.OnNewTestEvent", "MultiImageEdgeMatcher_OnNewTestEvent") --> Create event to listen to and process forwarded object
72
-
--CSK_MultiImageEdgeMatcher.setRegisterEvent('CSK_MultiImageEdgeMatcher.OnNewTestEvent') --> Register processing to the event
73
-
74
-
--Script.notifyEvent('OnNewTestEvent', data)
75
-
76
-
-- Option B --> trigger processing via function call
77
-
local result = CSK_MultiImageEdgeMatcher.processSomething(data)
78
-
79
-
end
80
-
end
81
-
82
-
-- Call processing function after persistent data was loaded
0 commit comments