<div dir="ltr">Dear TubeTK developers,<div><br></div><div style>I'm newbie in TubeTK library. I want to extract tube objects in a 3D image using "itktubeRidgeExtractor". So, I write code such as itktubeRidgeExtractorTest2.cxx, but a function "LocalRidge" always returns false. My input 3D image is </div>
<div style> Spacing: 0.04, 0.04, 0.00616</div><div style> Dimension: 126, 101, 500</div><div style> Origin: 0, 0, 0,</div><div style>while Branch.n010.sub.mha used in the Testing directory is</div><div style> Spacing: 1.0, 1.0, 1.0.</div>
<div style>Could you tell me whether Spacing must be (1.0, 1.0, 1.0) or not in tubeRidgeExtractor? </div><div style><br></div><div style>~~~~~~~~~~~~~~~~~~~~~</div><div style><div> ImageReaderType::Pointer imReader = ImageReaderType::New();<br>
</div><div> imReader->SetFileName( argv[1] );</div><div> imReader->Update();</div><div> ImageType::Pointer im = imReader->GetOutput();<br></div><div><br></div><div> typedef itk::tube::RidgeExtractor<ImageType> RidgeOpType;<br>
</div><div> RidgeOpType::Pointer ridgeOp = RidgeOpType::New();</div><div><br></div><div> ridgeOp->SetInputImage( im );</div><div> ridgeOp->SetStepX( 0.75 );</div><div> ridgeOp->SetExtent( 2.5 );</div><div> ridgeOp->SetDynamicScale( true );</div>
<div> ridgeOp->SetScale( 1.0 );</div><div><br></div><div> RidgeOpType::ContinuousIndexType x0;</div><div> x0[0] = 2.5;</div><div> x0[1] = 2.0;</div><div> x0[2] = 1.5;;<br></div><div><br></div><div> if( !ridgeOp->LocalRidge( x0 ) )</div>
<div> {</div><div> std::cout << "Local ridge computation failed. No ridge found." << std::endl;</div><div> return EXIT_FAILURE;</div><div> }</div><div>~~~~~~~~~~~~~~~~~~~~~<br></div></div>
<div style><br></div><div style>Thanks a lot,</div><div style>yoshimi</div></div>