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

[CCV] Added method to visualize gaussian pyramids

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-05-30 18:07:14 +02:00
parent 712246b72a
commit b379fdd3be
2 changed files with 21 additions and 0 deletions

View File

@ -177,6 +177,21 @@ void lab_pyramid::visualize_dog() {
}
}
void lab_pyramid::visualize_gaussian_pyrs() {
gauss_pyramid l = _pyramids[COLOR_L];
gauss_pyramid a = _pyramids[COLOR_A];
gauss_pyramid b = _pyramids[COLOR_B];
for (int layer = 0; layer < _number_of_layers; layer++) {
cv::namedWindow("gauss L");
cv::imshow("gauss L", l.get(layer));
cv::namedWindow("gauss A");
cv::imshow("gauss A", a.get(layer));
cv::namedWindow("gauss B");
cv::imshow("gauss B", b.get(layer));
cv::waitKey(0);
}
}
void lab_pyramid::visualize_feature_maps() {
cv::namedWindow("CS F L");
cv::imshow("CS F L", _cs_F_l);