[Insight-users] Turn off thread computing in itkWatershed filter

Joshua Cates cates at sci.utah.edu
Tue, 2 Mar 2004 09:50:36 -0700 (MST)


Hi Feng,

The watershed algorithm in ITK is not multithreaded so you will see no 
difference using pthreads or not using pthreads.  In general you can 
restrict ITK filters to use only one thread by setting 
filter->SetNumberOfThreads(1).

Josh.

______________________________
 Josh Cates			
 Scientific Computing and Imaging Institute
 University of Utah
 Email: cates at sci.utah.edu
 Phone: (801) 587-7697
 URL:   http://www.sci.utah.edu/~cates


On Mon, 1 Mar 2004, Feng Ma wrote:

> Hi,
> 
>   Can I turn off threaded computing in itkWatershed filters if I set 
> CMAKE_USE_PTHREADS to be "OFF" in cmake?
> 
>   Thanks.
> 
> -Feng
> 
> _________________________________________________________________
> Fast. Reliable. Get MSN 9 Dial-up - 1 month FREE! (Limited-time Offer) 
> http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>