libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
crn::Gray2BWThreshold Class Reference

Threshold binarization action. More...

#include <CRNImageGray.h>

+ Inheritance diagram for crn::Gray2BWThreshold:
+ Collaboration diagram for crn::Gray2BWThreshold:

Public Member Functions

 Gray2BWThreshold (uint8_t t=127)
 Default constructor. More...
 
virtual ~Gray2BWThreshold () override
 
virtual StringUTF8 GetClassName () const override
 
virtual ImageBW Binarize (const ImageGray &img) override
 Action = binarize a gray image. More...
 
- Public Member Functions inherited from crn::Gray2BW
virtual ~Gray2BW () override
 
- Public Member Functions inherited from crn::Action
virtual ~Action () override
 Destructor. More...
 
void Deserialize (xml::Element &el)
 
xml::Element Serialize (xml::Element &parent) const
 
- Public Member Functions inherited from crn::Object
virtual ~Object ()=default
 

Additional Inherited Members

- Public Attributes inherited from crn::Action
crn::Map UserData
 
- Protected Member Functions inherited from crn::Action
virtual void deserialize (xml::Element &el)
 
virtual xml::Element serialize (xml::Element &parent) const
 

Detailed Description

Threshold binarization action.

Definition at line 642 of file CRNImageGray.h.

Constructor & Destructor Documentation

Gray2BWThreshold::Gray2BWThreshold ( uint8_t  t = 127)

Default constructor.

Default constructor

Parameters
[in]tthe threshold to use in [0..255]

Definition at line 818 of file CRNImageGray.cpp.

virtual crn::Gray2BWThreshold::~Gray2BWThreshold ( )
inlineoverridevirtual

Definition at line 647 of file CRNImageGray.h.

Member Function Documentation

ImageBW Gray2BWThreshold::Binarize ( const ImageGray img)
overridevirtual

Action = binarize a gray image.

Implements crn::Gray2BW.

Definition at line 823 of file CRNImageGray.cpp.

virtual StringUTF8 crn::Gray2BWThreshold::GetClassName ( ) const
inlineoverridevirtual

Implements crn::Action.

Definition at line 648 of file CRNImageGray.h.


The documentation for this class was generated from the following files: