7 #ifndef __FWTEST_GENERATOR_IMAGE_HPP__ 8 #define __FWTEST_GENERATOR_IMAGE_HPP__ 10 #include "fwTest/config.hpp" 12 #include <fwCore/base.hpp> 14 #include <fwData/Image.hpp> 16 #include <fwDataTools/helper/Array.hpp> 18 #include <fwMath/Compare.hpp> 20 #include <fwTools/Type.hpp> 50 FWTEST_API
static void generateImage(::fwData::Image::sptr image,
52 std::vector<double> spacing,
53 std::vector<double> origin,
60 FWTEST_API
static void randomizeArray(::fwData::Array::sptr array);
71 #endif // __FWTEST_GENERATOR_IMAGE_HPP__ std::vector< size_t > SizeType
Array size type.
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 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.
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.
::fwData::Array::SizeType SizeType
Image size type.