tnayak
(T Nayak)
July 18, 2022, 6:47am
1
Hi all,
I am currently try to implement the DeformableRegistration10 example, in that I am getting the following error C2039 ‘CurvatureRegistrationFilter’: is not a member of ‘itk’. Anyone have any idea how to fix this error?
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#include "itkConfigure.h"
#ifndef ITK_USE_FFTWD
This file has been truncated. show original
dzenanz
(Dženan Zukić)
July 18, 2022, 1:54pm
2
Are you using CMake for your project? Did your ITK build correctly?
zx-lhb
(zx-lhb)
May 23, 2023, 7:15am
3
I met with the same problem, I can include the itkCurvatureRegistrationFilter.h, but can not use it. Have you fix it?
dzenanz
(Dženan Zukić)
May 23, 2023, 1:58pm
4
itkCurvatureRegistrationFilter.h
has the following guard condition:
#if !defined(ITK_USE_CUFFTW) && (defined(ITK_USE_FFTWF) || defined(ITK_USE_FFTWD))
ITK’s build system does not enable building DeformableRegistration10
example unless FFTW is enabled. You need to build ITK with FFTW to be able to use this filter.
zx-lhb
(zx-lhb)
May 24, 2023, 1:48am
5
Got it, thank you very much!