30 for (
auto tmp :
Range(img))
31 res.
At(tmp) = img.
At(tmp).l;
38 for (
auto tmp :
Range(img))
39 res.
At(tmp) = img.
At(tmp).a;
46 for (
auto tmp :
Range(img))
47 res.
At(tmp) = img.
At(tmp).b;
ScalarRange< T > Range(T b, T e)
Creates a range [[b, e[[.
std::vector< pixel_type >::reference At(size_t x, size_t y) noexcept
Returns a reference to a pixel.
size_t GetHeight() const noexcept
Image< double > ImageDoubleGray
double Grayscale image class
ImageDoubleGray AChannel(const ImageLab &img)
size_t GetWidth() const noexcept
ImageDoubleGray LChannel(const ImageLab &img)
ImageDoubleGray BChannel(const ImageLab &img)