mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +02:00
[CCV] Optimized gauss_pyramid constructor
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
gauss_pyramid::gauss_pyramid() {}
|
gauss_pyramid::gauss_pyramid() {}
|
||||||
|
|
||||||
gauss_pyramid::gauss_pyramid(cv::Mat img, float sigma, int number_of_layers)
|
gauss_pyramid::gauss_pyramid(const cv::Mat img, float sigma, int number_of_layers)
|
||||||
{
|
{
|
||||||
cv::Mat blurredImage;
|
cv::Mat blurredImage;
|
||||||
cv::Mat resizedImage = img.clone();
|
cv::Mat resizedImage = img.clone();
|
||||||
|
|||||||
@ -9,7 +9,7 @@ private:
|
|||||||
std::vector<cv::Mat> _layers;
|
std::vector<cv::Mat> _layers;
|
||||||
public:
|
public:
|
||||||
gauss_pyramid();
|
gauss_pyramid();
|
||||||
gauss_pyramid(cv::Mat img, float sigma, int number_of_layers);
|
gauss_pyramid(const cv::Mat img, float sigma, int number_of_layers);
|
||||||
cv::Mat get(int layer) const;
|
cv::Mat get(int layer) const;
|
||||||
cv::Mat get(int layer);
|
cv::Mat get(int layer);
|
||||||
unsigned long get_number_of_layers() const;
|
unsigned long get_number_of_layers() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user