# 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, ThreadIdType threadId);
+ //void GenerateThreadedData(const typename TOutputImage::RegionType& outputRegionForThread, int threadId);
void GenerateData();
private:
template< class TInputImage, class TOutputImage ,class TtNorm>
void
RelativePositionPropImageFilter< TInputImage, TOutputImage ,TtNorm>
- //::GenerateThreadedData(const typename TOutputImage::RegionType& outputRegionForThread, ThreadIdType threadId)
+ //::GenerateThreadedData(const typename TOutputImage::RegionType& outputRegionForThread, int threadId)
::GenerateData()
{
void BeforeThreadedGenerateData(void );
// Threaded Generate Data
- void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId );
+ void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
//------------------------------------------------
template <class InputImageType, class OutputImageType>
void
BackProjectImageFilter<InputImageType, OutputImageType>
- ::ThreadedGenerateData( const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId )
+ ::ThreadedGenerateData( const OutputImageRegionType & outputRegionForThread, int threadId )
{
//Projection pointer
InputImageConstPointer inputPtr=this->GetInput();
//========================================================================================
//Threaded execution should implement generate threaded data
- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int 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, itk::ThreadIdType threadId )
+ void ComposeVFFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
{
//Get pointer to the output
// // Threaded Generate Data
// void BeforeThreadedGenerateData(void );
- // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId );
+ // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
// void AfterThreadedGenerateData(void );
// // Override defaults
// virtual void GenerateInputRequestedRegion();
// // Threaded Generate Data
// void BeforeThreadedGenerateData(void );
- // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId );
+ // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
// void AfterThreadedGenerateData(void );
// // Override defaults
// virtual void GenerateInputRequestedRegion();
void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
- itk::ThreadIdType threadId );
+ int threadId );
InputImageRegionType m_ExtractionRegion;
OutputImageRegionType m_OutputImageRegion;
void
ExtractImageFilter<TInputImage,TOutputImage>
::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
- itk::ThreadIdType threadId)
+ int threadId)
{
itkDebugMacro(<<"Actually executing");
//the actual processing
void BeforeThreadedGenerateData();
- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int 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, itk::ThreadIdType threadId )
+void HelperClass1<InputImageType, OutputImageType, DeformationFieldType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
{
//Get pointer to the input
//the actual processing
- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId );
//member data
//=========================================================================================================================
//update the output for the outputRegionForThread
template<class InputImageType, class OutputImageType > void
-HelperClass2<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId )
+HelperClass2<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
{
//Get pointer to the input
//the actual processing
void BeforeThreadedGenerateData();
- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int 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, itk::ThreadIdType threadId )
+void HelperClass1<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
{
//Get pointer to the input
//the actual processing
- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId );
//member data
//=========================================================================================================================
//update the output for the outputRegionForThread
-template<class InputImageType, class OutputImageType > void HelperClass2<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId )
+template<class InputImageType, class OutputImageType > void HelperClass2<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
{
//Get pointer to the input
// // Threaded Generate Data
// void BeforeThreadedGenerateData(void );
- // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId );
+ // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
// void AfterThreadedGenerateData(void );
// // Override defaults
// virtual void GenerateInputRequestedRegion();
void
LabelOverlapMeasuresImageFilter<TLabelImage>
::ThreadedGenerateData( const RegionType& outputRegionForThread,
- ThreadIdType threadId )
+ int 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, itk::ThreadIdType threadId);
+ void ThreadedGenerateData(const OutputImageRegionType& threadRegion, int threadId);
};
//=========================================================================================================================
//Update
template <class InputImageType, class OutputImageType>
- void DifferenceImageFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType &threadRegion, itk::ThreadIdType threadId)
+ void DifferenceImageFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType &threadRegion, int threadId)
{
//Pointers to input and output
typename InputImageType::ConstPointer input1=this->GetInput(0);
void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
- itk::ThreadIdType threadId );
+ int threadId );
InputImageRegionType m_ExtractionRegion;
OutputImageRegionType m_OutputImageRegion;
void
ExtractImageFilter<TInputImage,TOutputImage>
::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
- itk::ThreadIdType threadId)
+ int threadId)
{
itkDebugMacro(<<"Actually executing");
LinearCombinationImageFilter();
virtual ~LinearCombinationImageFilter(){};
- virtual void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId);
+ virtual void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId);
private:
LinearCombinationImageFilter(const Self&); //purposely not implemented
template <class InputImageType, class OutputImageType>
void
LinearCombinationImageFilter<InputImageType, OutputImageType>
- ::ThreadedGenerateData(const OutputImageRegionType &threadRegion, itk::ThreadIdType threadId)
+ ::ThreadedGenerateData(const OutputImageRegionType &threadRegion, int threadId)
{
//Pointers to input and output
typename InputImageType::ConstPointer input1=this->GetInput(0);
MeasureType ComputeSums( const ParametersType & parameters ) const;
- inline bool GetValueThreadProcessSample( itk::ThreadIdType threadID,
+ inline bool GetValueThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue ) const;
- inline bool GetValueAndDerivativeThreadProcessSample( itk::ThreadIdType threadID,
+ inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue,
delete [] m_ThreaderDerivativeF;
}
m_ThreaderDerivativeF = new DerivativeType[this->m_NumberOfThreads];
- for(itk::ThreadIdType threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
+ for(unsigned int 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(itk::ThreadIdType threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
+ for(unsigned int threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
m_ThreaderDerivativeM[threadID].SetSize( this->m_NumberOfParameters );
}
}
inline bool
NormalizedCorrelationImageToImageMetric<TFixedImage,TMovingImage>
::GetValueThreadProcessSample(
- itk::ThreadIdType threadID,
+ unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue) const
inline bool
NormalizedCorrelationImageToImageMetric<TFixedImage,TMovingImage>
::GetValueAndDerivativeThreadProcessSample(
- itk::ThreadIdType threadID,
+ unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue,
0,
this->m_NumberOfParameters * sizeof(typename DerivativeType::ValueType) );
- for( itk::ThreadIdType threadID = 0; threadID<this->m_NumberOfThreads; threadID++ ) {
+ for( unsigned int 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( ThreadIdType threadID,
+ inline bool GetValueThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue ) const;
- inline bool GetValueAndDerivativeThreadProcessSample( ThreadIdType threadID,
+ inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue,
delete [] m_ThreaderDerivativeF;
}
m_ThreaderDerivativeF = new DerivativeType[this->m_NumberOfThreads];
- for(ThreadIdType threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
+ for(unsigned int 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(ThreadIdType threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
+ for(unsigned int threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
m_ThreaderDerivativeM[threadID].SetSize( this->m_NumberOfParameters );
}
}
inline bool
NormalizedCorrelationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
::GetValueThreadProcessSample(
- ThreadIdType threadID,
+ unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue) const
inline bool
NormalizedCorrelationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
::GetValueAndDerivativeThreadProcessSample(
- ThreadIdType threadID,
+ unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue,
0,
this->m_NumberOfParameters * sizeof(typename DerivativeType::ValueType) );
- for( ThreadIdType threadID = 0; threadID<this->m_NumberOfThreads; threadID++ ) {
+ for( unsigned int 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, ThreadIdType threadId );
+ // void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
// void AfterThreadedGenerateData(void );
// // Override defaults
// virtual void GenerateInputRequestedRegion();
*/
void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
- itk::ThreadIdType threadId );
+ int threadId );
/** Default implementation for resampling that works for any
* transformation type.
*/
void NonlinearThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread,
- itk::ThreadIdType threadId );
+ int threadId );
/** Faster implementation for resampling that works for with linear
* transformation types.
*/
void LinearThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
- itk::ThreadIdType threadId );
+ int threadId );
private:
TransformToDeformationFieldSource<TOutputImage, TTransformPrecisionType>
::ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
- itk::ThreadIdType threadId )
+ int 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,
- itk::ThreadIdType threadId )
+ int threadId )
{
// Get the output pointer
OutputImagePointer outputPtr = this->GetOutput();
TransformToDeformationFieldSource<TOutputImage, TTransformPrecisionType>
::LinearThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
- itk::ThreadIdType threadId )
+ int threadId )
{
// Get the output pointer
OutputImagePointer outputPtr = this->GetOutput();
FixedImageSampleContainer & samples );
/** Compute PDF derivative contribution for each parameter. */
- virtual void ComputePDFDerivatives( ThreadIdType threadID,
+ virtual void ComputePDFDerivatives( unsigned int threadID,
unsigned int sampleNumber,
int movingImageParzenWindowIndex,
const ImageDerivativesType
mutable bool m_ImplicitDerivativesSecondPass;
- virtual inline void GetValueThreadPreProcess( ThreadIdType threadID,
+ virtual inline void GetValueThreadPreProcess( unsigned int threadID,
bool withinSampleThread ) const;
- virtual inline bool GetValueThreadProcessSample( ThreadIdType threadID,
+ virtual inline bool GetValueThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue ) const;
- virtual inline void GetValueThreadPostProcess( ThreadIdType threadID,
+ virtual inline void GetValueThreadPostProcess( unsigned int threadID,
bool withinSampleThread ) const;
virtual inline void GetValueAndDerivativeThreadPreProcess(
- ThreadIdType threadID,
+ unsigned int threadID,
bool withinSampleThread ) const;
- virtual inline bool GetValueAndDerivativeThreadProcessSample( ThreadIdType threadID,
+ virtual inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue,
const ImageDerivativesType &
movingImageGradientValue ) const;
virtual inline void GetValueAndDerivativeThreadPostProcess(
- ThreadIdType threadID,
+ unsigned int threadID,
bool withinSampleThread ) const;
};
}
m_ThreaderJointPDFSum = new double[this->m_NumberOfThreads];
- ThreadIdType threadID;
+ unsigned int threadID;
int binRange = m_NumberOfHistogramBins / this->m_NumberOfThreads;
template < class TFixedImage, class TMovingImage >
inline void
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueThreadPreProcess( ThreadIdType threadID,
+::GetValueThreadPreProcess( unsigned int threadID,
bool withinSampleThread ) const
{
template < class TFixedImage, class TMovingImage >
inline bool
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueThreadProcessSample( ThreadIdType threadID,
+::GetValueThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue) const
template < class TFixedImage, class TMovingImage >
inline void
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueThreadPostProcess( ThreadIdType threadID,
+::GetValueThreadPostProcess( unsigned int threadID,
bool itkNotUsed(withinSampleThread) ) const
{
unsigned int t;
// MUST BE CALLED TO INITIATE PROCESSING
this->GetValueMultiThreadedPostProcessInitiate();
- for(ThreadIdType threadID = 0; threadID<this->m_NumberOfThreads-1; threadID++) {
+ for(unsigned int 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( ThreadIdType threadID,
+::GetValueAndDerivativeThreadPreProcess( unsigned int threadID,
bool itkNotUsed(withinSampleThread) ) const
{
if(threadID > 0) {
template < class TFixedImage, class TMovingImage >
inline bool
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueAndDerivativeThreadProcessSample( ThreadIdType threadID,
+::GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue,
template < class TFixedImage, class TMovingImage >
inline void
MattesMutualInformationImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueAndDerivativeThreadPostProcess( ThreadIdType threadID,
+::GetValueAndDerivativeThreadPostProcess( unsigned int threadID,
bool withinSampleThread ) const
{
this->GetValueThreadPostProcess( threadID, withinSampleThread );
} else {
this->m_PRatioArray.Fill( 0.0 );
this->m_MetricDerivative.Fill( NumericTraits< MeasureType >::Zero );
- for(ThreadIdType threadID = 0; threadID < this->m_NumberOfThreads-1; threadID++ ) {
+ for(unsigned int 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(ThreadIdType threadID = 0; threadID<this->m_NumberOfThreads-1; threadID++) {
+ for(unsigned int 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( ThreadIdType threadID,
+::ComputePDFDerivatives( unsigned int threadID,
unsigned int sampleNumber,
int pdfMovingIndex,
const ImageDerivativesType & movingImageGradientValue,
//purposely not implemented
void operator=(const Self &);
- inline bool GetValueThreadProcessSample( ThreadIdType threadID,
+ inline bool GetValueThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue ) const;
- inline bool GetValueAndDerivativeThreadProcessSample( ThreadIdType threadID,
+ inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue,
delete [] m_ThreaderMSEDerivatives;
}
m_ThreaderMSEDerivatives = new DerivativeType[this->m_NumberOfThreads];
- for(ThreadIdType threadID=0; threadID<this->m_NumberOfThreads; threadID++) {
+ for(unsigned int 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( ThreadIdType threadID,
+::GetValueThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue) const
template < class TFixedImage, class TMovingImage >
inline bool
MeanSquaresImageToImageMetricFor3DBLUTFFD<TFixedImage,TMovingImage>
-::GetValueAndDerivativeThreadProcessSample( ThreadIdType threadID,
+::GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & itkNotUsed(mappedPoint),
double movingImageValue,
0,
this->m_NumberOfParameters * sizeof(double) );
- for( ThreadIdType threadID = 0; threadID<this->m_NumberOfThreads; threadID++ ) {
+ for( unsigned int 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, itk::ThreadIdType threadId);
+ void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId);
//----------------------------------------
// Data members
//-------------------------------------------------------------------
template<class InputImageType>
void
- CombineImageFilter<InputImageType>::ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId)
+ CombineImageFilter<InputImageType>::ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int 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, itk::ThreadIdType threadId );
+ void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
//----------------------------------------
// Data members
//-------------------------------------------------------------------
template<class InputImageType, class OutputImageType>
void
- VectorImageToImageFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId)
+ VectorImageToImageFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId)
{
// Iterators
typename OutputImageType::Pointer output=this->GetOutput();