mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +02:00
[CVV] Added ability to get layers of laplacian pyramid
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user