Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
3f011b38
Commit
3f011b38
authored
Sep 26, 2024
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Next working snapshot
parent
6c7e3422
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
420 additions
and
67 deletions
+420
-67
VegetationLMA.java
...main/java/com/elphel/imagej/vegetation/VegetationLMA.java
+392
-62
VegetationModel.java
...in/java/com/elphel/imagej/vegetation/VegetationModel.java
+28
-5
No files found.
src/main/java/com/elphel/imagej/vegetation/VegetationLMA.java
View file @
3f011b38
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/vegetation/VegetationModel.java
View file @
3f011b38
...
@@ -698,14 +698,26 @@ public class VegetationModel {
...
@@ -698,14 +698,26 @@ public class VegetationModel {
int
min_scenes
=
10
;
int
min_scenes
=
10
;
double
default_alpha
=
0.8
;
double
default_alpha
=
0.8
;
double
reg_weights
=
0.25
;
// fraction of the total weight used for regularization
double
reg_weights
=
0.25
;
// fraction of the total weight used for regularization
double
alpha_loss
=
1000.0
;
// 100.; // 10.0; // quadratic loss when alpha reaches -1.0 or 2.0
double
alpha_loss
=
10000.0
;
// 1000.0; // 100.; // 10.0; // quadratic loss when alpha reaches -1.0 or 2.0
double
alpha_offset
=
0.0
;
// if >0, start losses above 0.0 and below 1.0;
double
alpha_offset
=
0.02
;
// 0.03; // if >0, start losses above 0.0 and below 1.0;
double
alpha_lpf
=
2.0
;
// 1.5; // 5.0; // 0.5; // pull to average of 4 neighbors
double
alpha_lpf
=
6.0
;
// 3.0; // 2.0; // 1.5; // 5.0; // 0.5; // pull to average of 4 neighbors
double
terr_lpf
=
0.1
;
// pull terrain to average of 4 neighbors (very small)
double
veget_lpf
=
0.1
;
// pull vegetation to average of 4 neighbors (very small - maybe not needed)
double
boost_parallax
=
5
;
double
boost_parallax
=
5
;
boolean
exit_loop
=
debugLevel
<
1000
;
boolean
exit_loop
=
debugLevel
<
1000
;
boolean
next_run
=
false
;
boolean
next_run
=
false
;
boolean
read_pars
=
true
;
boolean
read_pars
=
true
;
// false; // true;
String
parameters_path
=
"/media/elphel/SSD3-4GB/lwir16-proc/berdich3/debug/vegetation/lma/parameters_vector_data.tiff"
;
double
threshold_terrain
=
0.05
;
double
min_max_terrain
=
0.1
;
double
min_terrain
=
0.001
;
double
min_vegetation
=
0.5
;
// String parameters_path = "/media/elphel/SSD3-4GB/lwir16-proc/berdich3/debug/vegetation/lma/parameters_vector_data_1000-0.03.tiff";
// String parameters_path = "/media/elphel/SSD3-4GB/lwir16-proc/berdich3/debug/vegetation/essential/parameters_vector_data_1000-0.03.tiff";
String
parameters_path
=
"/media/elphel/SSD3-4GB/lwir16-proc/berdich3/debug/vegetation/essential/parameters_vector_data_x143-y317-w35-h35-live_10000_0.02_3.0.tiff"
;
do
{
do
{
String
par_path
=
(
read_pars
&&
!
next_run
)?
parameters_path
:
null
;
String
par_path
=
(
read_pars
&&
!
next_run
)?
parameters_path
:
null
;
int
num_samples
=
vegetationLMA
.
prepareLMA
(
int
num_samples
=
vegetationLMA
.
prepareLMA
(
...
@@ -717,6 +729,8 @@ public class VegetationModel {
...
@@ -717,6 +729,8 @@ public class VegetationModel {
alpha_loss
,
// final double alpha_loss, // quadratic loss when alpha reaches -1.0 or 2.0
alpha_loss
,
// final double alpha_loss, // quadratic loss when alpha reaches -1.0 or 2.0
alpha_offset
,
// final double alpha_offset, // quadratic loss when alpha reaches -1.0 or 2.0
alpha_offset
,
// final double alpha_offset, // quadratic loss when alpha reaches -1.0 or 2.0
alpha_lpf
,
// final double alpha_lpf, // pull to average of 4 neighbors
alpha_lpf
,
// final double alpha_lpf, // pull to average of 4 neighbors
terr_lpf
,
// final double terr_lpf, // pull terrain to average of 4 neighbors (very small)
veget_lpf
,
// final double veget_lpf, // pull vegetation to average of 4 neighbors (very small - maybe not needed)
boost_parallax
,
// final double boost_parallax, // increase weight of scene with maximal parallax relative to the reference scene
boost_parallax
,
// final double boost_parallax, // increase weight of scene with maximal parallax relative to the reference scene
par_path
,
// final String parameters_read_path,
par_path
,
// final String parameters_read_path,
debugLevel
);
// final int debugLevel);
debugLevel
);
// final int debugLevel);
...
@@ -724,6 +738,15 @@ public class VegetationModel {
...
@@ -724,6 +738,15 @@ public class VegetationModel {
vegetationLMA
.
showYfX
(
vegetationLMA
.
showYfX
(
null
,
// double [] vector,
null
,
// double [] vector,
"reconstructed_model"
);
// String title)
"reconstructed_model"
);
// String title)
vegetationLMA
.
showResults
(
"terr_split"
,
// String title,
vegetationLMA
.
getParametersVector
(),
// double [] vector,
threshold_terrain
,
// double threshold_terrain,
min_max_terrain
,
// double min_max_terrain, //0.1
min_terrain
,
//double min_terrain, //0.001
min_vegetation
);
// double min_vegetation) { // 0.5
}
}
next_run
=
true
;
next_run
=
true
;
double
lambda
=
5.0
;
// 0.1;
double
lambda
=
5.0
;
// 0.1;
...
...
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