The BlurAlgorithm interface provides an interface for different algorithms calculating blur values for given images.
More...
#include <BlurAlgorithm.h>
|
| 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.
|
| |
|
| virtual double | singleCalculation (const cv::Mat &image)=0 |
| | singleCalculation This functions implements the actual blur algortihm
|
| |
The BlurAlgorithm interface provides an interface for different algorithms calculating blur values for given images.
- Author
- Daniel Brommer
- Date
- 2021/02/19
◆ 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
-
| images | The reader to fetch images from |
| reciever | The receiver for progress updates |
| stopped | The stopped flag true, if computation should abort |
| start | index of the first image |
| end | index of the last image |
| blurValues | vector 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
-
| images | The reader to fetch image from |
| index | The image index |
- Returns
- The blur value (-1.0 if the frame is corrupted)
◆ getName()
| virtual QString BlurAlgorithm::getName |
( |
| ) |
|
|
pure virtual |
◆ singleCalculation()
| virtual double BlurAlgorithm::singleCalculation |
( |
const cv::Mat & |
image | ) |
|
|
protectedpure virtual |
singleCalculation This functions implements the actual blur algortihm
- Parameters
-
| image | cv::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:
- iVS3D/src/iVS3D-blurPlugin/BlurAlgorithm.h
- iVS3D/src/iVS3D-blurPlugin/BlurAlgorithm.cpp