MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CannyEdgeDetector Class Reference

#include <CannyEdgeDetector.h>

Inheritance diagram for CannyEdgeDetector:
Inheritance graph
[legend]
Collaboration diagram for CannyEdgeDetector:
Collaboration graph
[legend]

Public Member Functions

 CannyEdgeDetector (void)
 
 ~CannyEdgeDetector (void)
 
int MythPlayerInited (const MythPlayer *player, int width, int height)
 
int setExcludeArea (int row, int col, int width, int height) override
 
const AVFramedetectEdges (const AVFrame *pgm, int pgmheight, int percentile) override
 
- Public Member Functions inherited from EdgeDetector
virtual ~EdgeDetector (void)=default
 

Private Member Functions

 CannyEdgeDetector (const CannyEdgeDetector &)=delete
 
CannyEdgeDetectoroperator= (const CannyEdgeDetector &)=delete
 
int resetBuffers (int newwidth, int newheight)
 

Private Attributes

double * m_mask {nullptr}
 
int m_mask_radius {2}
 
unsigned int * m_sgm {nullptr}
 
unsigned int * m_sgmsorted {nullptr}
 
AVFrame m_s1 {}
 
AVFrame m_s2 {}
 
AVFrame m_convolved {}
 
int m_ewidth {-1}
 
int m_eheight {-1}
 
AVFrame m_edges {}
 
struct {
   int   row
 
   int   col
 
   int   width
 
   int   height
 
m_exclude
 

Detailed Description

Definition at line 18 of file CannyEdgeDetector.h.

Constructor & Destructor Documentation

◆ CannyEdgeDetector() [1/2]

CannyEdgeDetector::CannyEdgeDetector ( void  )

Definition at line 19 of file CannyEdgeDetector.cpp.

◆ ~CannyEdgeDetector()

CannyEdgeDetector::~CannyEdgeDetector ( void  )

Definition at line 51 of file CannyEdgeDetector.cpp.

◆ CannyEdgeDetector() [2/2]

CannyEdgeDetector::CannyEdgeDetector ( const CannyEdgeDetector )
privatedelete

Member Function Documentation

◆ MythPlayerInited()

int CannyEdgeDetector::MythPlayerInited ( const MythPlayer player,
int  width,
int  height 
)

◆ setExcludeArea()

int CannyEdgeDetector::setExcludeArea ( int  row,
int  col,
int  width,
int  height 
)
overridevirtual

Reimplemented from EdgeDetector.

Definition at line 135 of file CannyEdgeDetector.cpp.

◆ detectEdges()

const AVFrame * CannyEdgeDetector::detectEdges ( const AVFrame pgm,
int  pgmheight,
int  percentile 
)
overridevirtual

Implements EdgeDetector.

Definition at line 145 of file CannyEdgeDetector.cpp.

◆ operator=()

CannyEdgeDetector& CannyEdgeDetector::operator= ( const CannyEdgeDetector )
privatedelete

◆ resetBuffers()

int CannyEdgeDetector::resetBuffers ( int  newwidth,
int  newheight 
)
private

Definition at line 63 of file CannyEdgeDetector.cpp.

Member Data Documentation

◆ m_mask

double* CannyEdgeDetector::m_mask {nullptr}
private

Definition at line 33 of file CannyEdgeDetector.h.

◆ m_mask_radius

int CannyEdgeDetector::m_mask_radius {2}
private

Definition at line 34 of file CannyEdgeDetector.h.

◆ m_sgm

unsigned int* CannyEdgeDetector::m_sgm {nullptr}
private

Definition at line 36 of file CannyEdgeDetector.h.

◆ m_sgmsorted

unsigned int* CannyEdgeDetector::m_sgmsorted {nullptr}
private

Definition at line 37 of file CannyEdgeDetector.h.

◆ m_s1

AVFrame CannyEdgeDetector::m_s1 {}
private

Definition at line 38 of file CannyEdgeDetector.h.

◆ m_s2

AVFrame CannyEdgeDetector::m_s2 {}
private

Definition at line 39 of file CannyEdgeDetector.h.

◆ m_convolved

AVFrame CannyEdgeDetector::m_convolved {}
private

Definition at line 40 of file CannyEdgeDetector.h.

◆ m_ewidth

int CannyEdgeDetector::m_ewidth {-1}
private

Definition at line 41 of file CannyEdgeDetector.h.

◆ m_eheight

int CannyEdgeDetector::m_eheight {-1}
private

Definition at line 42 of file CannyEdgeDetector.h.

◆ m_edges

AVFrame CannyEdgeDetector::m_edges {}
private

Definition at line 43 of file CannyEdgeDetector.h.

◆ row

int CannyEdgeDetector::row

Definition at line 46 of file CannyEdgeDetector.h.

◆ col

int CannyEdgeDetector::col

Definition at line 46 of file CannyEdgeDetector.h.

◆ width

int CannyEdgeDetector::width

Definition at line 46 of file CannyEdgeDetector.h.

◆ height

int CannyEdgeDetector::height

Definition at line 46 of file CannyEdgeDetector.h.

◆ m_exclude

struct { ... } CannyEdgeDetector::m_exclude

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