1
0
mirror of https://github.com/2martens/uni.git synced 2026-05-06 19:36:26 +02:00

[CVV] Added ability to get layers of laplacian pyramid

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-05-12 15:17:06 +02:00
parent 6bcf879da7
commit c5c9d2d95c
2 changed files with 21 additions and 0 deletions

View File

@ -9,3 +9,11 @@ laplacian_pyramid::laplacian_pyramid(const gauss_pyramid &pyramid, float sigma)
_layers.push_back(pyramid.get(i) - blurred);
}
}
cv::Mat laplacian_pyramid::get(int layer) const {
return _layers.at((unsigned long) layer);
}
unsigned long laplacian_pyramid::get_number_of_layers() const {
return _layers.size();
}

View File

@ -14,6 +14,19 @@ public:
* @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;
};