本文整理汇总了C++中mitk::image::Pointer::GetTimeSteps方法的典型用法代码示例。如果您正苦于以下问题:C++ Pointer::GetTimeSteps方法的具体用法?C++ Pointer::GetTimeSteps怎么用?C++ Pointer::GetTimeSteps使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mitk::image::Pointer
的用法示例。
在下文中一共展示了Pointer::GetTimeSteps方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: accessor
void mitk::MorphologicalOperations::Closing(mitk::Image::Pointer &image,
int factor,
mitk::MorphologicalOperations::StructuralElementType structuralElement)
{
MITK_INFO << "Start Closing...";
int timeSteps = static_cast<int>(image->GetTimeSteps());
if (timeSteps > 1)
{
mitk::ImageTimeSelector::Pointer timeSelector = mitk::ImageTimeSelector::New();
timeSelector->SetInput(image);
for (int t = 0; t < timeSteps; ++t)
{
MITK_INFO << " Processing time step " << t;
timeSelector->SetTimeNr(t);
timeSelector->Update();
mitk::Image::Pointer img3D = timeSelector->GetOutput();
img3D->DisconnectPipeline();
AccessByItk_3(img3D, itkClosing, img3D, factor, structuralElement);
mitk::ImageReadAccessor accessor(img3D);
image->SetVolume(accessor.GetData(), t);
}
}
else
{
AccessByItk_3(image, itkClosing, image, factor, structuralElement);
}
MITK_INFO << "Finished Closing";
}