[ITK-users] Problem applying landmarks in FEM registration
Vikas
rsvpitt at gmail.com
Thu Oct 23 07:04:10 EDT 2014
Hi,
I am having issues applying landmarks to FEM registration and would
appreciate any help to resolve it.
I am following the example in RegistrationITKv4/DeformableRegistration11
with the following modification:
//Add landmartks
RegistrationType::PointType SourceLandmark;
RegistrationType::PointType TargetLandmark;
SourceLandmark[0] = 23;SourceLandmark[1] = 12;SourceLandmark[2] = 41;
TargetLandmark[0] = 26;TargetLandmark[1] = 16;TargetLandmark[2] = 45;
registrationFilter->AddLandmark(SourceLandmark,TargetLandmark);
registrationFilter->SetUseLandmarks(true);
I get a run time error: "Vector subscript out of range".
The call stack is as follows:
> msvcp90d.dll!std::_Debug_message(const wchar_t *
message=0x000000013fa48fc8, const wchar_t * file=0x000000013fa49010,
unsigned int line=779) Line 24 C++
HybridRegistration.exe!std::vector<itk::fem::Element const *
__ptr64,std::allocator<itk::fem::Element const * __ptr64>
>::operator[](unsigned __int64 _Pos=0) Line 780 C++
HybridRegistration.exe!itk::fem::FEMRegistrationFilter<itk::Image<float,3>,itk::Image<float,3>,itk::fem::FEMObject<3>
>::ApplyLoads(itk::Size<3> ImgSz={...}, double *
scaling=0x0000000000000000) Line 410 + 0x35 bytes C++
HybridRegistration.exe!itk::fem::FEMRegistrationFilter<itk::Image<float,3>,itk::Image<float,3>,itk::fem::FEMObject<3>
>::MultiResSolve() Line 1173 C++
HybridRegistration.exe!itk::fem::FEMRegistrationFilter<itk::Image<float,3>,itk::Image<float,3>,itk::fem::FEMObject<3>
>::RunRegistration() Line 169 C++
HybridRegistration.exe!main(int argc=1, char * *
argv=0x0000000002546b40) Line 225 C++
HybridRegistration.exe!__tmainCRTStartup() Line 586 + 0x19 bytes C
HybridRegistration.exe!mainCRTStartup() Line 403 C
Thanks
Vikas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20141023/8e072415/attachment.html>
More information about the Insight-users
mailing list