Saliency module develop

In this code, I have created a Saliency module. The principal purpose of this API is to give a unique interface, a unique framework for use and plug sever saliency algorithms, also with very different nature and methodology, but they share the same purpose, organizing algorithms into three main categories:

Static Saliency: algorithms belonging to this category, exploit different image features that allow to detect salient objects in a non dynamic scenarios.

Motion Saliency: algorithms belonging to this category, are particularly focused to detect salient objects over time (hence also over frame), then there is a temporal component sealing cosider that allows to detect “moving” objects as salient, meaning therefore also the more general sense of detection the changes in the scene.

Objectness: Objectness is usually represented as a value which reflects how likely an image window covers an object of any category. Algorithms belonging to this category, avoid making decisions early on, by proposing a small number of category-independent proposals, that are expected to cover all objects in an image. Being able to perceive objects before identifying them is closely related to bottom up visual attention (saliency).

Presently, the following methods have been implemented:

- Spectral Residual approach (Hou, Xiaodi, and Liqing Zhang. “Saliency detection: A spectral residual approach.” Computer Vision and Pattern Recognition, 2007. CVPR‘07. IEEE Conference on. IEEE, 2007.) for Static Saliency category.

- Binarized normed gradients algorithm (Cheng, Ming-Ming, et al. “BING: Binarized normed gradients for objectness estimation at 300fps.” IEEE CVPR. 2014.) for Objectness category.

- Bin Wang Apr 2014 (B. Wang and P. Dudek "A Fast Self-tuning Background Subtraction Algorithm", in proc of IEEE Workshop on Change Detection, 2014) for Motion Saliency category.

 
Hello @vpisarev, thank you for your review. As soon as I completed the 
DEMO , I will carry out all the changes you have specified.

Il 15/08/14 07:25, Vadim Pisarevsky ha scritto:
>
> In modules/saliency/src/BING/CmFile.cpp:
>
> > + // This software is provided by the copyright holders and contributors "as is" and
> > + // any express or implied warranties, including, but not limited to, the implied
> > + // warranties of merchantability and fitness for a particular purpose are disclaimed.
> > + // In no event shall the Intel Corporation or contributors be liable for any direct,
> > + // indirect, incidental, special, exemplary, or consequential damages
> > + // (including, but not limited to, procurement of substitute goods or services;
> > + // loss of use, data, or profits; or business interruption) however caused
> > + // and on any theory of liability, whether in contract, strict liability,
> > + // or tort (including negligence or otherwise) arising in any way out of
> > + // the use of this software, even if advised of the possibility of such damage.
> > + //
> > + //M*/
> > +
> > +#include "CmFile.h"
> > +
> > +bool CmFile::MkDir( CStr &_path )
>
> to avoid name conflicts, please, include all the functionality into 
> the same nested namespace, cv::saliency in this case
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/Itseez/opencv_contrib/pull/39/files#r16280663>.
>