I would try the "itk::ImageSliceIteratorWithIndex". Just set in the slices 24 to 55 all the pixelvalues = 0. There is maybe some other higher-performance possibility, but this one should also work.
Roman guoyanmin wrote: > > hallo everybody > i have one question, i have the Image daten with different slices, for > example slice 0 to slice 125, each slice has segmentation or without > segmentattion, if the slice has the segmentation then this slice has > the pixelvalue >0, if without the segmentation also, the pixelvalue=0, > now i have image daten from slice 23 to slice 56 with segmentation, > but i want only the slice 23 and slice 56 to keep the segmentation, > the another slices use keep segmentation not any more. > anybody can tell me, how i can set the another image with pixelvalue > with 0, that means, how i can delete the segmentation from the slice? > > now i use this class to extract one sliceImage > ExtractImageFilter::Pointer extractor= ExtractImageFilter::New(); > extractor->SetInput( m_Segmentation ); > extractor->SetSliceDimension( sliceDimension ); > extractor->SetSliceIndex( Index ); > extractor->SetTimeStep( timeStep ); > extractor->Update(); > SliceImage = extractor->GetOutput(); > > > > > > Guo,Yanmin > Darmstadt Deutschland > Phone(handy):0179-4820889 > > > ------------------------------------------------------------------------ > “七件武器,七种完美” 立刻体验! <http://get.live.cn> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
