mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 19:36:26 +02:00
[CCV] Added normalization before saving saliency map
The additional normalization stretches the saliency map to 255 as highest value to make salient regions more visible. In addition mean fusion is used to create the saliency map. Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -25,8 +25,8 @@ int main(int argc, char** argv) {
|
|||||||
int layers = 4;
|
int layers = 4;
|
||||||
float sigma_center = 3;
|
float sigma_center = 3;
|
||||||
float sigma_surround = 7;
|
float sigma_surround = 7;
|
||||||
float sigma_laplacian = 4;
|
|
||||||
|
|
||||||
|
float sigma_laplacian = 4;
|
||||||
int number_orientations = 4;
|
int number_orientations = 4;
|
||||||
int gabor_size = 7;
|
int gabor_size = 7;
|
||||||
double wavelength = 5;
|
double wavelength = 5;
|
||||||
@ -65,7 +65,8 @@ int main(int argc, char** argv) {
|
|||||||
conspicuity_maps.push_back(oriented_pyr.get_conspicuity_map());
|
conspicuity_maps.push_back(oriented_pyr.get_conspicuity_map());
|
||||||
}
|
}
|
||||||
// get saliency map
|
// get saliency map
|
||||||
cv::Mat saliency = max_fusion_generic(conspicuity_maps);
|
cv::Mat saliency = mean_fusion_generic(conspicuity_maps);
|
||||||
|
cv::normalize(saliency, saliency, 0, 255, cv::NORM_MINMAX, -1);
|
||||||
|
|
||||||
// convert saliency map to correct output format
|
// convert saliency map to correct output format
|
||||||
cv::Mat output_image;
|
cv::Mat output_image;
|
||||||
|
|||||||
Reference in New Issue
Block a user