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:
@ -68,6 +68,12 @@ public:
|
|||||||
*/
|
*/
|
||||||
gauss_pyramid get_pyramid(int channel);
|
gauss_pyramid get_pyramid(int channel);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Visualizes the gaussian pyramids.
|
||||||
|
* They need to be created first.
|
||||||
|
*/
|
||||||
|
void visualize_gaussian_pyrs();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes the center-surround and surround-center contrasts and stores them for later use.
|
* Computes the center-surround and surround-center contrasts and stores them for later use.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -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() {
|
void lab_pyramid::visualize_feature_maps() {
|
||||||
cv::namedWindow("CS F L");
|
cv::namedWindow("CS F L");
|
||||||
cv::imshow("CS F L", _cs_F_l);
|
cv::imshow("CS F L", _cs_F_l);
|
||||||
|
|||||||
Reference in New Issue
Block a user