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

[CCV] Modified LAB pyramid to work with given image

Signed-off-by: Jim Martens <github@2martens>
This commit is contained in:
2017-05-02 15:11:23 +02:00
parent 2e157035c6
commit 47883edea3
3 changed files with 45 additions and 6 deletions

View File

@ -7,6 +7,7 @@
class lab_pyramid {
private:
cv::Mat _inputImage_lab;
cv::Mat _inputImage_float;
cv::Mat _imageChannels[3];
gauss_pyramid _pyramids[3];
public:
@ -21,12 +22,20 @@ public:
*/
lab_pyramid(cv::String image_filename);
/**
* Initializes a LAB pyramid.
*
* @param image the image that should be used
*/
lab_pyramid(cv::Mat image);
/**
* Creates the gaussian pyramids for all channels with the given number of layers each.
*
* @param sigma the sigma for the gaussian pyramids
* @param number_of_layers number of layers for gaussian pyramid
*/
void create_pyramids(int number_of_layers);
void create_pyramids(float sigma, int number_of_layers);
/**
* Before this method can be called, pyramids have to be created via create_pyramids.