[vtkusers] How to only display pixels within a threshold interval

Xiaopeng Yang yxp233 at postech.ac.kr
Sun Feb 19 21:50:25 EST 2012


Hi Bill and David,

That is exactly what I need. Thank you!

Xiaopeng

-----Original Message-----
From: Bill Lorensen [mailto:bill.lorensen at gmail.com] 
Sent: Monday, February 20, 2012 1:29 AM
To: David Doria
Cc: Xiaopeng Yang; vtk
Subject: Re: [vtkusers] How to only display pixels within a threshold
interval

I fixed it. Here is the working version:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageThreshold


On Sun, Feb 19, 2012 at 8:56 AM, David Doria <daviddoria at gmail.com> wrote:
> On Sun, Feb 19, 2012 at 8:07 AM, Xiaopeng Yang <yxp233 at postech.ac.kr>
wrote:
>> Hello All,
>>
>>
>>
>> How are you doing?
>>
>> I have a grayscale CT image. And I would like to display pixels within a
>> threshold interval of the CT image. That means only pixels within that
>> threshold interval are shown on the screen, while the remaining pixels
that
>> are out of that threshold interval are not shown on the screen. May I ask
>> whether there is such a class in VTK that fulfills this task?
>
> I think you'll want vtkImageThreshold:
> http://www.vtk.org/doc/nightly/html/classvtkImageThreshold.html#details
>
> Here is an example (it doesn't work actually, but it should get you
> started. If you can fix it that would be a huge help):
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageThreshold
>
> David
> _______________________________________________
> 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



-- 
Unpaid intern in BillsBasement at noware dot com










More information about the vtkusers mailing list