31 for (
auto tmp :
Range(img))
32 res.
At(tmp) = img.
At(tmp).l;
39 for (
auto tmp :
Range(img))
40 res.
At(tmp) = img.
At(tmp).u;
47 for (
auto tmp :
Range(img))
48 res.
At(tmp) = img.
At(tmp).v;
ScalarRange< T > Range(T b, T e)
Creates a range [[b, e[[.
ImageDoubleGray UChannel(const ImageLuv &img)
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
ImageGray VChannel(const ImageHSV &img)
Create an image from the value channel.
size_t GetWidth() const noexcept
ImageDoubleGray LChannel(const ImageLab &img)