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
David Youssefi
otb
Commits
1aaea0ab
Commit
1aaea0ab
authored
14 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add accessor, change type
parent
02969003
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Learning/otbListSampleGenerator.h
+11
-8
11 additions, 8 deletions
Code/Learning/otbListSampleGenerator.h
Code/Visualization/otbPixelDescriptionModel.h
+1
-1
1 addition, 1 deletion
Code/Visualization/otbPixelDescriptionModel.h
with
12 additions
and
9 deletions
Code/Learning/otbListSampleGenerator.h
+
11
−
8
View file @
1aaea0ab
...
...
@@ -94,14 +94,17 @@ public:
virtual
void
Update
();
/** Accessors */
itkGetMacro
(
MaxTrainingSize
,
int
);
itkSetMacro
(
MaxTrainingSize
,
int
);
itkGetMacro
(
MaxValidationSize
,
int
);
itkSetMacro
(
MaxValidationSize
,
int
);
itkGetMacro
(
ValidationTrainingProportion
,
double
);
itkGet
Const
Macro
(
MaxTrainingSize
,
long
int
);
itkSetMacro
(
MaxTrainingSize
,
long
int
);
itkGet
Const
Macro
(
MaxValidationSize
,
long
int
);
itkSetMacro
(
MaxValidationSize
,
long
int
);
itkGet
Const
Macro
(
ValidationTrainingProportion
,
double
);
itkSetClampMacro
(
ValidationTrainingProportion
,
double
,
0.0
,
1.0
);
itkGetMacro
(
NumberOfClasses
,
unsigned
short
);
itkGetConstMacro
(
NumberOfClasses
,
unsigned
short
);
typedef
std
::
map
<
int
,
int
>
SampleNumberType
;
itkGetConstMacro
(
ClassesSamplesNumberTraining
,
SampleNumberType
);
itkGetConstMacro
(
ClassesSamplesNumberValidation
,
SampleNumberType
);
itkGetStringMacro
(
ClassKey
);
itkSetStringMacro
(
ClassKey
);
...
...
@@ -126,8 +129,8 @@ private:
void
GenerateClassStatistics
();
void
ComputeClassSelectionProbability
();
int
m_MaxTrainingSize
;
// number of traning samples (-1 = no limit)
int
m_MaxValidationSize
;
// number of validation samples (-1 = no limit)
long
int
m_MaxTrainingSize
;
// number of tra
i
ning samples (-1 = no limit)
long
int
m_MaxValidationSize
;
// number of validation samples (-1 = no limit)
double
m_ValidationTrainingProportion
;
// proportion of training vs validation
// (0.0 = all training, 1.0 = all validation)
...
...
This diff is collapsed.
Click to expand it.
Code/Visualization/otbPixelDescriptionModel.h
+
1
−
1
View file @
1aaea0ab
...
...
@@ -26,7 +26,7 @@
namespace
otb
{
/** \class PixelDescriptionModel
* \brief This class is a layer based model reporting pixel
information
* \brief This class is a layer based model reporting pixel information
*
* \sa ImageLayer
*
...
...
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