# include <windows.h>
#endif
+#if ITK_VERSION_MAJOR < 4
+namespace itk
+{
+ typedef unsigned int ThreadIdType;
+}
+#endif
+
//--------------------------------------------------------------------
namespace clitk {
virtual ~RelativePositionPropImageFilter() {}
void PrintSelf(std::ostream& os, Indent indent) const;
- //void GenerateThreadedData(const typename TOutputImage::RegionType& outputRegionForThread, int threadId);
+ //void GenerateThreadedData(const typename TOutputImage::RegionType& outputRegionForThread, ThreadIdType threadId);
void GenerateData();
private:
template< class TInputImage, class TOutputImage ,class TtNorm>
void
RelativePositionPropImageFilter< TInputImage, TOutputImage ,TtNorm>
- //::GenerateThreadedData(const typename TOutputImage::RegionType& outputRegionForThread, int threadId)
+ //::GenerateThreadedData(const typename TOutputImage::RegionType& outputRegionForThread, ThreadIdType threadId)
::GenerateData()
{
void BeforeThreadedGenerateData(void );
// Threaded Generate Data
- void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
+ void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId );
//------------------------------------------------
template <class InputImageType, class OutputImageType>
void
BackProjectImageFilter<InputImageType, OutputImageType>
- ::ThreadedGenerateData( const OutputImageRegionType & outputRegionForThread, int threadId )
+ ::ThreadedGenerateData( const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId )
{
//Projection pointer
InputImageConstPointer inputPtr=this->GetInput();
//========================================================================================
//Threaded execution should implement generate threaded data
- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId );
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
bool m_Verbose;
PixelType m_EdgePaddingValue;
//=========================================================================================================================
//update the output for the outputRegionForThread
template<class InputImageType, class OutputImageType>
- void ComposeVFFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
+ void ComposeVFFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId )
{
//Get pointer to the output
// // Threaded Generate Data
// void BeforeThreadedGenerateData(void );
- // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
+ // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId );
// void AfterThreadedGenerateData(void );
// // Override defaults
// virtual void GenerateInputRequestedRegion();
// // Threaded Generate Data
// void BeforeThreadedGenerateData(void );
- // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
+ // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId );
// void AfterThreadedGenerateData(void );
// // Override defaults
// virtual void GenerateInputRequestedRegion();
void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
- int threadId );
+ itk::ThreadIdType threadId );
InputImageRegionType m_ExtractionRegion;
OutputImageRegionType m_OutputImageRegion;
void
ExtractImageFilter<TInputImage,TOutputImage>
::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
- int threadId)
+ itk::ThreadIdType threadId)
{
itkDebugMacro(<<"Actually executing");
//the actual processing
void BeforeThreadedGenerateData();
- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId );
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
//member data
typename itk::Image< double, ImageDimension>::Pointer m_Weights;
//=========================================================================================================================
//update the output for the outputRegionForThread
template<class InputImageType, class OutputImageType, class DeformationFieldType >
-void HelperClass1<InputImageType, OutputImageType, DeformationFieldType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
+void HelperClass1<InputImageType, OutputImageType, DeformationFieldType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId )
{
//Get pointer to the input
//the actual processing
- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId );
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
//member data
//=========================================================================================================================
//update the output for the outputRegionForThread
template<class InputImageType, class OutputImageType > void
-HelperClass2<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
+HelperClass2<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId )
{
//Get pointer to the input
//the actual processing
void BeforeThreadedGenerateData();
- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId );
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
//member data
typename WeightsImageType::Pointer m_Weights;
//=========================================================================================================================
//update the output for the outputRegionForThread
template<class InputImageType, class OutputImageType>
-void HelperClass1<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
+void HelperClass1<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId )
{
//Get pointer to the input
//the actual processing
- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId );
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
//member data
//=========================================================================================================================
//update the output for the outputRegionForThread
-template<class InputImageType, class OutputImageType > void HelperClass2<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
+template<class InputImageType, class OutputImageType > void HelperClass2<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId )
{
//Get pointer to the input
// // Threaded Generate Data
// void BeforeThreadedGenerateData(void );
- // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
+ // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId );
// void AfterThreadedGenerateData(void );
// // Override defaults
// virtual void GenerateInputRequestedRegion();
void
LabelOverlapMeasuresImageFilter<TLabelImage>
::ThreadedGenerateData( const RegionType& outputRegionForThread,
- int threadId )
+ ThreadIdType threadId )
{
ImageRegionConstIterator<LabelImageType> ItS( this->GetSourceImage(),
outputRegionForThread );
===========================================================================**/
#ifndef __clitkDifferenceImageFilter_h
#define __clitkDifferenceImageFilter_h
+#include "clitkCommon.h"
#include "clitkImageCommon.h"
//itk include
protected:
DifferenceImageFilter();
~DifferenceImageFilter() {};
- void ThreadedGenerateData(const OutputImageRegionType& threadRegion, int threadId);
+ void ThreadedGenerateData(const OutputImageRegionType& threadRegion, itk::ThreadIdType threadId);
};
//=========================================================================================================================
//Update
template <class InputImageType, class OutputImageType>
- void DifferenceImageFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType &threadRegion, int threadId)
+ void DifferenceImageFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType &threadRegion, itk::ThreadIdType threadId)
{
//Pointers to input and output
typename InputImageType::ConstPointer input1=this->GetInput(0);
void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
- int threadId );
+ itk::ThreadIdType threadId );
InputImageRegionType m_ExtractionRegion;
OutputImageRegionType m_OutputImageRegion;
void
ExtractImageFilter<TInputImage,TOutputImage>
::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
- int threadId)
+ itk::ThreadIdType threadId)
{
itkDebugMacro(<<"Actually executing");
LinearCombinationImageFilter();
virtual ~LinearCombinationImageFilter(){};
- virtual void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId);
+ virtual void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId);
private:
LinearCombinationImageFilter(const Self&); //purposely not implemented
template <class InputImageType, class OutputImageType>
void
LinearCombinationImageFilter<InputImageType, OutputImageType>
- ::ThreadedGenerateData(const OutputImageRegionType &threadRegion, int threadId)
+ ::ThreadedGenerateData(const OutputImageRegionType &threadRegion, itk::ThreadIdType threadId)
{
//Pointers to input and output
typename InputImageType::ConstPointer input1=this->GetInput(0);
MeasureType ComputeSums( const ParametersType & parameters ) const;
- inline bool GetValueThreadProcessSample( unsigned int threadID,
+ inline bool GetValueThreadProcessSample( itk::ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue ) const;
- inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
+ inline bool GetValueAndDerivativeThreadProcessSample( itk::ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue,
delete [] m_ThreaderDerivativeF;
}
m_ThreaderDerivativeF = new DerivativeType[this->m_NumberOfThreads];
- for(unsigned int threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
+ for(itk::ThreadIdType threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
m_ThreaderDerivativeF[threadID].SetSize( this->m_NumberOfParameters );
}
delete [] m_ThreaderDerivativeM;
}
m_ThreaderDerivativeM = new DerivativeType[this->m_NumberOfThreads];
- for(unsigned int threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
+ for(itk::ThreadIdType threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
m_ThreaderDerivativeM[threadID].SetSize( this->m_NumberOfParameters );
}
}
inline bool
NormalizedCorrelationImageToImageMetric<TFixedImage,TMovingImage>
::GetValueThreadProcessSample(
- unsigned int threadID,
+ itk::ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue) const
inline bool
NormalizedCorrelationImageToImageMetric<TFixedImage,TMovingImage>
::GetValueAndDerivativeThreadProcessSample(
- unsigned int threadID,
+ itk::ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue,
0,
this->m_NumberOfParameters * sizeof(typename DerivativeType::ValueType) );
- for( unsigned int threadID = 0; threadID<this->m_NumberOfThreads; threadID++ ) {
+ for( itk::ThreadIdType threadID = 0; threadID<this->m_NumberOfThreads; threadID++ ) {
memset( m_ThreaderDerivativeF[threadID].data_block(),
0,
this->m_NumberOfParameters * sizeof(typename DerivativeType::ValueType) );
MeasureType ComputeSums( const ParametersType & parameters ) const;
- inline bool GetValueThreadProcessSample( unsigned int threadID,
+ inline bool GetValueThreadProcessSample( ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue ) const;
- inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
+ inline bool GetValueAndDerivativeThreadProcessSample( ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue,
delete [] m_ThreaderDerivativeF;
}
m_ThreaderDerivativeF = new DerivativeType[this->m_NumberOfThreads];
- for(unsigned int threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
+ for(ThreadIdType threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
m_ThreaderDerivativeF[threadID].SetSize( this->m_NumberOfParameters );
}
delete [] m_ThreaderDerivativeM;
}
m_ThreaderDerivativeM = new DerivativeType[this->m_NumberOfThreads];
- for(unsigned int threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
+ for(ThreadIdType threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
m_ThreaderDerivativeM[threadID].SetSize( this->m_NumberOfParameters );
}
}
inline bool
NormalizedCorrelationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
::GetValueThreadProcessSample(
- unsigned int threadID,
+ ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue) const
inline bool
NormalizedCorrelationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
::GetValueAndDerivativeThreadProcessSample(
- unsigned int threadID,
+ ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue,
0,
this->m_NumberOfParameters * sizeof(typename DerivativeType::ValueType) );
- for( unsigned int threadID = 0; threadID<this->m_NumberOfThreads; threadID++ ) {
+ for( ThreadIdType threadID = 0; threadID<this->m_NumberOfThreads; threadID++ ) {
memset( m_ThreaderDerivativeF[threadID].data_block(),
0,
this->m_NumberOfParameters * sizeof(typename DerivativeType::ValueType) );
void GenerateData(void);
// // Threaded Generate Data
// void BeforeThreadedGenerateData(void );
- // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
+ // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId );
// void AfterThreadedGenerateData(void );
// // Override defaults
// virtual void GenerateInputRequestedRegion();
*/
void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
- int threadId );
+ itk::ThreadIdType threadId );
/** Default implementation for resampling that works for any
* transformation type.
*/
void NonlinearThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread,
- int threadId );
+ itk::ThreadIdType threadId );
/** Faster implementation for resampling that works for with linear
* transformation types.
*/
void LinearThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
- int threadId );
+ itk::ThreadIdType threadId );
private:
TransformToDeformationFieldSource<TOutputImage, TTransformPrecisionType>
::ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
- int threadId )
+ itk::ThreadIdType threadId )
{
// Check whether we can use a fast path for resampling. Fast path
// can be used if the transformation is linear. Transform respond
TransformToDeformationFieldSource<TOutputImage, TTransformPrecisionType>
::NonlinearThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
- int threadId )
+ itk::ThreadIdType threadId )
{
// Get the output pointer
OutputImagePointer outputPtr = this->GetOutput();
TransformToDeformationFieldSource<TOutputImage, TTransformPrecisionType>
::LinearThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
- int threadId )
+ itk::ThreadIdType threadId )
{
// Get the output pointer
OutputImagePointer outputPtr = this->GetOutput();
FixedImageSampleContainer & samples );
/** Compute PDF derivative contribution for each parameter. */
- virtual void ComputePDFDerivatives( unsigned int threadID,
+ virtual void ComputePDFDerivatives( ThreadIdType threadID,
unsigned int sampleNumber,
int movingImageParzenWindowIndex,
const ImageDerivativesType
mutable bool m_ImplicitDerivativesSecondPass;
- virtual inline void GetValueThreadPreProcess( unsigned int threadID,
+ virtual inline void GetValueThreadPreProcess( ThreadIdType threadID,
bool withinSampleThread ) const;
- virtual inline bool GetValueThreadProcessSample( unsigned int threadID,
+ virtual inline bool GetValueThreadProcessSample( ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue ) const;
- virtual inline void GetValueThreadPostProcess( unsigned int threadID,
+ virtual inline void GetValueThreadPostProcess( ThreadIdType threadID,
bool withinSampleThread ) const;
virtual inline void GetValueAndDerivativeThreadPreProcess(
- unsigned int threadID,
+ ThreadIdType threadID,
bool withinSampleThread ) const;
- virtual inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
+ virtual inline bool GetValueAndDerivativeThreadProcessSample( ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue,
const ImageDerivativesType &
movingImageGradientValue ) const;
virtual inline void GetValueAndDerivativeThreadPostProcess(
- unsigned int threadID,
+ ThreadIdType threadID,
bool withinSampleThread ) const;
};
}
m_ThreaderJointPDFSum = new double[this->m_NumberOfThreads];
- unsigned int threadID;
+ ThreadIdType threadID;
int binRange = m_NumberOfHistogramBins / this->m_NumberOfThreads;
template < class TFixedImage, class TMovingImage >
inline void
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueThreadPreProcess( unsigned int threadID,
+::GetValueThreadPreProcess( ThreadIdType threadID,
bool withinSampleThread ) const
{
template < class TFixedImage, class TMovingImage >
inline bool
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueThreadProcessSample( unsigned int threadID,
+::GetValueThreadProcessSample( ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue) const
template < class TFixedImage, class TMovingImage >
inline void
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueThreadPostProcess( unsigned int threadID,
+::GetValueThreadPostProcess( ThreadIdType threadID,
bool itkNotUsed(withinSampleThread) ) const
{
unsigned int t;
// MUST BE CALLED TO INITIATE PROCESSING
this->GetValueMultiThreadedPostProcessInitiate();
- for(unsigned int threadID = 0; threadID<this->m_NumberOfThreads-1; threadID++) {
+ for(ThreadIdType threadID = 0; threadID<this->m_NumberOfThreads-1; threadID++) {
m_JointPDFSum += m_ThreaderJointPDFSum[threadID];
}
if ( m_JointPDFSum == 0.0 ) {
template < class TFixedImage, class TMovingImage >
inline void
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueAndDerivativeThreadPreProcess( unsigned int threadID,
+::GetValueAndDerivativeThreadPreProcess( ThreadIdType threadID,
bool itkNotUsed(withinSampleThread) ) const
{
if(threadID > 0) {
template < class TFixedImage, class TMovingImage >
inline bool
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
+::GetValueAndDerivativeThreadProcessSample( ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue,
template < class TFixedImage, class TMovingImage >
inline void
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueAndDerivativeThreadPostProcess( unsigned int threadID,
+::GetValueAndDerivativeThreadPostProcess( ThreadIdType threadID,
bool withinSampleThread ) const
{
this->GetValueThreadPostProcess( threadID, withinSampleThread );
} else {
this->m_PRatioArray.Fill( 0.0 );
this->m_MetricDerivative.Fill( NumericTraits< MeasureType >::Zero );
- for(unsigned int threadID = 0; threadID < this->m_NumberOfThreads-1; threadID++ ) {
+ for(ThreadIdType threadID = 0; threadID < this->m_NumberOfThreads-1; threadID++ ) {
this->m_ThreaderMetricDerivative[threadID].Fill( NumericTraits< MeasureType >::Zero );
}
this->m_ImplicitDerivativesSecondPass = false;
// CALL IF DOING THREADED POST PROCESSING
this->GetValueAndDerivativeMultiThreadedPostProcessInitiate();
- for(unsigned int threadID = 0; threadID<this->m_NumberOfThreads-1; threadID++) {
+ for(ThreadIdType threadID = 0; threadID<this->m_NumberOfThreads-1; threadID++) {
m_JointPDFSum += m_ThreaderJointPDFSum[threadID];
}
if ( m_JointPDFSum == 0.0 ) {
template < class TFixedImage, class TMovingImage >
void
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::ComputePDFDerivatives( unsigned int threadID,
+::ComputePDFDerivatives( ThreadIdType threadID,
unsigned int sampleNumber,
int pdfMovingIndex,
const ImageDerivativesType & movingImageGradientValue,
//purposely not implemented
void operator=(const Self &);
- inline bool GetValueThreadProcessSample( unsigned int threadID,
+ inline bool GetValueThreadProcessSample( ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue ) const;
- inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
+ inline bool GetValueAndDerivativeThreadProcessSample( ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue,
delete [] m_ThreaderMSEDerivatives;
}
m_ThreaderMSEDerivatives = new DerivativeType[this->m_NumberOfThreads];
- for(unsigned int threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
+ for(ThreadIdType threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
m_ThreaderMSEDerivatives[threadID].SetSize( this->m_NumberOfParameters );
}
}
template < class TFixedImage, class TMovingImage >
inline bool
MeanSquaresImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueThreadProcessSample( unsigned int threadID,
+::GetValueThreadProcessSample( ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue) const
template < class TFixedImage, class TMovingImage >
inline bool
MeanSquaresImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
+::GetValueAndDerivativeThreadProcessSample( ThreadIdType threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue,
0,
this->m_NumberOfParameters * sizeof(double) );
- for( unsigned int threadID = 0; threadID<this->m_NumberOfThreads; threadID++ ) {
+ for( ThreadIdType threadID = 0; threadID<this->m_NumberOfThreads; threadID++ ) {
memset( m_ThreaderMSEDerivatives[threadID].data_block(),
0,
this->m_NumberOfParameters * sizeof(double) );
// Update
//----------------------------------------
// Generate Data
- void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId);
+ void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId);
//----------------------------------------
// Data members
//-------------------------------------------------------------------
template<class InputImageType>
void
- CombineImageFilter<InputImageType>::ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId)
+ CombineImageFilter<InputImageType>::ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId)
{
typename InputImageType::ConstPointer input1=this->GetInput(0);
typename InputImageType::ConstPointer input2=this->GetInput(1);
// clitk
#include "clitkIO.h"
+#include "clitkCommon.h"
#include "clitkImageCommon.h"
#include "clitkComposeVFFilter.h"
//----------------------------------------
// Update
//----------------------------------------
- void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
+ void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId );
//----------------------------------------
// Data members
//-------------------------------------------------------------------
template<class InputImageType, class OutputImageType>
void
- VectorImageToImageFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId)
+ VectorImageToImageFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId)
{
// Iterators
typename OutputImageType::Pointer output=this->GetOutput();