Hi, that´s what I needed. Now I can pass the threshold in a logic scale.thank you.<br>Now I have another doubt. Can I use the Otsu method in VTK? Even being a 3d image I normally can use Otsu method by putting all the image information in a single vector. Is there any thing like it in VTK? 
<br><br>Thanks<br><br>Dário.<br><br><div><span class="gmail_quote">2006/3/25, David Gobbi &lt;<a href="mailto:dgobbi@atamai.com">dgobbi@atamai.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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><span class="q">Hi Dário,<br>
 <br>
 The two classes for changing bit depth are vtkImageCast and vtkImageShiftScale.<br>
 <br>
 &nbsp;- David<br><br>----- Original Message ----<br>From: Dário Oliveira &lt;<a href="mailto:dariodisk@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">dariodisk@gmail.com</a>&gt;<br>To: <a href="mailto:vtkusers@vtk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
vtkusers@vtk.org</a><br>Sent: Saturday, March 25, 2006 5:40:29 PM<br>Subject: [vtkusers] Bit Depth on vtkImageData<br><br></span><div><span class="e" id="q_10a339bf97e49f1b_2">Hi friends, here is a silly doubt, but as the book is overbooked I keep having them.
<br>How can I specify the bit depth of an image on vtkImageData (just like the imadjust of matlab does)?<br>because I'm reading Dicom images, so depending on the kind of image I have different bit ranges. <br><br>thanks a lot and sorry for the silly question.
<br><br>-- <br>Dário Oliveira </span></div><span class="q"><div>_______________________________________________<br>This is the private VTK discussion list. <br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br></div></span></div></div></div>
<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Dário Oliveira