Classes | |
| struct | LabColor |
| struct | StandardRecipeEntry |
Functions | |
| static double | srgb_to_linear (double v) |
| static double | xyz_to_lab_component (double v) |
| static LabColor | rgb_to_lab (const ColorDecomposeRgb &rgb) |
| static std::string | lab_to_srgb_hex (const LabColor &lab) |
| static double | delta_e76 (const LabColor &a, const LabColor &b) |
| static bool | material_matches (const std::string &a, const std::string &b) |
| static std::vector< std::vector< int > > | ratio_grid (size_t n) |
| static ColorDecomposeRecipeMode | parse_mode (const std::string &s) |
| static std::vector< StandardRecipeEntry > | load_standard_entries () |
| static const std::vector< StandardRecipeEntry > & | standard_entries () |
| static void | evaluate_candidate (const ColorDecomposeRgb &target, const std::vector< std::string > &hexes, const std::vector< int > &ratios, const std::vector< unsigned int > &indices, ColorDecomposeRecipeMode mode, double &best_score, ColorDecomposeRecipeResult &best) |
| struct Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::LabColor |
| struct Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::StandardRecipeEntry |
| Class Members | ||
|---|---|---|
| vector< string > | component_hexes | |
| vector< string > | component_keys | |
| string | material | |
| string | measured_hex | |
| LabColor | measured_lab | |
| ColorDecomposeRecipeMode | mode {ColorDecomposeRecipeMode::CMYW} | |
| vector< int > | ratios | |
| string | source | |
|
static |
References Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::LabColor::a, Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::LabColor::b, delta_e76(), and Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::LabColor::l.
Referenced by delta_e76(), and evaluate_candidate().
|
static |
References Slic3r::blend_color_multi(), Slic3r::color_decompose_hex_to_rgb(), Slic3r::ColorDecomposeRecipeComponent::color_hex, Slic3r::ColorDecomposeRecipeResult::components, delta_e76(), evaluate_candidate(), Slic3r::ColorDecomposeRecipeComponent::filament_index, Slic3r::ColorDecomposeRecipeResult::matched_color_hex, Slic3r::ColorDecomposeRecipeResult::mode, Slic3r::ColorDecomposeRecipeComponent::ratio, rgb_to_lab(), and Slic3r::ColorDecomposeRecipeResult::valid.
Referenced by evaluate_candidate().
|
static |
References Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::LabColor::a, Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::LabColor::b, Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::LabColor::l, lab_to_srgb_hex(), Slic3r::X, Xn, Slic3r::Y, Yn, Slic3r::Z, and Zn.
Referenced by lab_to_srgb_hex().
|
static |
References Slic3r::color_decompose_hex_to_rgb(), Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::StandardRecipeEntry::component_hexes, Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::StandardRecipeEntry::component_keys, load_standard_entries(), Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::StandardRecipeEntry::material, Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::StandardRecipeEntry::measured_hex, Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::StandardRecipeEntry::measured_lab, Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::StandardRecipeEntry::mode, parse_mode(), Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::StandardRecipeEntry::ratios, Slic3r::resources_dir(), rgb_to_lab(), and Slic3r::anonymous_namespace{ColorDecomposeRecipe.cpp}::StandardRecipeEntry::source.
Referenced by load_standard_entries(), and standard_entries().
|
static |
References material_matches().
Referenced by material_matches().
|
static |
References Slic3r::CMYW, parse_mode(), and Slic3r::RYBW.
Referenced by load_standard_entries(), and parse_mode().
|
static |
References ratio_grid().
Referenced by ratio_grid().
|
static |
References Slic3r::ColorDecomposeRgb::b, Slic3r::ColorDecomposeRgb::g, Slic3r::ColorDecomposeRgb::r, rgb_to_lab(), srgb_to_linear(), and xyz_to_lab_component().
Referenced by evaluate_candidate(), load_standard_entries(), and rgb_to_lab().
|
static |
References srgb_to_linear().
Referenced by rgb_to_lab(), and srgb_to_linear().
|
static |
References load_standard_entries(), and standard_entries().
Referenced by standard_entries().
|
static |
References xyz_to_lab_component().
Referenced by rgb_to_lab(), and xyz_to_lab_component().