mirror of
https://github.com/2martens/uni.git
synced 2026-05-07 03:46:25 +02:00
[CCV] Added ability to fetch number of layers
Signed-off-by: Jim Martens <github@2martens>
This commit is contained in:
@ -19,3 +19,8 @@ cv::Mat gauss_pyramid::get(int layer)
|
|||||||
{
|
{
|
||||||
return _layers.at((unsigned long) layer);
|
return _layers.at((unsigned long) layer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned long gauss_pyramid::get_number_of_layers()
|
||||||
|
{
|
||||||
|
return _layers.size();
|
||||||
|
}
|
||||||
|
|||||||
@ -11,6 +11,7 @@ public:
|
|||||||
gauss_pyramid();
|
gauss_pyramid();
|
||||||
gauss_pyramid(cv::Mat img, float sigma, int number_of_layers);
|
gauss_pyramid(cv::Mat img, float sigma, int number_of_layers);
|
||||||
cv::Mat get(int layer);
|
cv::Mat get(int layer);
|
||||||
|
unsigned long get_number_of_layers();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user