File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed
ApplyAFilterOnlyToASpecifiedRegionOfAnImage
FilterAndParallelizeImageRegion
TestKernel/GenerateRandomImage
Filtering/ImageIntensity/ApplyAtanImageFilter
Registration/Metricsv4/PerformRegistrationOnVectorImages Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ int main(int, char *[])
40
40
41
41
using RandomSourceType = itk::RandomImageSource<ImageType>;
42
42
RandomSourceType::Pointer randomImageSource = RandomSourceType::New ();
43
- randomImageSource->SetNumberOfThreads (1 ); // to produce non-random results
43
+ randomImageSource->SetNumberOfWorkUnits (1 ); // to produce non-random results
44
44
randomImageSource->SetSize (bigSize);
45
45
randomImageSource->GetOutput ()->SetRequestedRegion (smallSize);
46
46
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ class ComputeCellCountThreader :
101
101
// on the current system. It will also be truncated if, for example, the
102
102
// number of cells in the CellContainer is smaller than the number of cores
103
103
// available.
104
- const itk::ThreadIdType numberOfThreads = this ->GetNumberOfThreadsUsed ();
104
+ const itk::ThreadIdType numberOfThreads = this ->GetNumberOfWorkUnitsUsed ();
105
105
this ->m_CellCountPerThread .resize ( numberOfThreads );
106
106
for ( itk::ThreadIdType ii = 0 ; ii < numberOfThreads; ++ii )
107
107
{
@@ -137,7 +137,7 @@ class ComputeCellCountThreader :
137
137
{
138
138
// Accumulate the cell counts per thread in the associate's total cell
139
139
// count.
140
- const itk::ThreadIdType numberOfThreads = this ->GetNumberOfThreadsUsed ();
140
+ const itk::ThreadIdType numberOfThreads = this ->GetNumberOfWorkUnitsUsed ();
141
141
for ( itk::ThreadIdType ii = 0 ; ii < numberOfThreads; ++ii )
142
142
{
143
143
this ->m_Associate ->m_CellCount [NEURON] +=
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ int main(int, char *[])
30
30
using RandomSourceType = itk::RandomImageSource< ImageType >;
31
31
32
32
RandomSourceType::Pointer randomImageSource = RandomSourceType::New ();
33
- randomImageSource->SetNumberOfThreads (1 ); // to produce non-random results
33
+ randomImageSource->SetNumberOfWorkUnits (1 ); // to produce non-random results
34
34
35
35
ImageType::Pointer image = randomImageSource->GetOutput ();
36
36
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ int main(int, char *[])
79
79
randomImageSource->SetSize (region.GetSize ());
80
80
// we don't want overflow on 1+x operation, so set max pixel value
81
81
randomImageSource->SetMax (itk::NumericTraits< PixelType >::max () - 1 );
82
- randomImageSource->SetNumberOfThreads (1 ); // to produce deterministic results
82
+ randomImageSource->SetNumberOfWorkUnits (1 ); // to produce deterministic results
83
83
randomImageSource->Update ();
84
84
85
85
ImageType::Pointer image = randomImageSource->GetOutput ();
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ int main(int argc, char* argv[])
42
42
43
43
RandomImageSourceType::Pointer randomImageSource =
44
44
RandomImageSourceType::New ();
45
- randomImageSource->SetNumberOfThreads (1 ); // to produce reproducible results
45
+ randomImageSource->SetNumberOfWorkUnits (1 ); // to produce reproducible results
46
46
randomImageSource->SetSize ( size );
47
47
48
48
using WriterType = itk::ImageFileWriter< ImageType >;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ int main( int argc, char* argv[] )
44
44
45
45
RandomImageSourceType::Pointer randomImageSource =
46
46
RandomImageSourceType::New ();
47
- randomImageSource->SetNumberOfThreads (1 ); // to produce non-random results
47
+ randomImageSource->SetNumberOfWorkUnits (1 ); // to produce non-random results
48
48
randomImageSource->SetSize (size);
49
49
50
50
using OutputPixelType = float ;
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ int main(int argc, char *argv[])
151
151
++count;
152
152
}
153
153
metric->SetFixedSampledPointSet ( pointSet );
154
- metric->SetUseFixedSampledPointSet ( true );
154
+ metric->SetUseSampledPointSet ( true );
155
155
156
156
157
157
// Assign images and transforms.
@@ -198,7 +198,7 @@ int main(int argc, char *argv[])
198
198
// previously computed affine transformation.
199
199
compositeTransform->SetOnlyMostRecentTransformToOptimizeOn ();
200
200
metric->SetMovingTransform ( compositeTransform );
201
- metric->SetUseFixedSampledPointSet ( false );
201
+ metric->SetUseSampledPointSet ( false );
202
202
metric->Initialize ();
203
203
204
204
// Optimizer
You can’t perform that action at this time.
0 commit comments