libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
CRNImageGray.h File Reference
#include <CRNImage/CRNImage.h>
#include <CRNStatistics/CRNHistogram.h>
#include <CRNAI/CRNkMeans.h>
#include <CRNUtils/CRNDefaultAction.h>
+ Include dependency graph for CRNImageGray.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  crn::Gray2BW
 Binarization action. More...
 
class  crn::Gray2BWThreshold
 Threshold binarization action. More...
 
class  crn::Gray2BWNiblack
 Niblack binarization action. More...
 
class  crn::Gray2BWSauvola
 Sauvola binarization action. More...
 
class  crn::Gray2BWkMeansHisto
 k-means histo binarization action More...
 
class  crn::Gray2BWLocalMin
 Local min binarization action. More...
 
class  crn::Gray2BWLocalMax
 Local max binarization action. More...
 
class  crn::Gray2BWFisher
 Fisher binarization action. More...
 
class  crn::Gray2BWEntropy
 Entropy binarization action. More...
 
class  crn::Gray2BWOtsu
 Otsu binarization action. More...
 
struct  crn::IsSerializable< Gray2BW >
 
struct  crn::IsSerializable< Gray2BWThreshold >
 
struct  crn::IsSerializable< Gray2BWNiblack >
 
struct  crn::IsSerializable< Gray2BWSauvola >
 
struct  crn::IsSerializable< Gray2BWkMeansHisto >
 
struct  crn::IsSerializable< Gray2BWLocalMin >
 
struct  crn::IsSerializable< Gray2BWLocalMax >
 
struct  crn::IsSerializable< Gray2BWFisher >
 
struct  crn::IsSerializable< Gray2BWEntropy >
 
struct  crn::IsSerializable< Gray2BWOtsu >
 

Namespaces

 crn
 

Functions

void crn::Sqrt (ImageDoubleGray &img) noexcept
 Replaces the pixels with their square root. More...
 
template<typename T >
void crn::Abs (Image< T > &img, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr) noexcept
 Replaces each pixel by its absolute value. More...
 
void crn::AutoContrast (ImageGray &img)
 
template<typename T >
Histogram crn::MakeHistogram (const Image< T > &img, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
Histogram crn::MakeHistogram (const ImageGray &img)
 Creates an histogram from the pixels. More...
 
Histogram crn::HorizontalProjection (const ImageGray &img)
 Computes the horizontal projection. More...
 
Histogram crn::VerticalProjection (const ImageGray &img)
 Computes the vertical projection. More...
 
template<typename T >
size_t crn::StrokesWidth (const Image< T > &img, size_t maxval=50, size_t defaultval=0, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
template<typename T >
size_t crn::StrokesHeight (const Image< T > &img, size_t maxval=50, size_t defaultval=0, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
size_t crn::EstimateLinesXHeight (const ImageGray &img, unsigned int xdiv=16)
 Computes the mean text line x-height. More...
 
size_t crn::EstimateLeading (const ImageGray &img)
 Computes the median distance between two baselines. More...
 
Angle< Radiancrn::EstimateSkew (const ImageGray &img)
 Estimates the mean skew of the document's lines. More...
 
template<typename T >
ImageRGB crn::RandomColors (const Image< T > &img, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
template<typename T , typename CMP = std::less<T>>
ImageBW crn::Threshold (const Image< T > &img, T thresh, CMP cmp=std::less< T >{})
 
template<typename T >
ImageBW crn::Niblack (const Image< T > &img, size_t halfwin, double k=0.5, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
template<typename T >
ImageBW crn::Sauvola (const Image< T > &img, size_t halfwin, double k=0.5, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
template<typename T >
ImageBW crn::kMeansHisto (const Image< T > &img, size_t classes, size_t black_classes, size_t maxcnt=10000, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
template<typename T >
ImageBW crn::LocalMin (const Image< T > &img, size_t area=1, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
template<typename T >
ImageBW crn::LocalMax (const Image< T > &img, size_t area=1, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
template<typename T >
ImageBW crn::Fisher (const Image< T > &img, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
template<typename T >
ImageBW crn::Entropy (const Image< T > &img, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
template<typename T >
ImageBW crn::Otsu (const Image< T > &img, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr)
 
ImageBW crn::MakeImageBW (const ImageGray &img)