<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi,</span></div><div>&nbsp;&nbsp;&nbsp; I am not quite clear about binary volume. The&nbsp;original&nbsp;images were gray scale images. But I think definitely some binarization took place when "skinExtractor 0 127.5" is called. If I use "skinExtractor 0 30", the output is quite different. I just want to know how the threshold has been selected. Also I would like to know whether vtkImageCast or vtkImageReader do any filtering of images as I also used these to read and process the images.</div><div>&nbsp;&nbsp; It would be great if I&nbsp;get some clarification.</div><div>&nbsp;</div><div>Thanks,</div><div>Hayden.</div><div>&nbsp;</div><div>&nbsp;</div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">
 <div dir="ltr"> <div class="hr" style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); height: 0px; line-height: 0; font-size: 0px;" contenteditable="false" readonly="true"></div>  <font face="Arial" size="2"> <b><span style="font-weight: bold;">From:</span></b> Bill Lorensen &lt;bill.lorensen@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Hayden Smith &lt;s_hayden_28@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> VTK Users &lt;vtkusers@vtk.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, July 7, 2013 7:04 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vtkusers] A Simple Question on vtkContourFilter<br>&nbsp;</font> </div> <div class="y_msg_container"><br><div id="yiv0836639422"><div dir="ltr">It is not a binary volume, correct?<div><br></div><div>I would expect that the 127 and 255 isosurfaces would be different.</div></div><div
 class="yiv0836639422gmail_extra"><br><br><div class="yiv0836639422gmail_quote">On Sat, Jul 6, 2013 at 10:03 PM, Hayden Smith <span dir="ltr">&lt;<a href="mailto:s_hayden_28@yahoo.com" target="_blank" rel="nofollow" ymailto="mailto:s_hayden_28@yahoo.com">s_hayden_28@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="yiv0836639422gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div><span>Hi,</span></div><div><span>&nbsp;&nbsp; It is 0 to &nbsp;255.</span></div>
<div><span></span>&nbsp;</div><div><span>Thanks,</span></div><div><span>Hayden.</span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">
 <div dir="ltr"> <div style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); line-height: 0; font-size: 0px; min-height: 0px;"></div>  <font face="Arial"><div class="yiv0836639422im"> <b><span style="font-weight: bold;">From:</span></b> Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank" rel="nofollow" ymailto="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
 <b><span style="font-weight: bold;">To:</span></b> Hayden Smith &lt;<a href="mailto:s_hayden_28@yahoo.com" target="_blank" rel="nofollow" ymailto="mailto:s_hayden_28@yahoo.com">s_hayden_28@yahoo.com</a>&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> "<a href="mailto:vtkusers@vtk.org" target="_blank" rel="nofollow" ymailto="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" &lt;<a href="mailto:vtkusers@vtk.org" target="_blank" rel="nofollow" ymailto="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt; <br>
 </div><b><span style="font-weight: bold;">Sent:</span></b> Saturday, July 6, 2013 7:05 AM<div class="yiv0836639422im"><br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vtkusers] A Simple Question on vtkContourFilter<br> </div>
</font> </div> <div><br>
<div><div class="yiv0836639422im"><div dir="ltr">What is the range of your scalar data?<div><br></div></div></div><div><br><br><div><div class="yiv0836639422im">On Fri, Jul 5, 2013 at 6:44 PM, Hayden Smith <span dir="ltr">&lt;<a href="mailto:s_hayden_28@yahoo.com" target="_blank" rel="nofollow" ymailto="mailto:s_hayden_28@yahoo.com">s_hayden_28@yahoo.com</a>&gt;</span> wrote:<br>

</div><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">
<div class="yiv0836639422im">Hello,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have attached two images: the first one using "skinExtractor SetValue 0 127.5" and the second one "skinExtractor SetValue 0&nbsp; 255". Both showing the very similar output. My question as binarization on image is performed, how the threshold has been calculated as both values showing the similar output.<br>

<br>Thanks,<br><br>Hayden.<br><div><span><br></span></div><div><br></div>  </div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">
<div class="yiv0836639422im">
 <div dir="ltr"> <div style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); line-height: 0; font-size: 0px; min-height: 0px;"></div>  <font face="Arial"><div> <b><span style="font-weight: bold;">From:</span></b> Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank" rel="nofollow" ymailto="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>

 <b><span style="font-weight: bold;">To:</span></b> Hayden Smith
 &lt;<a href="mailto:s_hayden_28@yahoo.com" target="_blank" rel="nofollow" ymailto="mailto:s_hayden_28@yahoo.com">s_hayden_28@yahoo.com</a>&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> "<a href="mailto:vtkusers@vtk.org" target="_blank" rel="nofollow" ymailto="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" &lt;<a href="mailto:vtkusers@vtk.org" target="_blank" rel="nofollow" ymailto="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt; <br>

 </div><b><span style="font-weight: bold;">Sent:</span></b> Thursday, July 4, 2013 6:04 AM<div><div><br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vtkusers] A Simple Question on vtkContourFilter<br>
 </div></div></font> </div></div><div><div> <div><br><div><div class="yiv0836639422im"><div dir="ltr">If your data is 8 bit data, then the effect is similar to thresholding. Set the value to 127.5 and you will see an isosurface that has more character.</div>

</div><div><br><br><div><div class="yiv0836639422im">
On Wed, Jul 3, 2013 at 4:14 PM, Hayden Smith <span dir="ltr">&lt;<a href="mailto:s_hayden_28@yahoo.com" target="_blank" rel="nofollow" ymailto="mailto:s_hayden_28@yahoo.com">s_hayden_28@yahoo.com</a>&gt;</span> wrote:<br></div><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">


<div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="yiv0836639422im">Hello,<br>&nbsp;&nbsp;&nbsp;&nbsp; Thanks for the reply. But I need a little&nbsp; bit clarification. When I use 'skinExtractor SetValue 0 255', it generates one iso-surface. Does it threshold the image into a binary image?<br>


<br>Thanks again.<span><font color="#888888"><br><br>Hayden.<br></font></span><div><br><div><span><br></span></div><div><br></div>  </div></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">

<div> </div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div><div class="yiv0836639422h5"><div> <div dir="ltr"> <div style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); line-height: 0; font-size: 0px; min-height: 0px;">
</div>  <font face="Arial"> <b><span style="font-weight: bold;">From:</span></b> Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank" rel="nofollow" ymailto="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>

 <b><span style="font-weight: bold;">To:</span></b> Hayden Smith &lt;<a href="mailto:s_hayden_28@yahoo.com" target="_blank" rel="nofollow" ymailto="mailto:s_hayden_28@yahoo.com">s_hayden_28@yahoo.com</a>&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> "<a href="mailto:vtkusers@vtk.org" target="_blank" rel="nofollow" ymailto="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" &lt;<a href="mailto:vtkusers@vtk.org" target="_blank" rel="nofollow" ymailto="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt; <br>



 <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 2, 2013 3:45 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vtkusers] A Simple Question on vtkContourFilter<br> </font> </div></div></div>
</div><div>

<div> <div><br><div><div><div class="yiv0836639422h5"><div dir="ltr"><div><div>skinExtractor GenerateValues 4 0 255 will extract 4 isosurfaces <br>&nbsp;&nbsp;&nbsp;&nbsp; Value 0: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Value 1: 85<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Value 2: 170<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Value 3: 255<br><br>
</div>where<br>
skinExtractor SetValue 0 255<br>
</div>will extract 1 isosurface with value<br>255<br><br><div><div><br></div></div></div></div></div><div><br><br><div><div><div class="yiv0836639422h5">On Tue, Jul 2, 2013 at 4:17 PM, Hayden Smith <span dir="ltr">&lt;<a href="mailto:s_hayden_28@yahoo.com" target="_blank" rel="nofollow" ymailto="mailto:s_hayden_28@yahoo.com">s_hayden_28@yahoo.com</a>&gt;</span> wrote:<br>



</div></div><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div><div class="yiv0836639422h5"><div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">
<div>Hello,</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have a simple question on vtkContourFilter. What is the difference between&nbsp; the following two pieces of code:</div>


<div><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkContourFilter skinExtractor<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; skinExtractor SetInput [v16
 GetOutput]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eval skinExtractor GenerateValues 4 0 255<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; skinExtractor Update</div><div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">



<br></div><div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;"><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkContourFilter
 skinExtractor<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; skinExtractor SetInput [v16 GetOutput]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; skinExtractor SetValue 0 255<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; skinExtractor Update</div>



<div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;"><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">



<br></div><div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">If I use  'eval skinExtractor GenerateValues 4 0 255' in vtkContourFilter, the reconstructed output is noisy whereas if I use 'skinExtractor SetValue 0 255', the output is better and much clear. Could any one clarify me how these two commands are making the difference in output? <br>



</div><div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">Thanks in advance.</div><span><font color="#888888"><div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">



<br></div><div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;"><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">



Hayden<br></div></font></span></div></div><br>_______________________________________________<br></div></div>
Powered by <a href="http://www.kitware.com/" target="_blank" rel="nofollow">http://www.kitware.com/</a><div class="yiv0836639422im"><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank" rel="nofollow">http://www.kitware.com/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" target="_blank" rel="nofollow">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" rel="nofollow">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></div></blockquote></div><div class="yiv0836639422im"><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div></div></div><br><br></div> </div></div></div> </div>  </div></div></blockquote></div><div class="yiv0836639422im"><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div></div></div><br><br></div> </div></div></div> </div>  </div></div></blockquote></div><div class="yiv0836639422im"><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div></div>
</div><br><br></div> </div> </div>  </div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div></div><br><br></div> </div> </div>  </div></body></html>