Skip to content

Commit

Permalink
Merge pull request #102 from KrisThielemans/fixFuzzyCorrFilter
Browse files Browse the repository at this point in the history
Fix itkTypeMacro and fuzzyCorrFilter
  • Loading branch information
KrisThielemans authored Dec 9, 2024
2 parents fb4e727 + 1bc9e81 commit 3ad7877
Show file tree
Hide file tree
Showing 18 changed files with 73 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/petpvcDiscreteIYPVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ class DiscreteIYPVCImageFilter:public ImageToImageFilter< TInputImage, TInputIma
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(DiscreteIYPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(DiscreteIYPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
6 changes: 5 additions & 1 deletion lib/petpvcFuzzyCorrectionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class FuzzyCorrectionFilter : public ImageToImageFilter<TImage, TImage>

itkNewMacro(Self);

itkTypeMacro(FuzzyCorrFilter, ImageToImageFilter);
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(FuzzyCorrectionFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(FuzzyCorrectionFilter);
#endif

//Returns correction factors.

Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcGTMImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ class GTMImageFilter : public ImageToImageFilter<TImage, TImage>

itkNewMacro(Self);

#if ITK_VERSION_MAJOR < 6
itkTypeMacro(GTMImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(GTMImageFilter);
#endif

//Returns correction factors.
vnl_matrix<float> GetMatrix() {
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcIntraRegRLImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class IntraRegRLImageFilter:public ImageToImageFilter< TInputImage, TInputImage
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(IntraRegRLImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(IntraRegRLImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcIntraRegVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class IntraRegVCImageFilter:public ImageToImageFilter< TInputImage, TInputImage
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(IntraRegVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(IntraRegVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcIterativeYangPVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class IterativeYangPVCImageFilter:public ImageToImageFilter< TInputImage, TInput
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(IterativeYangPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(IterativeYangPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcLabbeImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ class LabbeImageFilter : public ImageToImageFilter<TImage, TImage>

itkNewMacro(Self);

#if ITK_VERSION_MAJOR < 6
itkTypeMacro(LabbeImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(LabbeImageFilter);
#endif

//Returns correction factors.
vnl_matrix<float> GetMatrix() {
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcLabbeMTCPVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ class LabbeMTCPVCImageFilter:public ImageToImageFilter< TInputImage, TInputImage
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(LabbeMTCPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(LabbeMTCPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcLabbePVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ class LabbePVCImageFilter:public ImageToImageFilter< TInputImage, TInputImage >
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(LabbePVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(LabbePVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcLabbeRBVPVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ class LabbeRBVPVCImageFilter:public ImageToImageFilter< TInputImage, TInputImage
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(LabbeRBVPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(LabbeRBVPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcMTCPVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ class MTCPVCImageFilter:public ImageToImageFilter< TInputImage, TInputImage >
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(MTCPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(MTCPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcMullerGartnerImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ class MullerGartnerImageFilter :

itkNewMacro(Self);

#if ITK_VERSION_MAJOR < 6
itkTypeMacro(MullerGartnerImageFilter, InPlaceImageFilter);
#else
itkOverrideGetNameOfClassMacro(MullerGartnerImageFilter);
#endif

//PET image
typedef TInputImage1 Input1ImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcRBVPVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ class RBVPVCImageFilter:public ImageToImageFilter< TInputImage, TInputImage >
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(RBVPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(RBVPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcRLPVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ class RichardsonLucyPVCImageFilter:public ImageToImageFilter< TInputImage, TInpu
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(RichardsonLucyPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(RichardsonLucyPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcRegionConvolutionImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ class RegionConvolutionPVCImageFilter:public ImageToImageFilter< TInputImage, TI
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(RegionConvolutionPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(RegionConvolutionPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcRoussetPVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ class RoussetPVCImageFilter:public ImageToImageFilter< TInputImage, TInputImage
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(RoussetPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(RoussetPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcSTCPVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ class STCPVCImageFilter:public ImageToImageFilter< TInputImage, TInputImage >
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(STCPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(STCPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down
4 changes: 4 additions & 0 deletions lib/petpvcVanCittertPVCImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ class VanCittertPVCImageFilter:public ImageToImageFilter< TInputImage, TInputIma
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#if ITK_VERSION_MAJOR < 6
itkTypeMacro(VanCittertPVCImageFilter, ImageToImageFilter);
#else
itkOverrideGetNameOfClassMacro(VanCittertPVCImageFilter);
#endif

/** Image related typedefs. */
typedef TInputImage InputImageType;
Expand Down

0 comments on commit 3ad7877

Please sign in to comment.