mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +02:00
[CCV] Fixed visualization of DOG
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -91,7 +91,7 @@ public:
|
|||||||
* @param surround the surround pyramid
|
* @param surround the surround pyramid
|
||||||
* @param number_of_layers the number of layers used to create the two pyramids
|
* @param number_of_layers the number of layers used to create the two pyramids
|
||||||
*/
|
*/
|
||||||
void static compute_dog(lab_pyramid center, lab_pyramid surround, int number_of_layers);
|
void static compute_dog(const lab_pyramid center, const lab_pyramid surround, int number_of_layers);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Visualizes the center-surround and surround-center contrasts. They have to be computed first.
|
* Visualizes the center-surround and surround-center contrasts. They have to be computed first.
|
||||||
|
|||||||
@ -75,7 +75,7 @@ gauss_pyramid lab_pyramid::get_pyramid(int channel) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void lab_pyramid::compute_dog(lab_pyramid center, lab_pyramid surround, int number_of_layers) {
|
void lab_pyramid::compute_dog(const lab_pyramid center, const lab_pyramid surround, int number_of_layers) {
|
||||||
_number_of_layers = number_of_layers;
|
_number_of_layers = number_of_layers;
|
||||||
|
|
||||||
// L channel
|
// L channel
|
||||||
@ -184,11 +184,11 @@ void lab_pyramid::visualize_dog() {
|
|||||||
cv::namedWindow("CS A");
|
cv::namedWindow("CS A");
|
||||||
cv::imshow("CS A", _cs_contrast_a.at(layer));
|
cv::imshow("CS A", _cs_contrast_a.at(layer));
|
||||||
cv::namedWindow("SC A");
|
cv::namedWindow("SC A");
|
||||||
cv::imshow("SC A", _cs_contrast_a.at(layer));
|
cv::imshow("SC A", _sc_contrast_a.at(layer));
|
||||||
cv::namedWindow("CS B");
|
cv::namedWindow("CS B");
|
||||||
cv::imshow("CS B", _cs_contrast_b.at(layer));
|
cv::imshow("CS B", _cs_contrast_b.at(layer));
|
||||||
cv::namedWindow("SC B");
|
cv::namedWindow("SC B");
|
||||||
cv::imshow("SC B", _cs_contrast_b.at(layer));
|
cv::imshow("SC B", _sc_contrast_b.at(layer));
|
||||||
cv::waitKey(0);
|
cv::waitKey(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user