<div dir="ltr"><div><div><div><div><div>Hello all,<br><br></div>related to a couple of conversations we've had here I've noticed a strange behaviour that is related to the LabelMap representation.<br><br></div>I have two label objects<br><br>

<p style="margin:0px;text-indent:0px"><span style="font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)">bounding box1 ImageRegion (0x7fd381317888)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)">  Dimension: 3</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)">  Index: [23, 40, 2]</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)">  Size: [60, 71, 9]</span></p>
<p style="margin:0px;text-indent:0px;font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)"><br></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)">bounding box2 ImageRegion (0x7fd38131a328)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)">  Dimension: 3</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)">  Index: [74, 18, 2]</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)">  Size: [24, 39, 9]</span></p><p style="margin:0px;text-indent:0px"><br><span style="font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)"></span></p><p style="margin:0px;text-indent:0px"><span style="font-family:"Monaco";font-size:10pt;color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif">If I create a region of size [100, 120, 11] it should be able to store those two objects.</span><br></span></p><br></div>However, (maybe) that is not the case because the objects are not drawn at slice 2 but on slice 5 when I write the output of<span style="color:rgb(255,139,255)"> LabelMapToLabelImageFilter</span>. There is no exception thrown, thought.<br><br>I've also noticed that using the Shift function of the LabelObject doesn't change the object's boundingBox, which leds me to think that each pixel has a shift somehow not related to the bounding box.<br><br></div><div>I can provide a Minimum Working Example if needed.<br><br></div><div>I've read the article journal, but I couldn't see the answer, may be related to 'storing the label objects as lines', which I don't completely understand what's the graphical representation of those lines.<br></div><div><br>What is going on?<br><br>Cheers,<br><br>Pol</div></div></div>