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
80a76a64
Commit
80a76a64
authored
Jan 25, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
next snapshot - untested
parent
51fc9a60
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
55 deletions
+128
-55
CLTParameters.java
src/main/java/com/elphel/imagej/cameras/CLTParameters.java
+8
-2
TexturedModel.java
...n/java/com/elphel/imagej/tileprocessor/TexturedModel.java
+120
-53
No files found.
src/main/java/com/elphel/imagej/cameras/CLTParameters.java
View file @
80a76a64
...
@@ -414,6 +414,7 @@ public class CLTParameters {
...
@@ -414,6 +414,7 @@ public class CLTParameters {
public
int
tex_subdiv_tiles
=
4
;
// subdivide tiles to smaller triangles
public
int
tex_subdiv_tiles
=
4
;
// subdivide tiles to smaller triangles
public
int
tex_sky_extra
=
2
;
// additionally grow sky area (in layers) without marking as sky
public
int
tex_sky_extra
=
2
;
// additionally grow sky area (in layers) without marking as sky
public
int
tex_sky_below
=
10
;
// extend sky these tile rows below lowest
public
int
tex_sky_below
=
10
;
// extend sky these tile rows below lowest
public
int
tex_shrink_sky_pix
=
4
;
// shrink background by pixels
// gd.addMessage ("Triangular mesh");
// gd.addMessage ("Triangular mesh");
public
boolean
tex_disp_hires_tri
=
true
;
// Display high resolution mesh
public
boolean
tex_disp_hires_tri
=
true
;
// Display high resolution mesh
...
@@ -1535,6 +1536,7 @@ public class CLTParameters {
...
@@ -1535,6 +1536,7 @@ public class CLTParameters {
properties
.
setProperty
(
prefix
+
"tex_subdiv_tiles"
,
this
.
tex_subdiv_tiles
+
""
);
// int
properties
.
setProperty
(
prefix
+
"tex_subdiv_tiles"
,
this
.
tex_subdiv_tiles
+
""
);
// int
properties
.
setProperty
(
prefix
+
"tex_sky_extra"
,
this
.
tex_sky_extra
+
""
);
// int
properties
.
setProperty
(
prefix
+
"tex_sky_extra"
,
this
.
tex_sky_extra
+
""
);
// int
properties
.
setProperty
(
prefix
+
"tex_sky_below"
,
this
.
tex_sky_below
+
""
);
// int
properties
.
setProperty
(
prefix
+
"tex_sky_below"
,
this
.
tex_sky_below
+
""
);
// int
properties
.
setProperty
(
prefix
+
"tex_shrink_sky_pix"
,
this
.
tex_shrink_sky_pix
+
""
);
// int
properties
.
setProperty
(
prefix
+
"tex_disp_hires_tri"
,
this
.
tex_disp_hires_tri
+
""
);
// boolean
properties
.
setProperty
(
prefix
+
"tex_disp_hires_tri"
,
this
.
tex_disp_hires_tri
+
""
);
// boolean
properties
.
setProperty
(
prefix
+
"tex_dbg_scale_mesh"
,
this
.
tex_dbg_scale_mesh
+
""
);
// int
properties
.
setProperty
(
prefix
+
"tex_dbg_scale_mesh"
,
this
.
tex_dbg_scale_mesh
+
""
);
// int
...
@@ -2531,6 +2533,7 @@ public class CLTParameters {
...
@@ -2531,6 +2533,7 @@ public class CLTParameters {
if
(
properties
.
getProperty
(
prefix
+
"tex_subdiv_tiles"
)!=
null
)
this
.
tex_subdiv_tiles
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"tex_subdiv_tiles"
));
if
(
properties
.
getProperty
(
prefix
+
"tex_subdiv_tiles"
)!=
null
)
this
.
tex_subdiv_tiles
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"tex_subdiv_tiles"
));
if
(
properties
.
getProperty
(
prefix
+
"tex_sky_extra"
)!=
null
)
this
.
tex_sky_extra
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"tex_sky_extra"
));
if
(
properties
.
getProperty
(
prefix
+
"tex_sky_extra"
)!=
null
)
this
.
tex_sky_extra
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"tex_sky_extra"
));
if
(
properties
.
getProperty
(
prefix
+
"tex_sky_below"
)!=
null
)
this
.
tex_sky_below
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"tex_sky_below"
));
if
(
properties
.
getProperty
(
prefix
+
"tex_sky_below"
)!=
null
)
this
.
tex_sky_below
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"tex_sky_below"
));
if
(
properties
.
getProperty
(
prefix
+
"tex_shrink_sky_pix"
)!=
null
)
this
.
tex_shrink_sky_pix
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"tex_shrink_sky_pix"
));
if
(
properties
.
getProperty
(
prefix
+
"tex_disp_hires_tri"
)!=
null
)
this
.
tex_disp_hires_tri
=
Boolean
.
parseBoolean
(
properties
.
getProperty
(
prefix
+
"tex_disp_hires_tri"
));
if
(
properties
.
getProperty
(
prefix
+
"tex_disp_hires_tri"
)!=
null
)
this
.
tex_disp_hires_tri
=
Boolean
.
parseBoolean
(
properties
.
getProperty
(
prefix
+
"tex_disp_hires_tri"
));
if
(
properties
.
getProperty
(
prefix
+
"tex_dbg_scale_mesh"
)!=
null
)
this
.
tex_dbg_scale_mesh
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"tex_dbg_scale_mesh"
));
if
(
properties
.
getProperty
(
prefix
+
"tex_dbg_scale_mesh"
)!=
null
)
this
.
tex_dbg_scale_mesh
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"tex_dbg_scale_mesh"
));
...
@@ -3707,6 +3710,8 @@ public class CLTParameters {
...
@@ -3707,6 +3710,8 @@ public class CLTParameters {
"additionally grow sky area (in layers) without marking it as sky."
);
"additionally grow sky area (in layers) without marking it as sky."
);
gd
.
addNumericField
(
"Extend sky area down"
,
this
.
tex_sky_below
,
0
,
3
,
"tiles"
,
gd
.
addNumericField
(
"Extend sky area down"
,
this
.
tex_sky_below
,
0
,
3
,
"tiles"
,
"if >=0, extend sky these tile rows below lowest and extend sky up, right and left to full image."
);
"if >=0, extend sky these tile rows below lowest and extend sky up, right and left to full image."
);
gd
.
addNumericField
(
"Shrink trimmed sky"
,
this
.
tex_shrink_sky_pix
,
0
,
3
,
"pix"
,
"Shrink sky area after processing occlusions. Shrink by 1 pixel row - 2."
);
gd
.
addMessage
(
"Triangular mesh"
);
gd
.
addMessage
(
"Triangular mesh"
);
gd
.
addCheckbox
(
"Display high resolution mesh"
,
this
.
tex_disp_hires_tri
,
gd
.
addCheckbox
(
"Display high resolution mesh"
,
this
.
tex_disp_hires_tri
,
...
@@ -3902,7 +3907,7 @@ public class CLTParameters {
...
@@ -3902,7 +3907,7 @@ public class CLTParameters {
gd
.
addMessage
(
"Trimming by temperature (tone)"
);
gd
.
addMessage
(
"Trimming by temperature (tone)"
);
gd
.
addCheckbox
(
"Use min/max instead of averages"
,
this
.
lre_
show_debug
,
// true
gd
.
addCheckbox
(
"Use min/max instead of averages"
,
this
.
lre_
use_min_max
,
// true
"when trimming by tone, use min/max of the FG/BG instead of weighted averages."
);
"when trimming by tone, use min/max of the FG/BG instead of weighted averages."
);
gd
.
addNumericField
(
"Trim by temperature radius"
,
this
.
lre_temp_radius
,
5
,
7
,
""
,
gd
.
addNumericField
(
"Trim by temperature radius"
,
this
.
lre_temp_radius
,
5
,
7
,
""
,
"How far to look around for FG trimming by temperature."
);
"How far to look around for FG trimming by temperature."
);
...
@@ -4945,6 +4950,7 @@ public class CLTParameters {
...
@@ -4945,6 +4950,7 @@ public class CLTParameters {
this
.
tex_subdiv_tiles
=
(
int
)
gd
.
getNextNumber
();
this
.
tex_subdiv_tiles
=
(
int
)
gd
.
getNextNumber
();
this
.
tex_sky_extra
=
(
int
)
gd
.
getNextNumber
();
this
.
tex_sky_extra
=
(
int
)
gd
.
getNextNumber
();
this
.
tex_sky_below
=
(
int
)
gd
.
getNextNumber
();
this
.
tex_sky_below
=
(
int
)
gd
.
getNextNumber
();
this
.
tex_shrink_sky_pix
=
(
int
)
gd
.
getNextNumber
();
this
.
tex_disp_hires_tri
=
gd
.
getNextBoolean
();
this
.
tex_disp_hires_tri
=
gd
.
getNextBoolean
();
this
.
tex_dbg_scale_mesh
=
(
int
)
gd
.
getNextNumber
();
this
.
tex_dbg_scale_mesh
=
(
int
)
gd
.
getNextNumber
();
...
@@ -5051,8 +5057,8 @@ public class CLTParameters {
...
@@ -5051,8 +5057,8 @@ public class CLTParameters {
this
.
lre_use_min_max
=
gd
.
getNextBoolean
();
// boolean
this
.
lre_use_min_max
=
gd
.
getNextBoolean
();
// boolean
this
.
lre_temp_radius
=
gd
.
getNextNumber
();
// double
this
.
lre_temp_radius
=
gd
.
getNextNumber
();
// double
this
.
lre_temp_min
=
(
int
)
gd
.
getNextNumber
();
// int
this
.
lre_temp_min
=
(
int
)
gd
.
getNextNumber
();
// int
this
.
lre_min_use_occl
=
gd
.
getNextNumber
();
// double
this
.
lre_temp_weight
=
gd
.
getNextNumber
();
// double
this
.
lre_temp_weight
=
gd
.
getNextNumber
();
// double
this
.
lre_min_use_occl
=
gd
.
getNextNumber
();
// double
this
.
lre_temp_disparity
=
gd
.
getNextNumber
();
// double
this
.
lre_temp_disparity
=
gd
.
getNextNumber
();
// double
...
...
src/main/java/com/elphel/imagej/tileprocessor/TexturedModel.java
View file @
80a76a64
This diff is collapsed.
Click to expand it.
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