[vtkusers] test if vtkImageData is blank

Jonathan Morra jonmorra at gmail.com
Sun Dec 26 12:27:12 EST 2010


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?

On Sun, Dec 26, 2010 at 8:47 AM, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:

> If you have a scalar range on the data array and if the min/max are
> equal to 0, you are done...
>
> Seb
>
> On Mon, Dec 20, 2010 at 6:15 PM, Jonathan Morra <jonmorra at gmail.com>
> wrote:
> > Is there a way to quickly tell if a vtkImageData is blank (contains all
> > 0's)?  I can't iterate the pixels cause I'm in Java and that's too slow.
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101226/6df39b12/attachment.htm>


More information about the vtkusers mailing list