Commit ad5db847 authored by Gregory C. Sharp's avatar Gregory C. Sharp

Fix for itk 5 api change in itkClampCastFilter

parent fba14ffb
......@@ -42,14 +42,14 @@ class ITK_EXPORT ClampCastImageFilter
~ClampCastImageFilter() {};
void PrintSelf(std::ostream& os, Indent indent) const;
#if ITK_VERSION_MAJOR == 3
#if ITK_VERSION_MAJOR >= 4
void ThreadedGenerateData (
const OutputImageRegionType& outputRegionForThread,
int threadId);
#else /* ITK 4 */
ThreadIdType threadId);
#else
void ThreadedGenerateData (
const OutputImageRegionType& outputRegionForThread,
ThreadIdType threadId);
int threadId);
#endif
private:
......
......@@ -18,7 +18,11 @@ template <class TInputImage, class TOutputImage>
ClampCastImageFilter<TInputImage, TOutputImage>
::ClampCastImageFilter()
{
#if ITK_VERSION_MAJOR >= 5
this->DynamicMultiThreadingOff();
#else
/* Do nothing */
#endif
}
template <class TInputImage, class TOutputImage>
......@@ -32,12 +36,13 @@ ClampCastImageFilter<TInputImage, TOutputImage>
template <class TInputImage, class TOutputImage>
void
ClampCastImageFilter<TInputImage, TOutputImage>
::ThreadedGenerateData (
const OutputImageRegionType& outputRegionForThread,
#if ITK_VERSION_MAJOR == 3
int threadId
#else /* ITK 4 */
ThreadIdType threadId
::ThreadedGenerateData
(
const OutputImageRegionType& outputRegionForThread
#if ITK_VERSION_MAJOR >= 4
, ThreadIdType threadId
#else
, int threadId
#endif
) {
itkDebugMacro(<<"Actually executing");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment