Repository navigation
ENH: Support of VectorImage as template parameters for WarpImageFilter - #8
jmichel-otb wants to merge 1 commit into
Conversation
This patch relates to issue InsightSoftwareConsortium#2895 ( https://issues.itk.org/jira/browse/ITK-2895#comment-27056 ) It is a straigthforward port of OTB patch provided by Julien Malik on his github page (see first comment) Patch summary: - In itkWarpImageFilter.h: - Replace HasNumericTraits concept checking on TInputImage::PixelType by checking on TInputImage::InternalPixelType, since HasNumericTraits will fail with VariableLengthVector as PixelType - In itkWarpImageFilter.txx: - Changed instanciation of m_EdgePaddingValue member to avoid calling NumericTraits< PixelType >::Zero, which does not exist for VariableLengthVector - Add further initialization of m_EdgePaddingValue in BeforeThreadedGenerateData, so that it will generate a VariableLenghtVector of appropriate length if needed - Avoid calling DisplacementType::Dimension and use the GetLength method from NumericTraits instead, which will support both static and dynamic (VariableLengthVector) length - In itkWarpImageFilterTest.cxx: - Added a simple test for template instanciation of WarpImageFilter using VectorImage for all three template parameters Change-Id: I44fb183dd6a684a23312446b2bc2d62e7f8eff7b
|
Note that I initially planned to push this patch to gerrit, but I am behind a firewall and did not manage to get http push working, though I carefully followed http://www.itk.org/Wiki/ITK/Git/Account#Gerrit : I am quite sure this worked for me in the past (I have 3 merged patches and 1 abandonned logged in gerrit already). |
ENH: Refactored SpatialObjectPoints and its derivatives
DOC: Update FFT class names
Fix test failure related to issue #7 Verified with problematic data set. Converted MGZ to nifti and back again. read all files into slicer and confirmed that reading and writing appears to work in all combinations.
…licSection COMP: Move ITK_DISALLOW_COPY_AND_ASSIGN calls to public section.
COMP: Address SetInput override virtual warning.
…ToPublicS ection COMP: Move ITK_DISALLOW_COPY_AND_ASSIGN calls to public section.
ENH: Providing ITKv5 updates for C++11
ENH: Update the license header to the ISC copyright.
…ng-test-data ENH: adding test data
ENH: Providing ITKv5 updates for C++11
…ToPublicS ection COMP: Move ITK_DISALLOW_COPY_AND_ASSIGN calls to public section.
COMP: Use itk::Math::abs instead of std::abs
…ently STYLE: Use "typename" for template parameters.
ENH: Providing ITKv5 updates for C++11
…_math_XX Replace vnl math xx
Improve tests: - Use the `TRY_EXPECT_NO_EXCEPTION` macro to update filters and avoid boilerplate code. - Exercise the basic object methods using the `EXERCISE_BASIC_OBJECT_METHODS` macro. - Remove the `using namespace std` as per ITK guidelines. - Some style changes to conform to the ITK Software Guide.
…ignToPubl icSection COMP: Move ITK_DISALLOW_COPY_AND_ASSIGN calls to public section
DOC: Improve documentation.
…locally_defined_symbol COMP: Correct warning due to locally defined symbol
…BJECT_MET HODS BUG: Not enough arguments in EXERCISE_BASIC_OBJECT_METHODS (ITK-3459)
ENH: Adding test in Python
…ment ENH: Renamed 'Deformation' by 'Displacement'
This patch relates to issue #2895 ( https://issues.itk.org/jira/browse/ITK-2895#comment-27056 )
It is a straigthforward port of OTB patch provided by Julien Malik on his github page (see first comment)
Patch summary:
Change-Id: I44fb183dd6a684a23312446b2bc2d62e7f8eff7b