Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include "mitkCommandLineParser.h"
#include "mitkImage.h"
#include <mitkImageStatisticsCalculator.h>
#include <mitkExtendedLabelStatisticsImageFilter.h>
#include <mitkPlanarFigureMaskGenerator.h>
#include <mitkPlanarFigure.h>
#include "mitkIOUtil.h"
#include <iostream>
#include <usAny.h>
#include <fstream>
#include <itkImageRegionConstIterator.h>
#include "mitkImageAccessByItk.h"
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <boost/accumulators/statistics/mean.hpp>
#include <boost/accumulators/statistics/variance.hpp>
#include <boost/accumulators/statistics/min.hpp>
#include <boost/accumulators/statistics/max.hpp>
#include <boost/accumulators/statistics/count.hpp>
#include <boost/accumulators/statistics/moment.hpp>
#include <mitkImageMaskGenerator.h>
#include <mitkHotspotMaskGenerator.h>
#include <mitkIgnorePixelMaskGenerator.h>
#include <chrono>
Go to the source code of this file.
Functions | |
long | getTimeInMs () |
template<class T , class P > | |
void | printMap (std::map< T, P > input) |
template<typename TPixel , unsigned int VImageDimension> | |
void | get_statistics_boost (itk::Image< TPixel, VImageDimension > *itkImage, statistics_res &res) |
void | compute_statistics (std::string inputImageFile="/home/fabian/MITK/MITK_platform_project/bin/MITK-superbuild/MITK-Data/Pic3D.nrrd", std::string outfname="/home/fabian/MITK/MITK_platform_project/bin/MITK-superbuild/MITK-Data/Pic3D_statistics_new.txt", std::string outfname2="/home/fabian/MITK/MITK_platform_project/bin/MITK-superbuild/MITK-Data/Pic3D_statistics_old.txt", std::string maskImageFile="/home/fabian/MITK/MITK_platform_project/bin/MITK-superbuild/MITK-Data/Pic3D_someSegmentation.nrrd", std::string pFfile="/home/fabian/MITK/MITK_platform_project/bin/MITK-superbuild/MITK-Data/Pic3D_rectangle.pf") |
int | main (int argc, char *argv[]) |
void compute_statistics | ( | std::string | inputImageFile = "/home/fabian/MITK/MITK_platform_project/bin/MITK-superbuild/MITK-Data/Pic3D.nrrd" , |
std::string | outfname = "/home/fabian/MITK/MITK_platform_project/bin/MITK-superbuild/MITK-Data/Pic3D_statistics_new.txt" , |
||
std::string | outfname2 = "/home/fabian/MITK/MITK_platform_project/bin/MITK-superbuild/MITK-Data/Pic3D_statistics_old.txt" , |
||
std::string | maskImageFile = "/home/fabian/MITK/MITK_platform_project/bin/MITK-superbuild/MITK-Data/Pic3D_someSegmentation.nrrd" , |
||
std::string | pFfile = "/home/fabian/MITK/MITK_platform_project/bin/MITK-superbuild/MITK-Data/Pic3D_rectangle.pf" |
||
) |
Definition at line 136 of file ImageStatisticsMiniapp_v2.cpp.
References getTimeInMs(), mitk::IOUtil::Load(), mitk::IOUtil::LoadImage(), mitk::ImageMaskGenerator::New(), mitk::ImageStatisticsCalculator::New(), mitk::IgnorePixelMaskGenerator::New(), mitk::PlanarFigureMaskGenerator::New(), and mitk::HotspotMaskGenerator::New().
Referenced by main().
void get_statistics_boost | ( | itk::Image< TPixel, VImageDimension > * | itkImage, |
statistics_res & | res | ||
) |
Definition at line 101 of file ImageStatisticsMiniapp_v2.cpp.
long getTimeInMs | ( | ) |
Definition at line 47 of file ImageStatisticsMiniapp_v2.cpp.
Referenced by compute_statistics().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 335 of file ImageStatisticsMiniapp_v2.cpp.
References compute_statistics().
void printMap | ( | std::map< T, P > | input | ) |
Definition at line 91 of file ImageStatisticsMiniapp_v2.cpp.