[vtkusers] subtract volume depending on the scalar values

John Biddiscombe john.biddiscombe at mirada-solutions.com
Thu May 15 07:03:02 EDT 2003


vtkImageThreshold

JB

> -----Original Message-----
> From: Jianlong Zhou [mailto:zhou at isg.cs.uni-magdeburg.de]
> Sent: 15 May 2003 11:35
> To: Andres Barrera
> Cc: vtkusers at public.kitware.com
> Subject: Re: [vtkusers] subtract volume depending on the scalar values
> 
> 
> HI, all,
> 
> My problem is like this: I have a data set with scalar values 
> from 0 to 65535. My interested 
> objects of this data range from 63400 to 63800. Now I want to 
> extract the data from 63400 
> to 63800 and map these values to the new range of 0 to 255 
> and save this results to a new 
> data set.
> 
> How to do this process?
> 
> Thanks in advance.
> 
> Jianlong
> 
> 
> > you can define a function
> > 
> > vtkPiecewiseFunction * opacityTransferFunction    = 
> > vtkPiecewiseFunction::New();
> >           opacityTransferFunction->AddPoint(     0, 0.0 );
> >           opacityTransferFunction->AddPoint( 199, 0.0 );
> >           opacityTransferFunction->AddPoint( 200, 1.0 );
> >           opacityTransferFunction->AddPoint( 255, 1.0 );
> > 
> > and  then you only save 1s
> > 
> >    Andres
> 
> 
> > >Hi, all,
> > >
> > >I want to extract a subvolume (sub-scalar range not 
> sub-region range)
> > >depending on the scalar range, e.g. I want to extract a CT 
> volume and only
> > >extract the scalar value between 200 and 255 and save the extracted
> > >volume data in this range in another raw file. Would 
> anyone tell me how to
> > >do this?
> > >
> > >Thank you inadvance.
> > >
> > >Jianlong
> > >_______________________________________________
> > >This is the private VTK discussion list.
> > >Please keep messages on-topic. Check the FAQ at: 
> > ><http://public.kitware.com/cgi-bin/vtkfaq>
> > >Follow this link to subscribe/unsubscribe:
> > >http://public.kitware.com/mailman/listinfo/vtkusers
> > 
> > _________________________________________________________________
> > Add photos to your messages with MSN 8. Get 2 months FREE*.  
> > http://join.msn.com/?page=features/featuredemail
> > 
> 
> 
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: 
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
> 



More information about the vtkusers mailing list