[vtkusers] subtract volume depending on the scalar values

Andres Barrera andresba at hotmail.com
Tue May 13 11:21:14 EDT 2003


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


>From: "Jianlong Zhou" <zhou at isg.cs.uni-magdeburg.de>
>To: vtkusers at public.kitware.com
>Subject: [vtkusers] subtract volume depending on the scalar values
>Date: Tue, 13 May 2003 17:06:14 +0200
>MIME-Version: 1.0
>Received: from mc6-f35.law1.hotmail.com ([65.54.252.171]) by 
>mc6-s4.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 13 May 
>2003 08:09:04 -0700
>Received: from public.kitware.com ([24.97.130.19]) by 
>mc6-f35.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 13 May 
>2003 08:09:04 -0700
>Received: from public.kitware.com (localhost [127.0.0.1])by 
>public.kitware.com (Postfix) with ESMTPid 4E5721AB79; Tue, 13 May 2003 
>11:08:02 -0400 (EDT)
>Received: from luxator.cs.uni-magdeburg.de (luxator.cs.uni-magdeburg.de 
>[141.44.23.1])by public.kitware.com (Postfix) with ESMTP id 5CA5F1AAD6for 
><vtkusers at public.kitware.com>; Tue, 13 May 2003 11:07:03 -0400 (EDT)
>Received: from isgnw.cs.uni-magdeburg.de (isgnw [141.44.27.10])by 
>luxator.cs.uni-magdeburg.de (8.12.9/8.12.8) with ESMTP id h4DF6YjH006210for 
><vtkusers at public.kitware.com>; Tue, 13 May 2003 17:06:34 +0200 (MET DST)
>Received: from ISG_NW/SpoolDir by isgnw.cs.uni-magdeburg.de (Mercury 1.48); 
>    13 May 03 17:06:35 +0100
>Received: from SpoolDir by ISG_NW (Mercury 1.48); 13 May 03 17:06:23 +0100
>X-Message-Info: TiNwL5K19MH2c/Um4f5qa8yB+LzAa8Or
>Delivered-To: vtkusers at public.kitware.com
>Organization: University Magdeburg FIN-ISG-MEMBERS
>Message-ID: <3EC12605.7789.1C81756 at localhost>
>Priority: normal
>X-mailer: Pegasus Mail for Windows (v4.01)
>X-MailScanner: Found to be clean
>Sender: vtkusers-admin at public.kitware.com
>Errors-To: vtkusers-admin at public.kitware.com
>X-BeenThere: vtkusers at public.kitware.com
>X-Mailman-Version: 2.0.11
>Precedence: bulk
>List-Help: <mailto:vtkusers-request at public.kitware.com?subject=help>
>List-Post: <mailto:vtkusers at public.kitware.com>
>List-Subscribe: 
><http://public.kitware.com/mailman/listinfo/vtkusers>,<mailto:vtkusers-request at public.kitware.com?subject=subscribe>
>List-Id: <vtkusers.public.kitware.com>
>List-Unsubscribe: 
><http://public.kitware.com/mailman/listinfo/vtkusers>,<mailto:vtkusers-request at public.kitware.com?subject=unsubscribe>
>List-Archive: <http://public.kitware.com/pipermail/vtkusers/>
>Return-Path: vtkusers-admin at public.kitware.com
>X-OriginalArrivalTime: 13 May 2003 15:09:04.0378 (UTC) 
>FILETIME=[97ADD5A0:01C31961]
>
>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




More information about the vtkusers mailing list