Hi, 
<p>I would like to use ScalarChanAndVeseDenseLevelSetImageFilter</p>

<p>I preprocessed my featureimage and created level set image (like <a href="http://www.itk.org/Wiki/ITK/Examples/WishList/Segmentation/SinglephaseChanAndVeseDenseFieldLevelSetSegmentation" target="_top" rel="nofollow" link="external">example</a>)</p>


<pre>
typedef itk::ScalarChanAndVeseDenseLevelSetImageFilter<ImageType, ImageType, ImageType, LevelSetFunctionType, SharedDataHelperType > MultiLevelSetType;
MultiLevelSetType::Pointer levelSetFilter = MultiLevelSetType::New();
levelSetFilter->SetFunctionCount( 1 );
levelSetFilter->SetFeatureImage(result);
levelSetFilter->SetLevelSet(0, contour);
levelSetFilter->SetNumberOfIterations( nb_iteration );
levelSetFilter->SetMaximumRMSError( rms );
levelSetFilter->SetUseImageSpacing(0.28125 );
levelSetFilter->SetInPlace( false );
levelSetFilter->GetDifferenceFunction(0)->SetDomainFunction( domainFunction );
levelSetFilter->GetDifferenceFunction(0)->SetCurvatureWeight( curvature_weight );
levelSetFilter->GetDifferenceFunction(0)->SetAreaWeight( area_weight );
levelSetFilter->GetDifferenceFunction(0)->SetReinitializationSmoothingWeight( reinitialization_weight );
levelSetFilter->GetDifferenceFunction(0)->SetVolumeMatchingWeight( volume_weight );
levelSetFilter->GetDifferenceFunction(0)->SetVolume( volume );
levelSetFilter->GetDifferenceFunction(0)->SetLambda1( l1 );
levelSetFilter->GetDifferenceFunction(0)->SetLambda2( l2 );
levelSetFilter->Update();

</pre>

<p>And i obtain this exception : </p>

<pre style="color:#FF2222;">
Exception caught Level Set !

itk::ExceptionObject (0x1565dc20)
Location: "void itk::ImageConstIterator<TImage>::SetRegion(const RegionType&) [with TImage = itk::Image<float, 2u>; itk::ImageConstIterator<TImage>::RegionType = itk::ImageRegion<2u>]" 
File: ../../../../../../../Program Files (x86)/ITK/include/ITK-4.4/itkImageConstIterator.h
Line: 208
Description: itk::ERROR: Region ImageRegion (0x28ce30)
  Dimension: 2
  Index: [303, 319]
  Size: [200, 200]
 is outside of buffered region ImageRegion (0x4fb0074)
  Dimension: 2
  Index: [220, 220]
  Size: [200, 200]

</pre>

<p>i tried to change the index, but never worked.</p>



        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://itk-users.7.n7.nabble.com/ScalarChanAndVeseDenseLevelSetImageFilter-tp33083.html">ScalarChanAndVeseDenseLevelSetImageFilter</a><br/>
Sent from the <a href="http://itk-users.7.n7.nabble.com/">ITK - Users mailing list archive</a> at Nabble.com.<br/>