Medical Imaging Interaction Toolkit  2018.4.99-a28b433c
Medical Imaging Interaction Toolkit
mitkImageStatisticsContainerNodeHelper.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
13 
14 #include <mitkProperties.h>
15 
16 namespace mitk
17 {
19  auto statisticsNode = mitk::DataNode::New();
20  statisticsNode->SetName(name);
21  statisticsNode->SetData(statistic);
22  statisticsNode->SetProperty("helper object", mitk::BoolProperty::New(true));
23  return statisticsNode;
24  }
25 }
DataCollection - Class to facilitate loading/accessing structured data.
DataNode::Pointer CreateImageStatisticsNode(ImageStatisticsContainer::Pointer statistic, const std::string &name)
static Pointer New()
static Pointer New()