Skip to content

Commit 8740be2

Browse files
committed
fix casting and tab indention
1 parent 7c10e2c commit 8740be2

File tree

3 files changed

+174
-174
lines changed

3 files changed

+174
-174
lines changed

modules/saliency/include/opencv2/saliency/saliencySpecializedClasses.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ This method use the convolution layers of the pretrained AlexNet, linear combina
203203
class CV_EXPORTS_W BackgroundContrast : public StaticSaliency
204204
{
205205
private:
206-
int limitOfSP;
207-
int nOfLevel;
208-
int usePrior;
209-
int histBin;
210-
double bgWei;
206+
int limitOfSP;
207+
int nOfLevel;
208+
int usePrior;
209+
int histBin;
210+
double bgWei;
211211
public:
212212
BackgroundContrast( double = 5, int = 600, int = 4, int = 2, int = 5 );
213213
virtual ~BackgroundContrast();

modules/saliency/samples/BackgroundContrastSample.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ int main(int argc, char* argv[])
2222
{
2323
const char *keys =
2424
"{ help h usage ? | | show this message }"
25-
"{ img_path | | path to img }"
26-
"{ foregroundImg_path| | path to saliency img generated by other method }"
27-
"{ optimization |0 | 0 for aggregated optimized with no outside saliency, 1 for optimizaed with outside saliency }";
25+
"{ img_path | | path to img }"
26+
"{ foregroundImg_path| | path to saliency img generated by other method }"
27+
"{ optimization |0 | 0 for aggregated optimized with no outside saliency, 1 for optimizaed with outside saliency }";
2828

2929
CommandLineParser parser(argc, argv, keys);
3030
if (parser.has("help"))
@@ -44,9 +44,9 @@ int main(int argc, char* argv[])
4444
}
4545
else
4646
{
47-
Mat saliency;
48-
bc.computeSaliency(img, saliency);
49-
bc.saliencyMapVisualize(saliency, 0);
47+
Mat saliency;
48+
bc.computeSaliency(img, saliency);
49+
bc.saliencyMapVisualize(saliency, 0);
5050
}
5151
return 0;
5252
} //main

0 commit comments

Comments
 (0)