Revision 8a6de86e1a29c53020689dfee6c679a7b6fda78b authored by Konrad Werys on 01 November 2019, 08:16:31 UTC, committed by Konrad Werys on 01 November 2019, 08:16:31 UTC
1 parent e684d8a
OxTestItkImagesFactory_test.cpp
/*!
* \file itkOxT1ImageFilter_test.cpp
* \author Konrad Werys
* \date 2018/08/13
*/
#include "CmakeConfigForTomato.h"
#ifdef USE_ITK
#include "gtest/gtest.h"
#include "OxTestItkImagesFactory.h"
TEST(OxTestItkImagesFactory, generateImagesWithoutErrros) {
typedef double TYPE;
typedef itk::Image <TYPE, 2> Image2dType;
typedef itk::Image <TYPE, 3> Image3dType;
std::vector< std::string > filePaths;
filePaths.push_back("testData/blood.yaml");
filePaths.push_back("testData/myocardium.yaml");
int nRows = 30; //y
int nCols = 20; //x
Ox::TestItkImagesFactory<TYPE> itkImagesFactory(nRows, nCols, filePaths);
Image3dType::Pointer imageMag = itkImagesFactory.generateImageMag();
Image3dType::Pointer imagePha = itkImagesFactory.generateImagePha();
Image2dType::Pointer imageMolliA = itkImagesFactory.generateImageResultsMolliA();
Image2dType::Pointer imageMolliB = itkImagesFactory.generateImageResultsMolliB();
Image2dType::Pointer imageMolliT1star = itkImagesFactory.generateImageResultsMolliT1star();
Image2dType::Pointer imageShmolliA = itkImagesFactory.generateImageResultsShmolliA();
Image2dType::Pointer imageShmolliB = itkImagesFactory.generateImageResultsShmolliB();
Image2dType::Pointer imageShmolliT1star = itkImagesFactory.generateImageResultsShmolliT1star();
}
#endif //USE_ITK
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...