<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 13px;" lang="x-unicode">Hello,
<br>
<br>
i use itk::RegularStepGradientDescentBaseOptimizer for computing
path between structures, the first version is doing in a for loop
and one by one and it works, but it's very long so i use openMP
for parallel computation. I made the directive fot the for loop
and i launch it in multprocessor and i have this seg fault
<br>
<br>
Program received signal SIGSEGV, Segmentation fault.
<br>
<br>
[Switching to Thread 1126189376 (LWP 17584)]
<br>
0x00000000004be7d4 in
itk::LinearInterpolateImageFunction<itk::Image<double,
3u>, double>::EvaluateAtContinuousIndex (
<br>
this=0x2aaabc028150, index=@0x43202c70)
<br>
at
/data/id19/bones/Creatis/All/thirdparty_install/include/InsightToolkit/Common/itkLinearInterpolateImageFunction.txx:150<br>
150 value += static_cast<RealType>(
this->GetInputImage()->GetPixel( neighIndex ) ) * overlap;
<br>
(gdb) bt
<br>
#0 0x00000000004be7d4 in
itk::LinearInterpolateImageFunction<itk::Image<double,
3u>, double>::EvaluateAtContinuousIndex (
<br>
this=0x2aaabc028150, index=@0x43202c70)
<br>
at
/data/id19/bones/Creatis/All/thirdparty_install/include/InsightToolkit/Common/itkLinearInterpolateImageFunction.txx:150<br>
#1 0x00000000004bcc9e in
itk::InterpolateImageFunction<itk::Image<double, 3u>,
double>::Evaluate (this=0x2aaabc028150,
<br>
point=@0x43202d00)
<br>
at
/data/id19/bones/Creatis/All/thirdparty_install/include/InsightToolkit/Common/itkInterpolateImageFunction.h:93<br>
#2 0x000000000046c406 in
itk::PhysicalCentralDifferenceImageFunction<itk::Image<double,
3u>, double>::Evaluate (
<br>
this=0x2aaabc027360, point=@0x43202db0)
<br>
at
/data/id19/bones2/maria/linux/source/lcNetwork/Src/FastMarching/itkPhysicalCentralDifferenceImageFunction.txx:65<br>
#3 0x00000000004b8dbe in
itk::SingleImageCostFunction<itk::Image<double, 3u>
>::GetDerivative (this=0x2aaab8033a20,
<br>
parameters=@0x2aaab9740790, derivative=@0x2aaab97407e0)
<br>
at
/data/id19/bones2/maria/linux/source/lcNetwork/Src/FastMarching/itkSingleImageCostFunction.txx:136<br>
#4 0x00000000004627f2 in
itk::SingleValuedCostFunction::GetValueAndDerivative
(this=0x2aaab8033a20,
<br>
parameters=@0x2aaab9740790, value=@0x2aaab9740818,
derivative=@0x2aaab97407e0)
<br>
at
/data/id19/bones/Creatis/All/thirdparty_install/include/InsightToolkit/Numerics/itkSingleValuedCostFunction.h:76<br>
#5 0x00002aaaabd4fc57 in
itk::RegularStepGradientDescentBaseOptimizer::ResumeOptimization
()
<br>
from
/data/id19/bones/Creatis/All/thirdparty_install/lib/InsightToolkit/libITKNumerics.so.3.20<br>
#6 0x00002aaaabd503b9 in
itk::RegularStepGradientDescentBaseOptimizer::StartOptimization ()
<br>
from
/data/id19/bones/Creatis/All/thirdparty_install/lib/InsightToolkit/libITKNumerics.so.3.20<br>
#7 0x00000000004ba2ce in
itk::ArrivalFunctionToPathFilter<itk::Image<double, 3u>,
itk::PolyLineParametricPath<3u> >::GenerateData
(this=0x2aaabc026f60)
<br>
at
/data/id19/bones2/maria/linux/source/lcNetwork/Src/FastMarching/itkArrivalFunctionToPathFilter.txx:199<br>
#8 0x00000000004ba752 in
itk::SpeedFunctionToPathFilter<itk::Image<double, 3u>,
itk::PolyLineParametricPath<3u> >::GenerateData
(this=0x2aaabc026f60)
<br>
at
/data/id19/bones2/maria/linux/source/lcNetwork/Src/FastMarching/itkSpeedFunctionToPathFilter.txx:185<br>
#9 0x00002aaab313e7af in itk::ProcessObject::UpdateOutputData ()
<br>
from
/data/id19/bones/Creatis/All/thirdparty_install/lib/InsightToolkit/libITKCommon.so.3.20<br>
#10 0x00002aaab30fb192 in itk::DataObject::UpdateOutputData ()
<br>
from
/data/id19/bones/Creatis/All/thirdparty_install/lib/InsightToolkit/libITKCommon.so.3.20<br>
#11 0x00002aaab30fb0b6 in itk::DataObject::Update ()
<br>
from
/data/id19/bones/Creatis/All/thirdparty_install/lib/InsightToolkit/libITKCommon.so.3.20<br>
#12 0x00002aaab313dd51 in itk::ProcessObject::Update ()
<br>
from
/data/id19/bones/Creatis/All/thirdparty_install/lib/InsightToolkit/libITKCommon.so.3.20<br>
#13 0x00000000004605da in calculFastMarching (startfile=
<br>
{static npos = 18446744073709551615, _M_dataplus =
{<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No data
fields>}, <No data fields>}, _M_p = 0x43204050 "�q'\n"}},
endfile=
<br>
{static npos = 18446744073709551615, _M_dataplus =
{<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No data
fields>}, <No data fields>}, _M_p = 0x43204040
"\210r'\n"}}, startindex=1, debug=1, advanced=false,
<br>
vote=0.050000000000000003, inputfile=
<br>
{static npos = 18446744073709551615, _M_dataplus =
{<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No data
fields>}, <No data fields>}, _M_p = 0x43204030 "�p'\n"}},
addImage={m_Pointer = 0x43204020})
<br>
at
/data/id19/bones2/maria/linux/source/lcNetwork/Apps/FastMarching/fastmarchingTestMP.cxx:306<br>
#14 0x000000000046210c in main.omp_fn.0
(.omp_data_i=0x7fff042f66b0)
<br>
at
/data/id19/bones2/maria/linux/source/lcNetwork/Apps/FastMarching/fastmarchingTestMP.cxx:191<br>
#15 0x00002aaab59ce4ac in GOMP_single_copy_start () from
/usr/lib64/libgomp.so.1
<br>
#16 0x00002aaab479d2e7 in start_thread () from
/lib64/libpthread.so.0
<br>
#17 0x0000003caf4ce3bd in clone () from /lib64/libc.so.6
<br>
<br>
<br>
_______________________________________________
<br>
Powered by <a class="moz-txt-link-abbreviated"
href="http://www.kitware.com">www.kitware.com</a>
<br>
<br>
Visit other Kitware open-source projects at
<br>
<a class="moz-txt-link-freetext"
href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
<br>
<br>
Kitware offers ITK Training Courses, for more information visit:
<br>
<a class="moz-txt-link-freetext"
href="http://kitware.com/products/protraining.php">http://kitware.com/products/protraining.php</a>
<br>
<br>
Please keep messages on-topic and check the ITK FAQ at:
<br>
<a class="moz-txt-link-freetext"
href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>
<br>
<br>
Follow this link to subscribe/unsubscribe:
<br>
<a class="moz-txt-link-freetext"
href="http://www.itk.org/mailman/listinfo/insight-developers">http://www.itk.org/mailman/listinfo/insight-developers</a>
<br>
<br>
</div>
</body>
</html>