Skip to content

Commit ac810ad

Browse files
committed
- Minor edits
1 parent 531a896 commit ac810ad

4 files changed

Lines changed: 14 additions & 7 deletions

File tree

CSK_Module_MultiImageEdgeMatcher/scripts/CSK_MultiImageEdgeMatcher_Processing.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,13 @@ local function handleOnNewProcessing(image)
230230
if processingParams.showImage and processingParams.activeInUI then
231231
for _, outline in ipairs(outlines) do
232232
viewer:addShape(outline, decorationOK, nil, parentID)
233-
local _, xTrans, yTrans = Transform.decomposeRigid2D(poses[j])
233+
local currentPose
234+
if Transform.getType(poses[j]) == 'SIMILARITY' then
235+
_, currentPose = Transform.decomposeSimilarity2D(poses[j])
236+
else
237+
currentPose = poses[j]
238+
end
239+
local _, xTrans, yTrans = Transform.decomposeRigid2D(currentPose)
234240
local textDeco = View.TextDecoration.create()
235241
textDeco:setPosition(xTrans, yTrans)
236242
textDeco:setColor(0, 255, 0, 255)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ The app includes an intuitive GUI.
1010
For further information check out the [documentation](https://raw.githack.com/SICKAppSpaceCodingStarterKit/CSK_Module_MultiImageEdgeMatcher/main/docu/CSK_Module_MultiImageEdgeMatcher.html) in the folder "docu".
1111

1212
## Known issues
13-
- Even if found multiple matches, module will only provide the aligned image / transformation of first match
13+
- Even if found multiple matches, module will only provide the aligned image / transformation of first match
14+
- Limited to CPU processing unit (no FPGA support)
1415

1516
## Information
1617

docu/CSK_Module_MultiImageEdgeMatcher.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ <h1>Documentation - CSK_Module_MultiImageEdgeMatcher 1.0.0</h1>
619619
<div class="details">
620620
<span id="author" class="author">SICK AG</span><br>
621621
<span id="revnumber">version 1.0.0,</span>
622-
<span id="revdate">2024-03-18</span>
622+
<span id="revdate">2024-03-19</span>
623623
</div>
624624
<div id="toc" class="toc2">
625625
<div id="toctitle">Table of Contents</div>
@@ -748,7 +748,7 @@ <h2 id="_document_metadata">Document metadata</h2>
748748
</tr>
749749
<tr>
750750
<th class="tableblock halign-left valign-top"><p class="tableblock">Date</p></th>
751-
<td class="tableblock halign-left valign-top"><p class="tableblock">2024-03-18</p></td>
751+
<td class="tableblock halign-left valign-top"><p class="tableblock">2024-03-19</p></td>
752752
</tr>
753753
<tr>
754754
<th class="tableblock halign-left valign-top"><p class="tableblock">Author</p></th>
@@ -802,9 +802,9 @@ <h4 id="_short_description_2">Short description</h4>
802802
3) Set the event providing the images to be processed e.g. via setRegisterEvent('CSK_ImagePlayer.OnNewImage').<br>
803803
4) Optionally edit EdgeMatcher parameters via 'setEdgeThreshold', 'setMaximumMatches', 'setDownsampleFactor', &#8230;&#8203; (check other 'set&#8230;&#8203;.' function as well..).<br>
804804
INFO: Regarding further details of the EdgeMatcher parameters please read the AppSpace API documentation.<br>
805-
5) Press the "Teach Mode" button within the UI. It will provide a ROI (Region of interest) editor to select an object and show its tought edges. Press the button again to confirm the tought structure.+
805+
5) Press the "Teach Mode" button within the UI. It will provide a ROI (Region of interest) editor to select an object and show its tought edges. Press the button again to confirm the tought structure.<br>
806806
6) Define the minimum valid score via 'setMinScore'.<br>
807-
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.<br>
807+
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 'CSK_MultiImageEdgeMatcher.OnNewStatusFoundMatchesNUM' / 'CSK_MultiImageEdgeMatcher.OnNewStatusMatchScoreResultNUM' to receive the processing result values.<br>
808808
<br></p>
809809
</div>
810810
</div>
@@ -4369,7 +4369,7 @@ <h3 id="API:Enum:CSK_MultiImageEdgeMatcher.BackgroundClutterLevel"><span class="
43694369
<div id="footer">
43704370
<div id="footer-text">
43714371
Version 1.0.0<br>
4372-
Last updated 2024-03-18 15:56:59 +0100
4372+
Last updated 2024-03-19 12:57:50 +0100
43734373
</div>
43744374
</div>
43754375
<script type="text/javascript">

docu/media/UI_Screenshot.png

-70.8 KB
Loading

0 commit comments

Comments
 (0)