iVS3D v2.0.0
Loading...
Searching...
No Matches
BlurAlgorithm Class Referenceabstract

The BlurAlgorithm interface provides an interface for different algorithms calculating blur values for given images. More...

#include <BlurAlgorithm.h>

Inheritance diagram for BlurAlgorithm:
BlurLaplacian BlurSobel BlurTenengrad

Public Member Functions

virtual QString getName ()=0
 getName returns the algorithm display name.
 
double calcOneBluriness (Reader *images, int index)
 calcOneBluriness calculates blur meassure for one image specified by index.
 
std::vector< double > calcFullBluriness (Reader *images, Progressable *reciever, volatile bool *stopped, std::vector< uint > idxList, std::vector< double > blurValues)
 calcFullBluriness calculates blur meassures for all images within the given range.
 

Protected Member Functions

virtual double singleCalculation (const cv::Mat &image)=0
 singleCalculation This functions implements the actual blur algortihm
 

Detailed Description

The BlurAlgorithm interface provides an interface for different algorithms calculating blur values for given images.

Author
Daniel Brommer
Date
2021/02/19

Member Function Documentation

◆ calcFullBluriness()

std::vector< double > BlurAlgorithm::calcFullBluriness ( Reader images,
Progressable reciever,
volatile bool *  stopped,
std::vector< uint >  idxList,
std::vector< double >  blurValues 
)

calcFullBluriness calculates blur meassures for all images within the given range.

Parameters
imagesThe reader to fetch images from
recieverThe receiver for progress updates
stoppedThe stopped flag true, if computation should abort
startindex of the first image
endindex of the last image
blurValuesvector with the already calulated blur values (can be empty, but has the correct size)
Returns
The blur values for all images

◆ calcOneBluriness()

double BlurAlgorithm::calcOneBluriness ( Reader images,
int  index 
)

calcOneBluriness calculates blur meassure for one image specified by index.

Parameters
imagesThe reader to fetch image from
indexThe image index
Returns
The blur value (-1.0 if the frame is corrupted)

◆ getName()

virtual QString BlurAlgorithm::getName ( )
pure virtual

getName returns the algorithm display name.

Returns
The name

Implemented in BlurLaplacian, BlurSobel, and BlurTenengrad.

◆ singleCalculation()

virtual double BlurAlgorithm::singleCalculation ( const cv::Mat &  image)
protectedpure virtual

singleCalculation This functions implements the actual blur algortihm

Parameters
imagecv::Mat of the image
Returns
Double represeting the blur of the image (higher value -> sharper image)

Implemented in BlurLaplacian, BlurSobel, and BlurTenengrad.


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