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

#include <mythcommflag/CannyEdgeDetector.h>

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

Public Member Functions

 CannyEdgeDetector (void)
 
 ~CannyEdgeDetector (void) override
 
 CannyEdgeDetector (const CannyEdgeDetector &)=delete
 
CannyEdgeDetectoroperator= (const CannyEdgeDetector &)=delete
 
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

int resetBuffers (int newwidth, int newheight)
 

Private Attributes

double * m_mask {nullptr}
 
int m_maskRadius {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 17 of file CannyEdgeDetector.h.

Constructor & Destructor Documentation

◆ CannyEdgeDetector() [1/2]

CannyEdgeDetector::CannyEdgeDetector ( void  )

Definition at line 20 of file CannyEdgeDetector.cpp.

◆ ~CannyEdgeDetector()

CannyEdgeDetector::~CannyEdgeDetector ( void  )
override

Definition at line 52 of file CannyEdgeDetector.cpp.

◆ CannyEdgeDetector() [2/2]

CannyEdgeDetector::CannyEdgeDetector ( const CannyEdgeDetector )
delete

Member Function Documentation

◆ operator=()

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

◆ 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 136 of file CannyEdgeDetector.cpp.

◆ detectEdges()

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

Implements EdgeDetector.

Definition at line 146 of file CannyEdgeDetector.cpp.

◆ resetBuffers()

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

Definition at line 64 of file CannyEdgeDetector.cpp.

Member Data Documentation

◆ m_mask

double* CannyEdgeDetector::m_mask {nullptr}
private

Definition at line 32 of file CannyEdgeDetector.h.

◆ m_maskRadius

int CannyEdgeDetector::m_maskRadius {2}
private

Definition at line 33 of file CannyEdgeDetector.h.

◆ m_sgm

unsigned int* CannyEdgeDetector::m_sgm {nullptr}
private

Definition at line 35 of file CannyEdgeDetector.h.

◆ m_sgmSorted

unsigned int* CannyEdgeDetector::m_sgmSorted {nullptr}
private

Definition at line 36 of file CannyEdgeDetector.h.

◆ m_s1

AVFrame CannyEdgeDetector::m_s1 {}
private

Definition at line 37 of file CannyEdgeDetector.h.

◆ m_s2

AVFrame CannyEdgeDetector::m_s2 {}
private

Definition at line 38 of file CannyEdgeDetector.h.

◆ m_convolved

AVFrame CannyEdgeDetector::m_convolved {}
private

Definition at line 39 of file CannyEdgeDetector.h.

◆ m_ewidth

int CannyEdgeDetector::m_ewidth {-1}
private

Definition at line 40 of file CannyEdgeDetector.h.

◆ m_eheight

int CannyEdgeDetector::m_eheight {-1}
private

Definition at line 41 of file CannyEdgeDetector.h.

◆ m_edges

AVFrame CannyEdgeDetector::m_edges {}
private

Definition at line 42 of file CannyEdgeDetector.h.

◆ row

int CannyEdgeDetector::row

Definition at line 45 of file CannyEdgeDetector.h.

◆ col

int CannyEdgeDetector::col

Definition at line 45 of file CannyEdgeDetector.h.

◆ width

int CannyEdgeDetector::width

Definition at line 45 of file CannyEdgeDetector.h.

◆ height

int CannyEdgeDetector::height

Definition at line 45 of file CannyEdgeDetector.h.

◆ m_exclude

struct { ... } CannyEdgeDetector::m_exclude

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