Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include "mitkCommandLineParser.h"
#include <mitkIOUtil.h>
#include <mitkRegistrationWrapper.h>
#include <mitkImage.h>
#include <mitkImageCast.h>
#include <mitkITKImageImport.h>
#include <mitkImageTimeSelector.h>
#include <mitkDiffusionPropertyHelper.h>
#include <mitkProperties.h>
#include <itksys/SystemTools.hxx>
#include <itkDirectory.h>
#include "itkLinearInterpolateImageFunction.h"
#include "itkWindowedSincInterpolateImageFunction.h"
#include "itkNearestNeighborInterpolateImageFunction.h"
#include "itkIdentityTransform.h"
#include "itkResampleImageFilter.h"
#include "itkResampleDwiImageFilter.h"
Go to the source code of this file.
Typedefs | |
typedef itk::Image< double, 3 > | InputImageType |
typedef itk::Image< unsigned char, 3 > | BinaryImageType |
Functions | |
static mitk::Image::Pointer | TransformToReference (mitk::Image *reference, mitk::Image *moving, bool sincInterpol=false, bool nn=false) |
static std::vector< std::string > & | split (const std::string &s, char delim, std::vector< std::string > &elems) |
static std::vector< std::string > | split (const std::string &s, char delim) |
static mitk::Image::Pointer | ResampleBySpacing (mitk::Image *input, float *spacing, bool useLinInt=true, bool useNN=false) |
static void | SaveImage (std::string fileName, mitk::Image *image, std::string fileType) |
Save images according to file type. More... | |
mitk::Image::Pointer | ResampleDWIbySpacing (mitk::Image::Pointer input, float *spacing, bool useLinInt=true) |
int | main (int argc, char *argv[]) |
typedef itk::Image<unsigned char, 3> BinaryImageType |
Definition at line 42 of file ImageResampler.cpp.
typedef itk::Image<double, 3> InputImageType |
Definition at line 41 of file ImageResampler.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 320 of file ImageResampler.cpp.
References mitkCommandLineParser::addArgument(), us::any_cast(), mitkCommandLineParser::Bool, mitkCommandLineParser::helpText(), mitkCommandLineParser::InputImage, mitk::DiffusionPropertyHelper::IsDiffusionWeightedImage(), mitk::IOUtil::LoadImage(), MITK_ERROR, MITK_WARN, mitkCommandLineParser::OutputFile, mitkCommandLineParser::parseArguments(), ResampleBySpacing(), ResampleDWIbySpacing(), mitk::IOUtil::Save(), mitk::IOUtil::SaveImage(), mitkCommandLineParser::setArgumentPrefix(), mitkCommandLineParser::setCategory(), mitkCommandLineParser::setContributor(), mitkCommandLineParser::setDescription(), mitkCommandLineParser::setTitle(), split(), mitkCommandLineParser::String, and TransformToReference().
|
static |
1) Resampling
1) Resampling
Definition at line 137 of file ImageResampler.cpp.
References mitk::CastToItkImage(), mitk::GrabItkImageMemory(), mitk::New(), and mitk::Image::New().
Referenced by main().
mitk::Image::Pointer ResampleDWIbySpacing | ( | mitk::Image::Pointer | input, |
float * | spacing, | ||
bool | useLinInt = true |
||
) |
Definition at line 292 of file ImageResampler.cpp.
References mitk::CastToItkImage(), mitk::DiffusionPropertyHelper::GetGradientContainer(), mitk::DiffusionPropertyHelper::GetReferenceBValue(), mitk::GrabItkImageMemory(), mitk::DiffusionPropertyHelper::GRADIENTCONTAINERPROPERTYNAME, mitk::DiffusionPropertyHelper::InitializeImage(), mitk::FloatProperty::New(), mitk::New(), and mitk::DiffusionPropertyHelper::REFERENCEBVALUEPROPERTYNAME.
Referenced by main().
|
static |
Save images according to file type.
Definition at line 285 of file ImageResampler.cpp.
References mitk::IOUtil::Save().
|
static |
Definition at line 119 of file ImageResampler.cpp.
Referenced by mitk::NavigationToolReader::ConvertStringToPoint(), mitk::NavigationToolReader::ConvertStringToPointSet(), mitk::NavigationToolReader::ConvertStringToQuaternion(), mitk::EventFactory::CreateEvent(), mitk::DICOMStringToOrientationVectors(), mitk::DICOMStringToPoint3D(), mitk::DICOMStringToSpacing(), main(), split(), mitk::USDevicePersistence::StringToUSProbe(), mitk::USDevicePersistence::StringToUSVideoDevice(), mitk::ThresholdSplit< TColumnDecisionFunctor, TFeatureCalculator, TTag >::UseRandomSplit(), mitk::ConnectomicsNetworkCSVWriter::Write(), and mitk::ConnectomicsNetworkMatrixWriter::Write().
|
static |
Definition at line 130 of file ImageResampler.cpp.
References split().
|
static |
Definition at line 45 of file ImageResampler.cpp.
References mitk::CastToItkImage(), mitk::GrabItkImageMemory(), mitk::New(), and mitk::Image::New().
Referenced by main().