Skip to content

Commit

Permalink
Move rician to gaussian to itk 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ocommowi committed Mar 24, 2020
1 parent 94168dc commit d10ec39
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ RicianToGaussianImageFilter<ComponentType,ImageDimension>
template <class ComponentType,unsigned int ImageDimension>
void
RicianToGaussianImageFilter<ComponentType,ImageDimension>
::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
itk::ThreadIdType threadId)
::DynamicThreadedGenerateData(const OutputImageRegionType& outputRegionForThread)
{
typedef itk::ConstNeighborhoodIterator<InputImageType> InputIteratorType;
typedef itk::ConstNeighborhoodIterator<MaskImageType> MaskIteratorType;
Expand All @@ -83,6 +82,8 @@ RicianToGaussianImageFilter<ComponentType,ImageDimension>
typename InputImageType::IndexType currentIndex, neighborIndex;
typename InputImageType::PointType currentPoint, neighborPoint;

unsigned int threadId = this->GetSafeThreadId();

while (!maskItr.IsAtEnd())
{
// Discard voxels outside of the brain
Expand Down Expand Up @@ -222,6 +223,8 @@ RicianToGaussianImageFilter<ComponentType,ImageDimension>
++scaleItr;
++signalItr;
}

this->SafeReleaseThreadId(threadId);
}

template <class ComponentType,unsigned int ImageDimension>
Expand Down

0 comments on commit d10ec39

Please sign in to comment.