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
Collaboration diagram for CannyEdgeDetector:
Collaboration graph

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

Detailed Description

Definition at line 17 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 )

Member Function Documentation

◆ operator=()

CannyEdgeDetector& CannyEdgeDetector::operator= ( const CannyEdgeDetector )

◆ MythPlayerInited()

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

◆ setExcludeArea()

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

Reimplemented from EdgeDetector.

Definition at line 135 of file CannyEdgeDetector.cpp.

◆ detectEdges()

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

Implements EdgeDetector.

Definition at line 145 of file CannyEdgeDetector.cpp.

◆ resetBuffers()

int CannyEdgeDetector::resetBuffers ( int  newwidth,
int  newheight 

Definition at line 63 of file CannyEdgeDetector.cpp.

Member Data Documentation

◆ m_mask

double* CannyEdgeDetector::m_mask {nullptr}

Definition at line 32 of file CannyEdgeDetector.h.

◆ m_maskRadius

int CannyEdgeDetector::m_maskRadius {2}

Definition at line 33 of file CannyEdgeDetector.h.

◆ m_sgm

unsigned int* CannyEdgeDetector::m_sgm {nullptr}

Definition at line 35 of file CannyEdgeDetector.h.

◆ m_sgmSorted

unsigned int* CannyEdgeDetector::m_sgmSorted {nullptr}

Definition at line 36 of file CannyEdgeDetector.h.

◆ m_s1

AVFrame CannyEdgeDetector::m_s1 {}

Definition at line 37 of file CannyEdgeDetector.h.

◆ m_s2

AVFrame CannyEdgeDetector::m_s2 {}

Definition at line 38 of file CannyEdgeDetector.h.

◆ m_convolved

AVFrame CannyEdgeDetector::m_convolved {}

Definition at line 39 of file CannyEdgeDetector.h.

◆ m_ewidth

int CannyEdgeDetector::m_ewidth {-1}

Definition at line 40 of file CannyEdgeDetector.h.

◆ m_eheight

int CannyEdgeDetector::m_eheight {-1}

Definition at line 41 of file CannyEdgeDetector.h.

◆ m_edges

AVFrame CannyEdgeDetector::m_edges {}

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: