This would appear to work, but after calling .SetScalarComponentFromDouble(x, y, z, 0, 1) the image.GetScalarRange() still returns [0, 0] which, I would assume, it shouldn't. Am I doing something wrong?<br><br><div class="gmail_quote">
On Sun, Dec 26, 2010 at 8:47 AM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If you have a scalar range on the data array and if the min/max are<br>
equal to 0, you are done...<br>
<br>
Seb<br>
<div class="im"><br>
On Mon, Dec 20, 2010 at 6:15 PM, Jonathan Morra <<a href="mailto:jonmorra@gmail.com">jonmorra@gmail.com</a>> wrote:<br>
> Is there a way to quickly tell if a vtkImageData is blank (contains all<br>
> 0's)? I can't iterate the pixels cause I'm in Java and that's too slow.<br>
</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>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">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">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
</blockquote></div><br>