<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">What you are describing is the default behavior of the filter. What your problem might be is casting the background value to 8-bit unsigned which is used for the color image. Try <a href="https://itk.org/Doxygen/html/classitk_1_1RescaleIntensityImageFilter.html">rescaling</a> the background image to unsigned char before inputting it to the overlay filter.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 14, 2016 at 10:37 AM, Abdelkhalek Bakkari <span dir="ltr"><<a href="mailto:bakkari.abdelkhalek@hotmail.fr" target="_blank">bakkari.abdelkhalek@hotmail.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-5372470048721983821divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:'Times New Roman',Times,serif" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>I expected that the region which is not overlaid will preserve the same intensity.</p>
<p><br>
</p>
<p>Best regards,</p>
<div id="m_-5372470048721983821Signature">
<div><span style="line-height:18.399999618530273px"><font face="Garamond" size="3"></font></span></div>
<div><span style="line-height:18.399999618530273px"><font face="Garamond" size="3"><br>
</font></span></div>
<div><br>
</div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_-5372470048721983821divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Dženan Zukić <<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>><br>
<b>Sent:</b> 14 November 2016 15:20<br>
<b>To:</b> Abdelkhalek Bakkari<br>
<b>Cc:</b> insight-users<br>
<b>Subject:</b> Re: LabelOverlayImageFilter</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
Hi Abdelkhalek,</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
<br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
what did you expect the filter to do? How does this output differ from you expectation?</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
<br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
Regards,</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
Dženan</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Nov 13, 2016 at 8:46 PM, Abdelkhalek Bakkari <span dir="ltr">
<<a href="mailto:bakkari.abdelkhalek@hotmail.fr" target="_blank">bakkari.abdelkhalek@hotmail.<wbr>fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-5372470048721983821m_3587568107546863538divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:'Times New Roman',Times,serif">
<p><font><font>Dear ITK users,</font></font></p>
<p><font><font><br>
</font></font></p>
<p><font><font>I am tried to adopt the LabelOverlayImageFilter for 3D images. Unfortunately, the final result is not good enough. </font></font></p>
<p><font><font>I will be glad, if you could help me. </font></font></p>
<p><font><font><font><font><br>
</font></font></font></font></p>
<p><font><font>In the attachment, you can find a Slice result.</font></font></p>
<p><font><font><br>
</font></font></p>
<p><font><font>Kind regards,</font></font></p>
<p><br>
</p>
<p><br>
</p>
<div id="m_-5372470048721983821m_3587568107546863538Signature"><font size="3" face="Garamond"><font><font>Abdelkhalek Bakkari</font></font></font>
<div><span style="line-height:14px"><font size="3" face="Garamond"><font><font>Ph.D candidate in Computer Science</font></font></font></span></div>
<div><span style="line-height:20.82666778564453px;background-color:rgb(255,255,255)"><font face="Garamond" size="3"><font><font>Institute of Applied Computer Science</font></font></font></span></div>
<div><span style="line-height:18.399999618530273px"><font face="Garamond" size="3"><font><font>Lodz University of Technology, Poland</font></font></font></span></div>
<div><span style="line-height:18.399999618530273px"><font face="Garamond" size="3"><br>
</font></span></div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br></div>