Processing (2D)
Color processing applied to the 2D image (color balance, gamma, color mode).
For guidance on choosing these settings, see 2D 設定.
-
class Processing
2D processing settings.
Public Functions
-
Processing()
Default constructor.
-
template<typename ...Args>
inline explicit Processing(Args&&... args) Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Processingthen invokingset(args).The provided arguments must be descendants of
Processing. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Processing. These types can be provided:
-
template<typename ...Args>
inline Processing copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Processing object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Processing. These types can be provided:
-
inline Processing &set(const Color &value)
Set Color.
-
inline Processing &set(const Color::Balance &value)
Set Color::Balance.
-
inline Processing &set(const Color::Balance::Blue &value)
Set Color::Balance::Blue.
-
inline Processing &set(const Color::Balance::Green &value)
-
inline Processing &set(const Color::Balance::Red &value)
Set Color::Balance::Red.
-
inline Processing &set(const Color::Experimental &value)
Set Color::Experimental.
-
inline Processing &set(const Color::Experimental::Mode &value)
-
inline Processing &set(const Color::Gamma &value)
Set Color::Gamma.
-
template<typename F>
inline void forEach(const F &f) const Run the given function on each direct member with the value of the member as parameter.
-
template<typename F>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
bool operator==(const Processing &other) const
Equality operator.
-
bool operator!=(const Processing &other) const
Inequality operator.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"Processing"}
The full path for this value.
-
static constexpr const char *name = {"Processing"}
The name of this value.
- static constexpr const char * description = { R"description(2D processing settings.)description" }
The description for this value.
Friends
-
inline friend std::ostream &operator<<(std::ostream &stream, const Processing &value)
Operator to send the value as string to a stream.
-
class Color
Color settings.
Public Functions
-
Color()
Default constructor.
-
template<typename ...Args>
inline explicit Color(Args&&... args) Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Colorthen invokingset(args).The provided arguments must be descendants of
Color. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Color. These types can be provided:
-
template<typename ...Args>
inline Color copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Color object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Color. These types can be provided:
-
inline Color &set(const Balance::Blue &value)
Set Balance::Blue.
-
inline Color &set(const Balance::Green &value)
Set Balance::Green.
-
inline Color &set(const Balance::Red &value)
Set Balance::Red.
-
inline const Experimental &experimental() const
Get Experimental.
-
inline Experimental &experimental()
Get Experimental.
-
inline Color &set(const Experimental &value)
Set Experimental.
-
inline Color &set(const Experimental::Mode &value)
Set Experimental::Mode.
-
template<typename F>
inline void forEach(const F &f) const Run the given function on each direct member with the value of the member as parameter.
-
template<typename F>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"Processing/Color"}
The full path for this value.
-
static constexpr const char *name = {"Color"}
The name of this value.
- static constexpr const char * description = { R"description(Color settings.)description" }
The description for this value.
Friends
-
class Balance
Color balance settings.
Public Functions
-
Balance()
Default constructor.
-
template<typename ...Args>
inline explicit Balance(Args&&... args) Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Balancethen invokingset(args).The provided arguments must be descendants of
Balance. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Balance. These types can be provided:
-
template<typename ...Args>
inline Balance copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Balance object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Balance. These types can be provided:
-
template<typename F>
inline void forEach(const F &f) const Run the given function on each direct member with the value of the member as parameter.
-
template<typename F>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"Processing/Color/Balance"}
The full path for this value.
-
static constexpr const char *name = {"Balance"}
The name of this value.
- static constexpr const char * description = { R"description(Color balance settings.)description" }
The description for this value.
Friends
-
class Blue
Digital gain applied to blue channel.
Public Types
-
using ValueType = double
The type of the underlying value.
Public Functions
-
Blue() = default
Default constructor.
-
inline explicit constexpr Blue(double value)
Constructor.
-
double value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
bool hasValue() const
Check if the value is set.
-
void reset()
Reset the node to unset state.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Processing/Color/Balance/Blue"}
The full path for this value.
-
static constexpr const char *name = {"Blue"}
The name of this value.
- static constexpr const char * description {R"description(Digital gain applied tobluechannel.)description"}
The description for this value.
-
using ValueType = double
-
class Green
Digital gain applied to green channel.
Public Types
-
using ValueType = double
The type of the underlying value.
Public Functions
-
Green() = default
Default constructor.
-
inline explicit constexpr Green(double value)
Constructor.
-
double value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
bool hasValue() const
Check if the value is set.
-
void reset()
Reset the node to unset state.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Processing/Color/Balance/Green"}
The full path for this value.
-
static constexpr const char *name = {"Green"}
The name of this value.
- static constexpr const char * description {R"description(Digital gain applied togreenchannel.)description"}
The description for this value.
-
using ValueType = double
-
class Red
Digital gain applied to red channel.
Public Types
-
using ValueType = double
The type of the underlying value.
Public Functions
-
Red() = default
Default constructor.
-
inline explicit constexpr Red(double value)
Constructor.
-
double value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
bool hasValue() const
Check if the value is set.
-
void reset()
Reset the node to unset state.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Processing/Color/Balance/Red"}
The full path for this value.
-
static constexpr const char *name = {"Red"}
The name of this value.
- static constexpr const char * description {R"description(Digital gain applied toredchannel.)description"}
The description for this value.
-
using ValueType = double
-
Balance()
-
class Experimental
Experimental color settings. These may be renamed, moved or deleted in the future.
Public Functions
-
Experimental()
Default constructor.
-
template<typename ...Args>
inline explicit Experimental(Args&&... args) Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Experimentalthen invokingset(args).The provided arguments must be descendants of
Experimental. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Experimental. These types can be provided:
-
template<typename ...Args>
inline Experimental copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Experimental object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Experimental. These types can be provided:
-
inline Experimental &set(const Mode &value)
Set Mode.
-
template<typename F>
inline void forEach(const F &f) const Run the given function on each direct member with the value of the member as parameter.
-
template<typename F>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
bool operator==(const Experimental &other) const
Equality operator.
-
bool operator!=(const Experimental &other) const
Inequality operator.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"Processing/Color/Experimental"}
The full path for this value.
-
static constexpr const char *name = {"Experimental"}
The name of this value.
- static constexpr const char * description {R"description(Experimental colorsettings. These may be renamed, moved or deleted in the future.)description"}
The description for this value.
Friends
-
inline friend std::ostream &operator<<(std::ostream &stream, const Experimental &value)
Operator to send the value as string to a stream.
-
class Mode
This setting controls how the color image is computed.
automaticis the default option. It performs tone mapping for HDR captures, but not for single-acquisition captures. Use this mode with a single acquisition if you want to have the most control over the colors in the image.toneMappinguses all the acquisitions to create one merged and normalized color image. For HDR captures the dynamic range of the captured images is usually higher than the 8-bit color image range.toneMappingwill map the HDR color data to the 8-bit color output range by applying a scaling factor.toneMappingcan also be used for single-acquisition captures to normalize the captured color image to the full 8-bit output. Note that when usingtoneMappingmode the color values can be inconsistent over repeated captures if you move, add or remove objects in the scene. For the most control over the colors in the single-acquisition case, select theautomaticmode.Public Types
Public Functions
-
Mode() = default
Default constructor.
-
ValueType value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
bool hasValue() const
Check if the value is set.
-
void reset()
Reset the node to unset state.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Processing/Color/Experimental/Mode"}
The full path for this value.
-
static constexpr const char *name = {"Mode"}
The name of this value.
- static constexpr const char * description {R"description(This setting controls how thecolorimage is computed.`automatic` is the default option. It performs tone mapping for HDR captures, but not forsingle-acquisition captures. Use thismodewith a single acquisition if you want to havethe most control over the colors in the image.`toneMapping` uses all the acquisitions to create one merged and normalized colorimage. ForHDR captures the dynamic range of the captured images is usually higher than the 8-bitcolor image range. `toneMapping` will map the HDR color data to the 8-bit coloroutput range byapplying a scaling factor. `toneMapping` can also be used for single-acquisition captures tonormalize the capturedcolor image to the full 8-bit output. Note that when using `toneMapping` mode the colorvalues can be inconsistent over repeated captures if you move, add or removeobjects in the scene. For the most control over the colors in the single-acquisition case,select the `automatic` mode.)description"}
The description for this value.
-
Mode() = default
-
Experimental()
-
class Gamma
Gamma applied to the color values.
Gamma less than 1 makes the colors brighter, while gamma greater than 1 makes the colors darker.
Public Types
-
using ValueType = double
The type of the underlying value.
Public Functions
-
Gamma() = default
Default constructor.
-
inline explicit constexpr Gamma(double value)
Constructor.
-
double value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
bool hasValue() const
Check if the value is set.
-
void reset()
Reset the node to unset state.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Processing/Color/Gamma"}
The full path for this value.
-
static constexpr const char *name = {"Gamma"}
The name of this value.
- static constexpr const char * description {R"description(Gamma applied to the color values. Gamma less than 1 makes the colors brighter, while gammagreater than 1 makes the colors darker.)description"}
The description for this value.
-
using ValueType = double
-
Color()
-
Processing()
-
struct ProcessingGroup
2D processing settings.
Public Functions
-
inline ProcessingGroup()
Constructor.
- ProcessingGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- ProcessingGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
-
struct ColorGroup
Color settings.
Public Functions
-
inline ColorGroup()
Constructor.
- ColorGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- ColorGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
System::Nullable<double> Gamma
Gamma applied to the color values.
Gamma less than 1 makes the colors brighter, while gamma greater than 1 makes the colors darker.
-
struct BalanceGroup
Color balance settings.
Public Functions
-
inline BalanceGroup()
Constructor.
- BalanceGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- BalanceGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
-
inline BalanceGroup()
-
struct ExperimentalGroup
Experimental color settings. These may be renamed, moved or deleted in the future.
Public Types
-
enum class ModeOption : std::underlying_type<Zivid::Settings2D::Processing::Color::Experimental::Mode::ValueType>::type
This setting controls how the color image is computed.
automaticis the default option. It performs tone mapping for HDR captures, but not for single-acquisition captures. Use this mode with a single acquisition if you want to have the most control over the colors in the image.toneMappinguses all the acquisitions to create one merged and normalized color image. For HDR captures the dynamic range of the captured images is usually higher than the 8-bit color image range.toneMappingwill map the HDR color data to the 8-bit color output range by applying a scaling factor.toneMappingcan also be used for single-acquisition captures to normalize the captured color image to the full 8-bit output. Note that when usingtoneMappingmode the color values can be inconsistent over repeated captures if you move, add or remove objects in the scene. For the most control over the colors in the single-acquisition case, select theautomaticmode.Values:
-
enumerator Automatic
-
enumerator ToneMapping
-
enumerator Automatic
Public Functions
-
inline ExperimentalGroup()
Constructor.
- ExperimentalGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- ExperimentalGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
System::Nullable<ModeOption> Mode
This setting controls how the color image is computed.
automaticis the default option. It performs tone mapping for HDR captures, but not for single-acquisition captures. Use this mode with a single acquisition if you want to have the most control over the colors in the image.toneMappinguses all the acquisitions to create one merged and normalized color image. For HDR captures the dynamic range of the captured images is usually higher than the 8-bit color image range.toneMappingwill map the HDR color data to the 8-bit color output range by applying a scaling factor.toneMappingcan also be used for single-acquisition captures to normalize the captured color image to the full 8-bit output. Note that when usingtoneMappingmode the color values can be inconsistent over repeated captures if you move, add or remove objects in the scene. For the most control over the colors in the single-acquisition case, select theautomaticmode.
-
enum class ModeOption : std::underlying_type<Zivid::Settings2D::Processing::Color::Experimental::Mode::ValueType>::type
-
inline ColorGroup()
-
inline ProcessingGroup()
- class Processing(color: Color | None = None)
2D processing settings.
- class Color(
- gamma: float | int | None = _zivid.Settings2D.Processing.Color.Gamma().value,
- balance: Balance | None = None,
- experimental: Experimental | None = None,
Color settings.
- class Balance(
- blue: float | int | None = _zivid.Settings2D.Processing.Color.Balance.Blue().value,
- green: float | int | None = _zivid.Settings2D.Processing.Color.Balance.Green().value,
- red: float | int | None = _zivid.Settings2D.Processing.Color.Balance.Red().value,
Color balance settings.
- property blue
Digital gain applied to blue channel.
- property green
Digital gain applied to green channel.
- property red
Digital gain applied to red channel.
- class Experimental( )
Experimental color settings. These may be renamed, moved or deleted in the future.
- class Mode
This setting controls how the color image is computed.
automaticis the default option. It performs tone mapping for HDR captures, but not for single-acquisition captures. Use this mode with a single acquisition if you want to have the most control over the colors in the image.toneMappinguses all the acquisitions to create one merged and normalized color image. For HDR captures the dynamic range of the captured images is usually higher than the 8-bit color image range.toneMappingwill map the HDR color data to the 8-bit color output range by applying a scaling factor.toneMappingcan also be used for single-acquisition captures to normalize the captured color image to the full 8-bit output. Note that when usingtoneMappingmode the color values can be inconsistent over repeated captures if you move, add or remove objects in the scene. For the most control over the colors in the single-acquisition case, select theautomaticmode.
- property mode
This setting controls how the color image is computed.
automaticis the default option. It performs tone mapping for HDR captures, but not for single-acquisition captures. Use this mode with a single acquisition if you want to have the most control over the colors in the image.toneMappinguses all the acquisitions to create one merged and normalized color image. For HDR captures the dynamic range of the captured images is usually higher than the 8-bit color image range.toneMappingwill map the HDR color data to the 8-bit color output range by applying a scaling factor.toneMappingcan also be used for single-acquisition captures to normalize the captured color image to the full 8-bit output. Note that when usingtoneMappingmode the color values can be inconsistent over repeated captures if you move, add or remove objects in the scene. For the most control over the colors in the single-acquisition case, select theautomaticmode.
- property balance
Color balance settings.
- property experimental
Experimental color settings. These may be renamed, moved or deleted in the future.
- property gamma
Gamma applied to the color values. Gamma less than 1 makes the colors brighter, while gamma greater than 1 makes the colors darker.
- property color
Color settings.