《itk实用demo》-区域生长

版权声明:本文为博主原创文章,转载请注明出处,谢谢 https://blog.csdn.net/rabbitbride/article/details/82422068

区域生长

 typedef itk::ConnectedThresholdImageFilter<ImageType, ImageType> ConnectedFilterType0;
 ConnectedFilterType0::Pointer connectedThreshold0 = ConnectedFilterType0::New ();
 connectedThreshold0->SetInput( reader->GetOutput() );
 ImageType::IndexType  seed0;
 seed0[0] = seed2d[0];
 seed0[1] = seed2d[1];
 seed0[2] = 1;
 connectedThreshold0->AddSeed(seed0);
 connectedThreshold0->SetLower(  220 );
 connectedThreshold0->SetUpper( 1200 );
 connectedThreshold0->Update();

猜你喜欢

转载自blog.csdn.net/rabbitbride/article/details/82422068