Geometrize 1.0
C++ library for geometrizing images into geometric primitives
Public Attributes | List of all members
geometrize::ImageRunnerOptions Class Reference

The ImageRunnerOptions class encapsulates preferences/options that the image runner uses. More...

#include <imagerunneroptions.h>

Collaboration diagram for geometrize::ImageRunnerOptions:
Collaboration graph
[legend]

Public Attributes

geometrize::ShapeTypes shapeTypes = geometrize::ShapeTypes::ELLIPSE
 The shape types that the image runner shall use. More...
 
std::uint8_t alpha = 128U
 The alpha/opacity of the shapes (0-255). More...
 
std::uint32_t shapeCount = 50U
 The number of candidate shapes that will be tried per model step. More...
 
std::uint32_t maxShapeMutations = 100U
 The maximum number of times each candidate shape will be modified to attempt to find a better fit. More...
 
std::uint32_t seed = 9001U
 The seed for the random number generators used by the image runner. More...
 
std::uint32_t maxThreads = 0
 The maximum number of separate threads for the implementation to use. 0 lets the implementation choose a reasonable number. More...
 
ImageRunnerShapeBoundsOptions shapeBounds {}
 If zero or do not form a rectangle, the entire target image is used i.e. (0, 0, imageWidth, imageHeight) More...
 

Detailed Description

The ImageRunnerOptions class encapsulates preferences/options that the image runner uses.

Author
Sam Twidale (https://samcodes.co.uk/)

Member Data Documentation

◆ alpha

std::uint8_t geometrize::ImageRunnerOptions::alpha = 128U

The alpha/opacity of the shapes (0-255).

◆ maxShapeMutations

std::uint32_t geometrize::ImageRunnerOptions::maxShapeMutations = 100U

The maximum number of times each candidate shape will be modified to attempt to find a better fit.

◆ maxThreads

std::uint32_t geometrize::ImageRunnerOptions::maxThreads = 0

The maximum number of separate threads for the implementation to use. 0 lets the implementation choose a reasonable number.

◆ seed

std::uint32_t geometrize::ImageRunnerOptions::seed = 9001U

The seed for the random number generators used by the image runner.

◆ shapeBounds

ImageRunnerShapeBoundsOptions geometrize::ImageRunnerOptions::shapeBounds {}

If zero or do not form a rectangle, the entire target image is used i.e. (0, 0, imageWidth, imageHeight)

◆ shapeCount

std::uint32_t geometrize::ImageRunnerOptions::shapeCount = 50U

The number of candidate shapes that will be tried per model step.

◆ shapeTypes

geometrize::ShapeTypes geometrize::ImageRunnerOptions::shapeTypes = geometrize::ShapeTypes::ELLIPSE

The shape types that the image runner shall use.


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