27#include <spdlog/spdlog.h>
32 spdlog::info(
"OperationRegistry: Registering all operations");
34 registerToneAdjustments(factory);
40 spdlog::info(
"OperationRegistry: All operations registered");
44 spdlog::debug(
"OperationRegistry: Registering tone adjustment operations");
48 spdlog::trace(
"Factory register Brightness");
52 spdlog::trace(
"Factory register Contrast");
56 spdlog::trace(
"Factory register Highlights");
60 spdlog::trace(
"Factory register Shadows");
64 spdlog::trace(
"Factory register Whites");
68 spdlog::trace(
"Factory register Blacks");
76void OperationRegistry::registerColorOperations(OperationFactory& factory) {
77 spdlog::debug(
"OperationRegistry: Registering color operations");
93void OperationRegistry::registerColorProfiles(OperationFactory& factory) {
94 spdlog::debug(
"OperationRegistry: Registering color profile operations");
107void OperationRegistry::registerDetailOperations(OperationFactory& factory) {
108 spdlog::debug(
"OperationRegistry: Registering detail operations");
124void OperationRegistry::registerEffects(OperationFactory& factory) {
125 spdlog::debug(
"OperationRegistry: Registering effect operations");
Factory Pattern - creates operations from OperationDescriptor.
void registerCreator(OperationType type, std::function< std::unique_ptr< IOperation >()> creator)
Register an operation creator for a given type using a lambda/function.
static void registerAll(OperationFactory &factory)
Register all available operations.
@ Blacks
Blacks adjustment. Adjusts the luminosity of the black point of the image. Increasing blacks makes th...
@ Whites
Whites adjustment. Adjusts the luminosity of the white point of the image. Increasing whites makes th...
@ Brightness
Brightness adjustment (Additive). Adds a constant value to all pixels. Use sparingly as it can wash o...
@ Contrast
Contrast adjustment (Multiplicative around a midpoint). Expands or compresses the dynamic range aroun...
@ Highlights
Highlights adjustment. Adjusts the luminosity of the brightest areas of the image....
@ Shadows
Shadows adjustment. Adjusts the luminosity of the darkest areas of the image. Increasing shadows brig...
Concrete implementation of Blacks adjustment.
Concrete implementation of Brightness adjustment.
Concrete implementation of Contrast adjustment.
Concrete implementation of Highlights adjustment.
Central registry for all image operations.
Concrete implementation of Shadows adjustment.
Concrete implementation of Whites adjustment.