fw4spl
|
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. | |
This class contains helper to generate images.
Definition at line 32 of file tests/fwTest/include/fwTest/generator/Image.hpp.
|
static |
Generate an image with the given informations. Buffer is filled with 0.
image | image to generate |
size | vector of image size |
spacing | vector of image spacing |
origin | vector of image origin |
type | image type |
Definition at line 31 of file tests/fwTest/src/fwTest/generator/Image.cpp.
References fwDataTools::helper::Array::begin().