-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4feff6b
commit 47d5265
Showing
12 changed files
with
69 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
// SaliencyICCV13.cpp : Defines the entry point for the console application. | ||
// | ||
|
||
#include "stdafx.h" | ||
|
||
int main(int argc, char* argv[]) | ||
{ | ||
CStr wkDir = "D:/Saliency/MSRA10K/"; | ||
CStr wkDir = "D:/WkDir/Saliency/MSRA10K/"; | ||
CStr inDir = wkDir + "Imgs/", outDir = wkDir + "Saliency/"; | ||
CmFile::Copy2Dir(inDir + "*.jpg", outDir); | ||
|
||
CStr srcDir = "D:/Downloads/MSRA10K_Maps_Cuts/SaliencyCut/"; | ||
vecS namesNE; | ||
int imgNum = CmFile::GetNamesNE(srcDir + "*_RCC.png", namesNE); | ||
for (int i = 0; i < imgNum; i++) | ||
CmFile::Copy(srcDir + namesNE[i] + ".png", outDir + namesNE[i] + "O.png"); | ||
|
||
|
||
// Saliency detection method pretended in my ICCV 2013 paper http://mmcheng.net/effisalobj/. | ||
return CmSaliencyGC::Demo(wkDir + "Imgs/*.jpg", wkDir + "/Saliency/"); | ||
//CmSaliencyGC::Demo(inDir + "*.jpg", outDir); | ||
|
||
// Saliency detection method presented in PAMI 2014 (CVPR 2011) paper http://mmcheng.net/salobj/. | ||
CmSalCut::Demo(inDir + "83262*.jpg", inDir + "*.png", outDir); | ||
|
||
//CmSaliencyRC::Get(inDir + "*.jpg", outDir); | ||
|
||
// Saliency detection method presented in CVPR11 paper and its journal version http://mmcheng.net/salobj/. | ||
return CmSaliencyRC::Demo("D:/WkDir/Saliency/FT1000/"); | ||
vecS des, desCut; | ||
des.push_back("RC"); des.push_back("GC"); | ||
desCut.push_back("RCC"); desCut.push_back("RCCO"); | ||
//CmEvaluation::Evaluate(inDir + "*.png", outDir, wkDir + "Results.m", des); | ||
CmEvaluation::EvalueMask(inDir + "*.png", outDir, desCut, wkDir + "CutRes.m"); | ||
|
||
vecS des; | ||
des.push_back("_RC"); | ||
des.push_back("_HC"); | ||
CmEvaluation::Evaluate(wkDir + "Imgs/*.png", wkDir + "Saliency/", wkDir + "Results.m", des); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters