Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GSoC 2017] DeepGaze1 + Discriminant Saliency + BackgroundContrast #1252

Open
wants to merge 47 commits into
base: 4.x
Choose a base branch
from

Conversation

Masterqsx
Copy link

@Masterqsx Masterqsx commented Jun 25, 2017

  1. Add DeepGaze1 class declaration in "saliencySpecializedClasses.hpp" in saliency module
  2. Add DeepGaze1 class implementation in "DeepGaze1.cpp"
  3. Add sample code in "DeepGaze1Sample.cpp"
  4. Add SALIENCY_mit1003 class in datasets module and its sample code
  5. Add DiscriminantSaliency class declaration in "saliencySpecializedClasses.hpp" in saliency module
  6. Add DiscriminantSaliency class implementation in "DiscriminantSaliency.cpp"
  7. Add DiscriminantSaliency sample code in "DiscriminantSaliencySample.cpp"
  8. Add BackgroundContrast class implementation in "BackgroundContrast.cpp"
  9. Add BackgroundContrast sample code in "BackgroundContrastSample.cpp"

Project: Improve Background Subtraction with Aggregated Saliency
Mentor: @lenlen

@sovrasov sovrasov added the GSoC label Jun 25, 2017
@Masterqsx Masterqsx changed the title [GSoC 2017] DeepGaze1 [GSoC 2017] DeepGaze1 + Discriminant Saliency Jul 24, 2017
@Masterqsx Masterqsx changed the title [GSoC 2017] DeepGaze1 + Discriminant Saliency [GSoC 2017] DeepGaze1 + Discriminant Saliency + BackgroundContrast Aug 17, 2017
@@ -165,6 +165,7 @@ namespace cv {
// Generate mask
Mat mask = regions == r;


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this useless change.

// of this distribution and at http://opencv.org/license.html.

#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove useless includes like highgui and imgcodecs. We shouldn't rely on modules which are not listed in dependencies list (see CMake).

{
fgWeightDig.at<double>(i, i) = fg.at<double>(i, 0);
}
//temp = (smoothDeri - smoothWeight + bgWeightDig + fgWeightDig);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and everywhere please remove the dead commented code.

@@ -40,6 +40,9 @@
//M*/

#include "precomp.hpp"
#include <iostream>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in this file are seems to be useless, so please revert them.

This method uses seed superpixel algorithm to partition the image and calculate the probability of belonging to background with CIE-Lab color contrast.
This method also provides an optimization framework may help foreground based saliency method perform better.
*/
class CV_EXPORTS_W BackgroundContrast : public StaticSaliency
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to rename this class to BackgroundContrastSaliency. The current name is misleading.

@@ -0,0 +1,149 @@
name: "CaffeNet"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you put the modified prototxt to the unrelated module?

@berak berak mentioned this pull request Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants