Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Cabieces
otb
Commits
d684608d
Commit
d684608d
authored
6 years ago
by
Cédric Traizet
Browse files
Options
Downloads
Patches
Plain Diff
ENH: removed commented code of the VD algorithm, which is now in EndmemberNumberEstimation
parent
a5602f58
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/Applications/AppDimensionalityReduction/app/otbDimensionalityReduction.cxx
+2
-16
2 additions, 16 deletions
...imensionalityReduction/app/otbDimensionalityReduction.cxx
with
2 additions
and
16 deletions
Modules/Applications/AppDimensionalityReduction/app/otbDimensionalityReduction.cxx
+
2
−
16
View file @
d684608d
...
...
@@ -28,8 +28,6 @@
#include
"otbMaximumAutocorrelationFactorImageFilter.h"
#include
"otbFastICAImageFilter.h"
//#include "otbVirtualDimensionality.h"
#include
"otbStreamingMinMaxVectorImageFilter.h"
#include
"otbVectorRescaleIntensityImageFilter.h"
...
...
@@ -74,8 +72,6 @@ public:
typedef
otb
::
StreamingStatisticsVectorImageFilter
<
FloatVectorImageType
>
StreamingStatisticsVectorImageFilterType
;
typedef
StreamingStatisticsVectorImageFilterType
::
MatrixObjectType
::
ComponentType
MatrixType
;
//typedef otb::VirtualDimensionality<double> VDFilterType;
// output rescale
typedef
otb
::
StreamingMinMaxVectorImageFilter
<
FloatVectorImageType
>
MinMaxFilterType
;
...
...
@@ -154,10 +150,6 @@ private:
SetDefaultParameterFloat
(
"method.ica.mu"
,
1.
);
MandatoryOff
(
"method.ica.mu"
);
//AddChoice("method.vd","virual Dimension");
//SetParameterDescription("method.vd","Virtual Dimension.");
//MandatoryOff("method");
AddParameter
(
ParameterType_Int
,
"nbcomp"
,
"Number of Components"
);
SetParameterDescription
(
"nbcomp"
,
"Number of relevant components kept. By default all components are kept."
);
SetDefaultParameterInt
(
"nbcomp"
,
0
);
...
...
@@ -371,12 +363,6 @@ private:
break
;
}
/* case 4:
{
otbAppLogDEBUG( << "VD Algorithm");
break;
}*/
default
:
{
...
...
@@ -389,7 +375,7 @@ private:
if
(
invTransform
)
{
if
(
GetParameterInt
(
"method"
)
==
2
)
//MAF
or VD
if
(
GetParameterInt
(
"method"
)
==
2
)
//MAF
{
this
->
DisableParameter
(
"outinv"
);
otbAppLogWARNING
(
<<
"This application only provides the forward transform for the MAF method."
);
...
...
@@ -400,7 +386,7 @@ private:
//Write transformation matrix
if
(
this
->
GetParameterString
(
"outmatrix"
).
size
()
!=
0
)
{
if
(
GetParameterInt
(
"method"
)
==
2
)
//MAF
or VD
if
(
GetParameterInt
(
"method"
)
==
2
)
//MAF
{
otbAppLogWARNING
(
<<
"No transformation matrix available for MAF."
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment