In the review directory there is only the itkScalarSinglePhaseDense2DTest.cxx. Did I make something wrong when I build ITK with Cmake? Is there any other possible so;ution for my problem?<br><br>Thanks<br><br><div class="gmail_quote">
2011/6/29 robert tamburo <span dir="ltr">&lt;<a href="mailto:robert.tamburo@gmail.com">robert.tamburo@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It&#39;s in the Review directory. I use it with 3.18 so 3.20 should be fine.  Here&#39;s the code I use:<div><div>  typedef itk::LabelOverlayImageFilter&lt;CharImageType, CharImageType, RGBImageType&gt; LabelOverlayFilterType;</div>

<div>  LabelOverlayFilterType::Pointer labelOverlayFilter = LabelOverlayFilterType::New();</div><div>  labelOverlayFilter-&gt;SetInput(inputImage);</div><div>  labelOverlayFilter-&gt;SetLabelImage(labelImage);</div><div>
  labelOverlayFilter-&gt;SetOpacity(1.0);</div>
<div>  labelOverlayFilter-&gt;ResetColors(); // reset color map</div><div>  labelOverlayFilter-&gt;AddColor(0, 0, 255); // fill color map with blue</div><div>  labelOverlayFilter-&gt;SetBackgroundValue(0); // don&#39;t overlay the background, i.e., label 0</div>

<div>  labelOverlayFilter-&gt;Update();</div><div><div></div><div class="h5"><div><br></div><div><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 10:51 AM, john smith <span dir="ltr">&lt;<a href="mailto:mkitkinsightuser@gmail.com" target="_blank">mkitkinsightuser@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you know if there is a good example of <span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">itkLabelOverlayImageFilter? Also, I am using ITK v3.2. Is </span><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">itkLabelOverlayImageFilter suitable for this version?Because I can&#39;t find it in the libraries.<br>


<br>Thanks<br></span><div><div></div><div><br><div class="gmail_quote">2011/6/29 robert tamburo <span dir="ltr">&lt;<a href="mailto:robert.tamburo@gmail.com" target="_blank">robert.tamburo@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font face="arial, sans-serif"><span style="border-collapse:collapse">I suggest using </span></font><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">itkLabelOverlayImageFilter .  It applies a color map to a label image (segmentation image) and overlays it on the original image with the ability to adjust opacity of the overlay. </span><div>


<div></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br>
</span></font><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 10:29 AM, john smith <span dir="ltr">&lt;<a href="mailto:mkitkinsightuser@gmail.com" target="_blank">mkitkinsightuser@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The problem is that the segment of my original image is white. So If this part after the segmentation is also white, then the result of AddImageFilter will not be good, concerning visualization. Also, If this part is black after segmentation then I will not have any change using AddImageFilter. What you suggest to do in this case?<br>




<br>Thanks for your response<div><div></div><div><br><br><div class="gmail_quote">2011/6/29 robert tamburo <span dir="ltr">&lt;<a href="mailto:robert.tamburo@gmail.com" target="_blank">robert.tamburo@gmail.com</a>&gt;</span><br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If your segmented object is black and black means zero-valued, then you&#39;re adding zero to the original image.<div><div></div><div><div><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 10:14 AM, john smith <span dir="ltr">&lt;<a href="mailto:mkitkinsightuser@gmail.com" target="_blank">mkitkinsightuser@gmail.com</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, <br><br>I want to read two png images (one is already saved in memory and the other I get it from a dialog box of Qt).The first is the result of the segmentation (black for the segmented object) and the second is the original image. I use AddImage filter as it can be seen from the foloowing code but I do not get the right result. Could somebody tell me what I am doing wrong? Is it correct to use two readers?<br>






<br> ReaderType::Pointer reader1 = ReaderType::New();<br>  ReaderType::Pointer reader2 = ReaderType::New();<br><br>  reader1-&gt;SetFileName(fileName.toStdString());<br>  reader2-&gt;SetFileName(&quot;result.png&quot;);<br>






<br>  reader1-&gt;Update();<br>  reader2-&gt;Update();<br>  typedef itk::AddImageFilter&lt;<br>            InternalImageType,<br>            InternalImageType,<br>            OutputImageType &gt; AddFilterType;<br><br>    AddFilterType::Pointer addFilter = AddFilterType::New();<br>






    addFilter-&gt;SetInput1( reader1-&gt;GetOutput() );<br>    addFilter-&gt;SetInput2( reader2-&gt;GetOutput() );<br><br>    try<br>    {<br>    addFilter-&gt;Update();<br>    }<br>    catch( itk::ExceptionObject &amp; err )<br>






    {<br>    std::cout &lt;&lt; &quot;ExceptionObject caught !&quot; &lt;&lt; std::endl;<br>    std::cout &lt;&lt; err &lt;&lt; std::endl;<br>    }<br><br>    WriterType::Pointer writer = WriterType::New();<br>    writer-&gt;SetInput( addFilter-&gt;GetOutput() );<br>






    writer-&gt;SetFileName( &quot;addImage.png&quot; );<br>    writer-&gt;Update();<div><div></div><div><br><br><div class="gmail_quote">2011/6/29 robert tamburo <span dir="ltr">&lt;<a href="mailto:robert.tamburo@gmail.com" target="_blank">robert.tamburo@gmail.com</a>&gt;</span><br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>itkAddImageFilter</div><div><br></div><div>Alternatively, itkLabelOverlayImageFilter will allow you to overlay your segmentation on the original image.</div>






<br><div class="gmail_quote"><div><div></div><div>On Wed, Jun 29, 2011 at 3:17 AM, john smith <span dir="ltr">&lt;<a href="mailto:mkitkinsightuser@gmail.com" target="_blank">mkitkinsightuser@gmail.com</a>&gt;</span> wrote:<br>







</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>Hello to all,<br><br>I am working in an application in order to segment an object. Well, I have managed to get the segmented contour of my object. But now I want to display this result over my initial image. Do you know how I could add two images?<br>








<br>Thanks in advance<br><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>
</blockquote></div><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>