[vtkusers] binarize an input image

Wes Turner wes.turner at kitware.com
Tue Jul 3 08:49:14 EDT 2007

Did you try vtkImageThreshold?

- Wes

On 7/3/07, Anja Ende <anja.ende at googlemail.com> wrote:
> Hi everyone,
> I have a requirement where I have to convert a grayscale image into a
> binary image. The background of the image is always either 0 or -1 and what
> I want to do is transform the image so that any pixel that is not the
> background colour should get the value of 255.
> I am pretty sure there will be something in vtk that allows me to do this.
> I was wondering if someone could point me to the correct filter.
> Thanks a lot.
> Cheers,
> Anja
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

Wesley D. Turner, Ph.D.
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x120
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070703/1fef6a4b/attachment.htm>

More information about the vtkusers mailing list