Dear ITK users,<br><br>I'm recently working with Level set and Mumford-Shah model. I Download your code from the Insight-Journal web site "<a href="http://www.insight-journal.org/browse/publication/322">http://www.insight-journal.org/browse/publication/322</a>", the code compile nicely, but when i want to run an example it shows a message of type segmentation failed. Anyone tried this before?<br>
<br>I try to run the following code.<br>./ScalarSinglePhaseSparse2DTest example2D.png phi.mha seg.mha -i 50 --l1 1 --l2 1 --nu 10000<br>the message I got is:<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>SparseMultiphaseLevelSetImageFilter (0x88cd3f0)<br>
RTTI typeinfo: itk::SparseMultiphaseLevelSetImageFilter<itk::Image<float, 2u>, itk::Image<float, 2u>, itk::ScalarChanAndVeseLevelSetFunction<itk::Image<float, 2u>, itk::Image<float, 2u>, itk::ScalarChanAndVeseSharedFunctionData<itk::Image<float, 2u>, itk::Image<float, 2u> > >, float><br>
Reference Count: 2<br> Modified Time: 361<br> Debug: Off<br> Observers: <br> none<br> Number Of Required Inputs: 1<br> Number Of Required Outputs: 1<br> Number Of Threads: 2<br> ReleaseDataFlag: Off<br> ReleaseDataBeforeUpdateFlag: Off<br>
Input 0: (0x88b5278)<br> Output 0: (0x88cd4d0)<br> Output 1: (0x88cd630)<br> AbortGenerateData: Off<br> Progress: 0<br> Multithreader: <br> RTTI typeinfo: itk::MultiThreader<br> Reference Count: 1<br> Modified Time: 324<br>
Debug: Off<br> Observers: <br> none<br> Thread Count: 2<br> Global Maximum Number Of Threads: 0<br> InPlace: Off<br> The input and output to this filter are the same type. The filter can be run in place.<br>
ElapsedIterations: 0<br> UseImageSpacing: Off<br> State: 0<br> MaximumRMSError: 0<br> NumberOfIterations: 50<br> ManualReinitialization: 0<br> RMSChange: 0<br><br> DifferenceFunction: <br> ScalarChanAndVeseLevelSetFunction (0x88bca78)<br>
RTTI typeinfo: itk::ScalarChanAndVeseLevelSetFunction<itk::Image<float, 2u>, itk::Image<float, 2u>, itk::ScalarChanAndVeseSharedFunctionData<itk::Image<float, 2u>, itk::Image<float, 2u> > ><br>
Reference Count: 1<br> Radius: [1, 1]<br> ScaleCoefficients: 0x88bcaa0 WaveDT: 0.25<br> DT: 0.25<br> UseMinimalCurvature 0<br> EpsilonMagnitude: 1e-05<br> AdvectionWeight: 0<br> PropagationWeight: 0<br>
CurvatureWeight: 0<br> LaplacianSmoothingWeight: 0<br><br> m_IsoSurfaceValue: 0<br> m_BoundsCheckingActive: 0 m_LayerNodeStore: <br> ObjectStore (0x88b7958)<br> RTTI typeinfo: itk::ObjectStore<itk::SparseFieldLevelSetNode2<itk::Index<2u> > ><br>
Reference Count: 1<br> Modified Time: 345<br> Debug: Off<br> Observers: <br> none<br> m_GrowthStrategy: 1<br> m_Size: 0<br> m_LinearGrowthSize: 1024<br> Free list size: 0<br>
Free list capacity: 0<br> Number of blocks in store: 0<br> m_UpdateBuffer: size=0 capacity = 0<br> Name Of Class: SparseMultiphaseLevelSetImageFilter<br> m_ReverseExpansionDirection = 0<br> m_AutoGenerateSpeedAdvection = 1<br>
Name Of Class: <br><br>Segmentation failed.<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>I want to mention that I'm running this code in Ubuntu 9.04. <br>Thanks in Advance.<br>Jihan Zoghbi<br><a href="http://www.ime.usp.br/~jihan">www.ime.usp.br/~jihan</a><br>
-- <br>Jihan Zoghbi<br><a href="http://www.ime.usp.br/~jihan/">http://www.ime.usp.br/~jihan/</a><br>