<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 1, 2018 at 1:01 AM, Polly Pui <span dir="ltr"><<a href="mailto:polly_sukting@hotmail.com" target="_blank">polly_sukting@hotmail.com</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_1743815686831938821divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0;margin-bottom:0"></p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
Hi,</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
I would like to obtain the areas which are removed in 'Red Image'.</p></div></div></blockquote><div>Couldn't you invert the threshold operation to produce those areas instead of the red surface?<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_1743815686831938821divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr"><p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">Green image is original data and Red image is the thresholded data. </p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
I applied "union operation" in order to get the areas. I used the code given in <a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter" class="m_1743815686831938821OWAAutoLink" id="m_1743815686831938821LPlnk946596" target="_blank">https://www.vtk.org/Wiki/<wbr>VTK/Examples/Cxx/PolyData/<wbr>BooleanOperationPolyDataFilter</a></p></div></div></blockquote><div>The boolean operation filter won't work in this case because it does not handle boolean operations on overlapping surfaces.</div><div><br></div><div>HTH,</div><div>Cory</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_1743815686831938821divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
But the areas that I wanted couldn't be shown completely in grey image. The polygons are not connected.</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
Any suggestion on how can I improve this?</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
<img size="29351" id="m_1743815686831938821922753_rs|3" style="width:758px;height:368.493px" width="758" height="368" src="cid:447fa535-f257-4dc6-b3fc-6e3077cf35dd"><br>
<br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
Thanks.</p>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0">Best,</p>
<p style="margin-top:0;margin-bottom:0">Polly</p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div></div>