libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Functions
RGB images
+ Collaboration diagram for RGB images:

Classes

struct  crn::ColorModel
 Class for a color model of an image. More...
 
class  crn::RGB2Gray
 RGB to grayscale conversion action. More...
 
class  crn::RGB2GrayRed
 Red pixels extraction action. More...
 
class  crn::RGB2GrayGreen
 Green pixels extraction action. More...
 
class  crn::RGB2GrayBlue
 Blue pixels extraction action. More...
 
class  crn::RGB2GraySaturation
 Saturation pixels extraction action. More...
 
class  crn::RGB2GrayValue
 Value pixels extraction action. More...
 
class  crn::RGB2GrayY
 Y pixels extraction action. More...
 
class  crn::RGB2GrayL
 L pixels extraction action. More...
 
class  crn::RGB2GrayLPrime
 LPrime pixels extraction action. More...
 
struct  crn::IsSerializable< RGB2Gray >
 
struct  crn::IsSerializable< RGB2GrayRed >
 
struct  crn::IsSerializable< RGB2GrayGreen >
 
struct  crn::IsSerializable< RGB2GrayBlue >
 
struct  crn::IsSerializable< RGB2GraySaturation >
 
struct  crn::IsSerializable< RGB2GrayValue >
 
struct  crn::IsSerializable< RGB2GrayY >
 
struct  crn::IsSerializable< RGB2GrayL >
 
struct  crn::IsSerializable< RGB2GrayLPrime >
 

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)
 

Detailed Description

Typedef Documentation

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).

Author
Yann LEYDIER
Date
August 2007
Version
0.4

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).

Author
Yann LEYDIER
Date
August 2007
Version
0.2

Definition at line 101 of file CRNImageFormats.h.

Function Documentation

template<typename T >
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

Exceptions
ExceptionInvalidArgumentiter is null
Parameters
[in]imgthe image to modify
[in]iterthe number of iterations
[in]maxdistthe maximal distance between to colors of the same class

Definition at line 526 of file CRNImageRGB.cpp.

template<typename T >
Image<T> crn::GreenChannel ( const Image< pixel::RGB< T >> &  img)

Definition at line 55 of file CRNImageRGB.h.

template<typename T >
Image<T> crn::LChannel ( const Image< pixel::RGB< T >> &  img)

Definition at line 92 of file CRNImageRGB.h.

ImageGray crn::LPrime ( const ImageRGB img)

Computes the pseudo-luminance (U') channel.

Computes the pseudo-luminance channel U' = L * (1 - S)

Parameters
[in]imgthe source image
Returns
A gray image representing pseudo-luminance for this image

Definition at line 608 of file CRNImageRGB.cpp.

ImageGray crn::MakeImageGray ( const ImageRGB img)

Definition at line 649 of file CRNImageRGB.cpp.

ImageGray crn::PseudoSaturation ( const ImageRGB img)

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))))

Parameters
[in]imgthe source image
Returns
A gray image representing pseudo-saturation for this image

Definition at line 636 of file CRNImageRGB.cpp.

template<typename T >
Image<T> crn::RedChannel ( const Image< pixel::RGB< T >> &  img)

Definition at line 47 of file CRNImageRGB.h.

ImageGray crn::SChannel ( const ImageRGB img)

Computes the saturation (S) channel.

Saturation estimation from RGB data

Parameters
[in]imgthe source image
Returns
Gray image representing saturation for this image

Definition at line 585 of file CRNImageRGB.cpp.

template<typename T >
Image<T> crn::VChannel ( const Image< pixel::RGB< T >> &  img)

Definition at line 74 of file CRNImageRGB.h.

template<typename T >
Image<T> crn::YChannel ( const Image< pixel::RGB< T >> &  img)

Definition at line 82 of file CRNImageRGB.h.