Skip to content

Commit

Permalink
Added versioning to filter parameters and json (#1088)
Browse files Browse the repository at this point in the history
* Added IFilter::parametersVersion() and IParameter::getVersion()
* Updated filter hpp files
* Updated filter cpp files
* Updated IParameter::fromJson to allow for no version specified
* Updated test filters
* Updated parameters
* Updated python bindings
* Updated new filter from rebase
* Allowed backwards compatible parameter json reading
* Updated pipelines
---------


Signed-off-by: Jared Duffey <[email protected]>
  • Loading branch information
JDuffeyBQ authored Sep 30, 2024
1 parent f25133d commit 59d102d
Show file tree
Hide file tree
Showing 690 changed files with 20,751 additions and 12,794 deletions.

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

0 comments on commit 59d102d

Please sign in to comment.