std::uint32_t getWidth() const
getWidth Gets the width of the bitmap.
Definition: bitmap.cpp:20
geometrize::Model m_model
The model for the primitive optimization/fitting algorithm.
Definition: imagerunner.cpp:67
std::uint32_t shapeCount
The number of candidate shapes that will be tried per model step.
Definition: imagerunneroptions.h:19
ShapeTypes
The ShapeTypes enum specifies the types of shapes that can be used. These can be combined to produce ...
Definition: shapetypes.h:16
geometrize::Bitmap & getTarget()
getTarget Gets the target bitmap.
Definition: model.cpp:241
std::uint32_t maxThreads
The maximum number of separate threads for the implementation to use. 0 lets the implementation choos...
Definition: imagerunneroptions.h:22
void setSeed(std::uint32_t seed)
setSeed Sets the seed that the random number generators of this model use. Note that the model also u...
Definition: model.cpp:261
std::function< std::shared_ptr< geometrize::Shape >)> createDefaultShapeCreator(const geometrize::ShapeTypes types, const std::int32_t w, const std::int32_t h)
createDefaultShapeCreator Creates an instance of the default shape creator object. The setup, mutate and rasterize methods are bound with default methods.
Definition: shapefactory.cpp:25
std::vector< geometrize::ShapeResult > step(const std::function< std::shared_ptr< geometrize::Shape >(void)> &shapeCreator, std::uint8_t alpha, std::uint32_t shapeCount, std::uint32_t maxShapeMutations, std::uint32_t maxThreads, const geometrize::core::EnergyFunction &energyFunction=nullptr)
step Steps the primitive optimization/fitting algorithm.
Definition: model.cpp:225
std::uint32_t maxShapeMutations
The maximum number of times each candidate shape will be modified to attempt to find a better fit...
Definition: imagerunneroptions.h:20
std::uint32_t seed
The seed for the random number generators used by the image runner.
Definition: imagerunneroptions.h:21
std::uint8_t alpha
The alpha/opacity of the shapes (0-255).
Definition: imagerunneroptions.h:18
std::uint32_t getHeight() const
getHeight Gets the height of the bitmap.
Definition: bitmap.cpp:25
geometrize::ShapeTypes shapeTypes
The shape types that the image runner shall use.
Definition: imagerunneroptions.h:17