5#include "../global.hpp"
6#include "../_cexports/c_img.h"
7#include "interpolator.hpp"
29 return Internal::DoResCallObjectOut<Image>([&](
void* & obj)
31 return CVB_CALL_CAPI(CVSConvertCubeToXYZ(cube.
Handle()
50 auto obj = xyzImageOut.
Handle();
51 CVB_CALL_CAPI_CHECKED(CVSConvertCubeToXYZ(cube.
Handle()
68 return Internal::DoResCallObjectOut<Image>([&](
void* & obj)
70 return CVB_CALL_CAPI(CVSConvertCubeToLab(cube.
Handle()
87 auto obj = LabImageOut.
Handle();
88 CVB_CALL_CAPI_CHECKED(CVSConvertCubeToLab(cube.
Handle()
103 return Internal::DoResCallObjectOut<Image>([&](
void* & obj)
105 return CVB_CALL_CAPI(CVSConvertXYZToLab(xyzImage.
Handle()
121 return Internal::DoResCallObjectOut<Image>([&](
void* & obj)
123 return CVB_CALL_CAPI(CVSConvertLabToRGB8(LabImage.
Handle()
The Common Vision Blox image.
Definition: decl_image.hpp:45
void * Handle() const noexcept
Classic API image handle.
Definition: decl_image.hpp:223
Spectral Cube object.
Definition: cube.hpp:51
void * Handle() const noexcept
Returns C-API style handle to the Cube.
Definition: cube.hpp:366
Spectral Interpolator object.
Definition: interpolator.hpp:23
void * Handle() const noexcept
Returns C-API style handle to the Interpolator.
Definition: interpolator.hpp:123
std::unique_ptr< Image > CubeToXYZ(const Cube &cube, const Interpolator &interpolator)
Converts the cube to an XYZ image.
Definition: convert_color_space.hpp:27
std::unique_ptr< Image > LabToRGB8(const Image &LabImage, const Interpolator &interpolator)
Converts a Lab image to a sRGB 8bit image.
Definition: convert_color_space.hpp:119
std::unique_ptr< Image > XYZToLab(const Image &xyzImage, const Interpolator &interpolator)
Converts an image from XYZ to Lab.
Definition: convert_color_space.hpp:101
std::unique_ptr< Image > CubeToLab(const Cube &cube, const Interpolator &interpolator)
Converts the cube to a Lab image.
Definition: convert_color_space.hpp:66
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24