libcrn
3.9.5
A document image processing library
|
Typedefs | |
using | crn::ImageRGB = Image< pixel::RGB< uint8_t >> |
Color image class. More... | |
using | crn::ImageIntRGB = Image< pixel::RGB< int >> |
Color image class. More... | |
Functions | |
void | crn::EdgePreservingFilter (ImageRGB &img, size_t iter, uint8_t maxdist=30) |
Smooths and enhances the contrast. More... | |
template<typename T > | |
Image< T > | crn::RedChannel (const Image< pixel::RGB< T >> &img) |
template<typename T > | |
Image< T > | crn::GreenChannel (const Image< pixel::RGB< T >> &img) |
template<typename T > | |
Image< T > | crn::BlueChannel (const Image< pixel::RGB< T >> &img) |
ImageGray | crn::SChannel (const ImageRGB &img) |
Computes the saturation (S) channel. More... | |
template<typename T > | |
Image< T > | crn::VChannel (const Image< pixel::RGB< T >> &img) |
template<typename T > | |
Image< T > | crn::YChannel (const Image< pixel::RGB< T >> &img) |
template<typename T > | |
Image< T > | crn::LChannel (const Image< pixel::RGB< T >> &img) |
ImageGray | crn::LPrime (const ImageRGB &img) |
Computes the pseudo-luminance (U') channel. More... | |
ImageGray | crn::PseudoSaturation (const ImageRGB &img) |
Computes the pseudo-saturation channel. More... | |
ImageGray | crn::MakeImageGray (const ImageRGB &img) |
using crn::ImageIntRGB = typedef Image<pixel::RGB<int>> |
Color image class.
This class is for color images. Values in pixels' vector represent red, green and blue channels (interlaced in this order).
Definition at line 115 of file CRNImageFormats.h.
using crn::ImageRGB = typedef Image<pixel::RGB<uint8_t>> |
Color image class.
This class is for color images. Values in pixels' vector represent red, green and blue channels (interlaced in this order).
Definition at line 101 of file CRNImageFormats.h.
Image<T> crn::BlueChannel | ( | const Image< pixel::RGB< T >> & | img | ) |
Definition at line 63 of file CRNImageRGB.h.
void crn::EdgePreservingFilter | ( | ImageRGB & | img, |
size_t | iter, | ||
uint8_t | maxdist = 30 |
||
) |
Smooths and enhances the contrast.
Smooths and enhances the contrast
ExceptionInvalidArgument | iter is null |
[in] | img | the image to modify |
[in] | iter | the number of iterations |
[in] | maxdist | the maximal distance between to colors of the same class |
Definition at line 526 of file CRNImageRGB.cpp.
Image<T> crn::GreenChannel | ( | const Image< pixel::RGB< T >> & | img | ) |
Definition at line 55 of file CRNImageRGB.h.
Image<T> crn::LChannel | ( | const Image< pixel::RGB< T >> & | img | ) |
Definition at line 92 of file CRNImageRGB.h.
Computes the pseudo-luminance (U') channel.
Computes the pseudo-luminance channel U' = L * (1 - S)
[in] | img | the source image |
Definition at line 608 of file CRNImageRGB.cpp.
Definition at line 649 of file CRNImageRGB.cpp.
Computes the pseudo-saturation channel.
Computes the pseudo-saturation channel Psat(x,y) = max(abs(b(x,y) - g(x,y)), max(abs(r(x,y) - g(x,y)), abs(r(x,y) - b(x,y))))
[in] | img | the source image |
Definition at line 636 of file CRNImageRGB.cpp.
Image<T> crn::RedChannel | ( | const Image< pixel::RGB< T >> & | img | ) |
Definition at line 47 of file CRNImageRGB.h.
Computes the saturation (S) channel.
Saturation estimation from RGB data
[in] | img | the source image |
Definition at line 585 of file CRNImageRGB.cpp.
Image<T> crn::VChannel | ( | const Image< pixel::RGB< T >> & | img | ) |
Definition at line 74 of file CRNImageRGB.h.
Image<T> crn::YChannel | ( | const Image< pixel::RGB< T >> & | img | ) |
Definition at line 82 of file CRNImageRGB.h.