mirror of https://github.com/2martens/uni.git
[CCV] Optimized gauss_pyramid constructor
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
b379fdd3be
commit
5b1167366d
|
@ -2,7 +2,7 @@
|
|||
|
||||
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 resizedImage = img.clone();
|
||||
|
|
|
@ -9,7 +9,7 @@ private:
|
|||
std::vector<cv::Mat> _layers;
|
||||
public:
|
||||
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);
|
||||
unsigned long get_number_of_layers() const;
|
||||
|
|
Loading…
Reference in New Issue