From 781edeb133558f5e954d27e50a2dc25880e008c5 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Tue, 30 May 2017 20:51:45 +0200 Subject: [PATCH] [CCV] Changed signature of get feature map method Signed-off-by: Jim Martens --- ccv/saliency/includes/oriented_pyramid.h | 2 +- ccv/saliency/oriented_pyramid.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ccv/saliency/includes/oriented_pyramid.h b/ccv/saliency/includes/oriented_pyramid.h index df696f8..3620c38 100644 --- a/ccv/saliency/includes/oriented_pyramid.h +++ b/ccv/saliency/includes/oriented_pyramid.h @@ -50,7 +50,7 @@ public: * @param orientation the nth orientation * @return the feature map */ - cv::Mat get_feature_map(int orientation); + cv::Mat get_feature_map(unsigned long orientation); }; diff --git a/ccv/saliency/oriented_pyramid.cpp b/ccv/saliency/oriented_pyramid.cpp index a3c816e..da89373 100644 --- a/ccv/saliency/oriented_pyramid.cpp +++ b/ccv/saliency/oriented_pyramid.cpp @@ -63,6 +63,6 @@ cv::Mat oriented_pyramid::get_conspicuity_map() { return _C; } -cv::Mat oriented_pyramid::get_feature_map(int orientation) { - return _feature_maps.at((unsigned long) orientation); +cv::Mat oriented_pyramid::get_feature_map(unsigned long orientation) { + return _feature_maps.at(orientation).clone(); }