Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added versioning to filter parameters and json #1088

Merged
merged 10 commits into from
Sep 30, 2024
Merged
  •  
  •  
  •  

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ Parameters ITKAbsImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKAbsImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKAbsImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKAbsImageFilter : public IFilter
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ Parameters ITKAcosImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKAcosImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKAcosImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKAcosImageFilter : public IFilter
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ Parameters ITKAdaptiveHistogramEqualizationImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKAdaptiveHistogramEqualizationImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKAdaptiveHistogramEqualizationImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKAdaptiveHistogramEqualizationImageFilter : pu
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ Parameters ITKApproximateSignedDistanceMapImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKApproximateSignedDistanceMapImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKApproximateSignedDistanceMapImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKApproximateSignedDistanceMapImageFilter : pub
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ Parameters ITKAsinImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKAsinImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKAsinImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKAsinImageFilter : public IFilter
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ Parameters ITKAtanImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKAtanImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKAtanImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKAtanImageFilter : public IFilter
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ Parameters ITKBinaryContourImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKBinaryContourImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKBinaryContourImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKBinaryContourImageFilter : public IFilter
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ Parameters ITKBinaryDilateImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKBinaryDilateImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKBinaryDilateImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKBinaryDilateImageFilter : public IFilter
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ Parameters ITKBinaryErodeImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKBinaryErodeImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKBinaryErodeImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKBinaryErodeImageFilter : public IFilter
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ Parameters ITKBinaryMorphologicalClosingImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKBinaryMorphologicalClosingImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKBinaryMorphologicalClosingImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKBinaryMorphologicalClosingImageFilter : publi
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ Parameters ITKBinaryMorphologicalOpeningImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKBinaryMorphologicalOpeningImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKBinaryMorphologicalOpeningImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKBinaryMorphologicalOpeningImageFilter : publi
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ Parameters ITKBinaryOpeningByReconstructionImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKBinaryOpeningByReconstructionImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKBinaryOpeningByReconstructionImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKBinaryOpeningByReconstructionImageFilter : pu
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ Parameters ITKBinaryProjectionImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKBinaryProjectionImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKBinaryProjectionImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKBinaryProjectionImageFilter : public IFilter
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ Parameters ITKBinaryThinningImageFilter::parameters() const
return params;
}

//------------------------------------------------------------------------------
IFilter::VersionType ITKBinaryThinningImageFilter::parametersVersion() const
{
return 1;
}

//------------------------------------------------------------------------------
IFilter::UniquePointer ITKBinaryThinningImageFilter::clone() const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ class ITKIMAGEPROCESSING_EXPORT ITKBinaryThinningImageFilter : public IFilter
*/
Parameters parameters() const override;

/**
* @brief Returns parameters version integer.
* Initial version should always be 1.
* Should be incremented everytime the parameters change.
* @return VersionType
*/
VersionType parametersVersion() const override;

/**
* @brief Returns a copy of the filter.
* @return
Expand Down
Loading
Loading