MCPcopy Create free account
hub / github.com/MITK/MITK / CloneImage

Method CloneImage

Modules/Segmentation/src/Algorithms/mitkCorrectorAlgorithm.cpp:246–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2>::Pointer mitk::CorrectorAlgorithm::CloneImage(
247 itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2>::Pointer pic)
248{
249 typedef itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2> ItkImageType;
250 typedef itk::ImageDuplicator<ItkImageType> DuplicatorType;
251 DuplicatorType::Pointer duplicator = DuplicatorType::New();
252 duplicator->SetInputImage(pic);
253 duplicator->Update();
254
255 return duplicator->GetOutput();
256}
257
258itk::Index<2> mitk::CorrectorAlgorithm::GetFirstPoint(
259 const mitk::CorrectorAlgorithm::TSegData &segment,

Callers

nothing calls this directly

Calls 4

SetInputImageMethod · 0.80
NewFunction · 0.50
UpdateMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected