mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 19:36:26 +02:00
[CCV] Added oriented and laplacian pyramid
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
33
ccv/saliency/includes/laplacian_pyramid.h
Normal file
33
ccv/saliency/includes/laplacian_pyramid.h
Normal file
@ -0,0 +1,33 @@
|
||||
#ifndef SHEET5_LAPLACIAN_PYRAMID_H
|
||||
#define SHEET5_LAPLACIAN_PYRAMID_H
|
||||
|
||||
#include <opencv2/opencv.hpp>
|
||||
#include "gauss_pyramid.h"
|
||||
|
||||
class laplacian_pyramid {
|
||||
private:
|
||||
std::vector<cv::Mat> _layers;
|
||||
public:
|
||||
/**
|
||||
* Initializes the laplacian pyramid.
|
||||
* @param pyramid the gaussian pyramid
|
||||
* @param sigma the blur factor
|
||||
*/
|
||||
laplacian_pyramid(const gauss_pyramid& pyramid, float sigma);
|
||||
|
||||
/**
|
||||
* Returns the number of layers.
|
||||
* @return
|
||||
*/
|
||||
unsigned long get_number_of_layers() const;
|
||||
|
||||
/**
|
||||
* Returns the pyramid element at given layer.
|
||||
* @param layer the requested pyramid layer
|
||||
* @return pyramid layer
|
||||
*/
|
||||
cv::Mat get(int layer) const;
|
||||
};
|
||||
|
||||
|
||||
#endif //SHEET5_LAPLACIAN_PYRAMID_H
|
||||
Reference in New Issue
Block a user