Issues about itkTransformixFilter #1260
Unanswered
yourtheron
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I performed a simple rigid-body registration via elastix C++
`bool ImageRegistration::ElastixAutoRegistration(const std::string regMethod)
{
this->_opMode = 1;
// Remove all pairs of user-specified landmarks, if any.
int p = 0;
int lmCount = this->GetLMCount();
if (lmCount > 0)
{
for (p = 0; p < lmCount; p++) RemoveOnePairLandMarks(p);
}
ImagePointer fixedImage = ImageType::New();
ImagePointer movingImage = ImageType::New();
VTKDataTransformOperation::VTKImageToITK(this->_fixedImage, fixedImage);
if (this->GetRegStatus())
{
VTKDataTransformOperation::VTKImageToITK(this->_regImage, movingImage);
}
else
{
VTKDataTransformOperation::VTKImageToITK(this->_movingImage, movingImage);
}
}`
Then, I wish to use itk::TransformixFilter to apply the same registration parameter to a newMovingImage. And yet no matter how I declare and define itk::TransformixFilter::Pointer transformixFilter = itk::TransformixFilter::New();, the compiler says something like it is an abstract object that cannot be instantiated. Could you help me figure out why? Or is it already a known issue? Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions