fw4spl
fwTest::generator::Image Class Reference

This class contains helper to generate images. More...

#include <Image.hpp>

Static Public Member Functions

static FWTEST_API void initRand ()
 Initialize 'rand' seed.
 
static FWTEST_API void generateImage (::fwData::Image::sptr image,::fwData::Image::SizeType size, std::vector< double > spacing, std::vector< double > origin,::fwTools::Type type)
 Generate an image with the given informations. Buffer is filled with 0. More...
 
static FWTEST_API void generateRandomImage (::fwData::Image::sptr image,::fwTools::Type type)
 Generate an image with random information (size, spacing, ...). Buffer is filled with random values.
 
static FWTEST_API void randomizeArray (::fwData::Array::sptr array)
 Fill array with random value.
 
static FWTEST_API::fwData::Array::sptr createRandomizedArray (const std::string &type,::fwData::Array::SizeType sizes)
 Creates an Array with the given type and size and fills buffer with random values.
 

Detailed Description

This class contains helper to generate images.

Definition at line 32 of file tests/fwTest/include/fwTest/generator/Image.hpp.

Member Function Documentation

void fwTest::generator::Image::generateImage ( ::fwData::Image::sptr  image,
::fwData::Image::SizeType  size,
std::vector< double >  spacing,
std::vector< double >  origin,
::fwTools::Type  type 
)
static

Generate an image with the given informations. Buffer is filled with 0.

Parameters
imageimage to generate
sizevector of image size
spacingvector of image spacing
originvector of image origin
typeimage type

Definition at line 31 of file tests/fwTest/src/fwTest/generator/Image.cpp.

References fwDataTools::helper::Array::begin().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: