Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
57f8a0f3
Commit
57f8a0f3
authored
Apr 28, 2017
by
Ludovic Hussonnois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WRG: Correct defects reported by Coverity Scan.
parent
35acbade
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
12 deletions
+11
-12
Modules/Applications/AppClassification/app/otbComputeConfusionMatrix.cxx
...tions/AppClassification/app/otbComputeConfusionMatrix.cxx
+1
-1
Modules/Applications/AppMorphology/app/otbMorphologicalProfilesAnalysis.cxx
...ns/AppMorphology/app/otbMorphologicalProfilesAnalysis.cxx
+7
-10
Modules/Learning/Unsupervised/test/otbContingencyTableCalculatorTest.cxx
...g/Unsupervised/test/otbContingencyTableCalculatorTest.cxx
+2
-0
Modules/Visualization/MonteverdiGui/src/mvdQtWidgetView.cxx
Modules/Visualization/MonteverdiGui/src/mvdQtWidgetView.cxx
+1
-1
No files found.
Modules/Applications/AppClassification/app/otbComputeConfusionMatrix.cxx
View file @
57f8a0f3
...
...
@@ -84,7 +84,7 @@ public:
private:
Int32ImageType
*
m_Input
;
Int32ImageType
*
m_Input
=
ITK_SP_NULLPTR
;
Int32ImageType
::
Pointer
m_Reference
;
RAMDrivenAdaptativeStreamingManagerType
::
Pointer
m_StreamingManager
;
otb
::
ogr
::
DataSource
::
Pointer
m_OgrRef
;
...
...
Modules/Applications/AppMorphology/app/otbMorphologicalProfilesAnalysis.cxx
View file @
57f8a0f3
...
...
@@ -228,13 +228,13 @@ private:
typedef
otb
::
ProfileDerivativeToMultiScaleCharacteristicsFilter
<
FloatImageType
,
FloatImageType
,
LabeledImageType
>
MultiScaleCharacteristicsFilterType
;
// Instantiation
typename
OpeningProfileFilterType
::
Pointer
oprofileFilter
;
typename
ClosingProfileFilterType
::
Pointer
cprofileFilter
;
typename
DerivativeFilterType
::
Pointer
oderivativeFilter
;
typename
DerivativeFilterType
::
Pointer
cderivativeFilter
;
typename
MultiScaleCharacteristicsFilterType
::
Pointer
omsCharFilter
;
typename
MultiScaleCharacteristicsFilterType
::
Pointer
cmsCharFilter
;
typename
MultiScaleClassificationFilterType
::
Pointer
classificationFilter
;
typename
OpeningProfileFilterType
::
Pointer
oprofileFilter
=
OpeningProfileFilterType
::
New
()
;
typename
ClosingProfileFilterType
::
Pointer
cprofileFilter
=
ClosingProfileFilterType
::
New
()
;
typename
DerivativeFilterType
::
Pointer
oderivativeFilter
=
DerivativeFilterType
::
New
()
;
typename
DerivativeFilterType
::
Pointer
cderivativeFilter
=
DerivativeFilterType
::
New
()
;
typename
MultiScaleCharacteristicsFilterType
::
Pointer
omsCharFilter
=
MultiScaleCharacteristicsFilterType
::
New
()
;
typename
MultiScaleCharacteristicsFilterType
::
Pointer
cmsCharFilter
=
MultiScaleCharacteristicsFilterType
::
New
()
;
typename
MultiScaleClassificationFilterType
::
Pointer
classificationFilter
=
MultiScaleClassificationFilterType
::
New
()
;
bool
classify
=
profile
==
"classification"
;
bool
opening
=
profile
==
"opening"
;
...
...
@@ -291,7 +291,6 @@ private:
typedef
ImageList
<
FloatImageType
>
TImageList
;
typedef
otb
::
ImageListToVectorImageFilter
<
TImageList
,
FloatVectorImageType
>
TListToVectorImageFilter
;
profileFilter
=
TProfileFilter
::
New
();
profileFilter
->
SetInput
(
m_ExtractorFilter
->
GetOutput
()
);
profileFilter
->
SetProfileSize
(
profileSize
);
profileFilter
->
SetInitialValue
(
initValue
);
...
...
@@ -307,7 +306,6 @@ private:
return
;
}
derivativeFilter
=
TDerivativeFilter
::
New
();
derivativeFilter
->
SetInput
(
profileFilter
->
GetOutput
()
);
if
(
derivative
)
...
...
@@ -320,7 +318,6 @@ private:
return
;
}
msCharFilter
=
TCharacteristicsFilter
::
New
();
msCharFilter
->
SetInput
(
derivativeFilter
->
GetOutput
()
);
msCharFilter
->
SetInitialValue
(
initValue
);
msCharFilter
->
SetStep
(
step
);
...
...
Modules/Learning/Unsupervised/test/otbContingencyTableCalculatorTest.cxx
View file @
57f8a0f3
...
...
@@ -61,6 +61,8 @@ int otbContingencyTableCalculatorSetListSamples(int argc, char* argv[])
int
nbSamples
=
atoi
(
argv
[
1
]);
int
nbClasses
=
atoi
(
argv
[
2
]);
if
(
nbClasses
<=
0
)
nbClasses
=
1
;
for
(
int
i
=
0
;
i
<
nbSamples
;
++
i
)
{
...
...
Modules/Visualization/MonteverdiGui/src/mvdQtWidgetView.cxx
View file @
57f8a0f3
...
...
@@ -151,6 +151,7 @@ QtWidgetView
setObjectName
(
QtWidgetView
::
OBJECT_NAME
);
m_Model
=
new
otb
::
Wrapper
::
QtWidgetModel
(
otbApp
);
m_QuitShortcut
=
new
QShortcut
(
QKeySequence
(
"Ctrl+Q"
),
this
);
QObject
::
connect
(
m_Model
,
SIGNAL
(
SetProgressReportBegin
()
),
...
...
@@ -303,7 +304,6 @@ QtWidgetView
);
// Add Ctrl-Q shortcut to quit
m_QuitShortcut
=
new
QShortcut
(
QKeySequence
(
"Ctrl+Q"
),
this
);
connect
(
m_QuitShortcut
,
SIGNAL
(
activated
()),
this
,
SLOT
(
close
())
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment