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
98e487e9
Commit
98e487e9
authored
Feb 04, 2024
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Started manual pair matching by affine transform
parent
cfaee44d
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
366 additions
and
1 deletion
+366
-1
Eyesis_Correction.java
.../java/com/elphel/imagej/correction/Eyesis_Correction.java
+11
-0
ComboMatch.java
src/main/java/com/elphel/imagej/orthomosaic/ComboMatch.java
+348
-0
ImageDttCPU.java
...ain/java/com/elphel/imagej/tileprocessor/ImageDttCPU.java
+4
-0
TexturedModel.java
...n/java/com/elphel/imagej/tileprocessor/TexturedModel.java
+3
-1
No files found.
src/main/java/com/elphel/imagej/correction/Eyesis_Correction.java
View file @
98e487e9
...
...
@@ -109,6 +109,7 @@ import com.elphel.imagej.ims.EventLogger;
import
com.elphel.imagej.ims.Imx5
;
import
com.elphel.imagej.jp4.JP46_Reader_camera
;
import
com.elphel.imagej.lwir.LwirReader
;
import
com.elphel.imagej.orthomosaic.ComboMatch
;
import
com.elphel.imagej.readers.ChangeImageResolution
;
import
com.elphel.imagej.readers.DumpImageMetadata
;
import
com.elphel.imagej.readers.EyesisTiff
;
...
...
@@ -841,6 +842,8 @@ public class Eyesis_Correction implements PlugIn, ActionListener {
addButton
(
"Build World"
,
panelLWIRWorld
,
color_process
);
addButton
(
"Test IMX5"
,
panelLWIRWorld
,
color_process
);
addButton
(
"Show mice"
,
panelLWIRWorld
,
color_process
);
addButton
(
"Set pair"
,
panelLWIRWorld
,
color_process
);
addButton
(
"Warp pair"
,
panelLWIRWorld
,
color_process
);
plugInFrame
.
add
(
panelLWIRWorld
);
}
...
...
@@ -5672,6 +5675,14 @@ public class Eyesis_Correction implements PlugIn, ActionListener {
ImagePlus
imp_src
=
WindowManager
.
getCurrentImage
();
ImagePlus
imp_mice
=
subtractAverage
(
imp_src
);
imp_mice
.
show
();
}
else
if
(
label
.
equals
(
"Set pair"
))
{
DEBUG_LEVEL
=
MASTER_DEBUG_LEVEL
;
EYESIS_CORRECTIONS
.
setDebug
(
DEBUG_LEVEL
);
ComboMatch
.
openTestPair
();
}
else
if
(
label
.
equals
(
"Warp pair"
))
{
DEBUG_LEVEL
=
MASTER_DEBUG_LEVEL
;
EYESIS_CORRECTIONS
.
setDebug
(
DEBUG_LEVEL
);
ComboMatch
.
testPair
();
}
}
...
...
src/main/java/com/elphel/imagej/orthomosaic/ComboMatch.java
0 → 100644
View file @
98e487e9
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/tileprocessor/ImageDttCPU.java
View file @
98e487e9
...
...
@@ -11624,6 +11624,10 @@ public class ImageDttCPU {
* From Stephan Preibisch's Multithreading.java class. See:
* http://repo.or.cz/w/trakem2.git?a=blob;f=mpi/fruitfly/general/MultiThreading.java;hb=HEAD
*/
public
static
Thread
[]
newThreadArray
()
{
return
newThreadArray
(
THREADS_MAX
);
}
public
static
Thread
[]
newThreadArray
(
int
maxCPUs
)
{
// USED in lwir
int
n_cpus
=
Runtime
.
getRuntime
().
availableProcessors
();
if
(
n_cpus
>
maxCPUs
)
n_cpus
=
maxCPUs
;
...
...
src/main/java/com/elphel/imagej/tileprocessor/TexturedModel.java
View file @
98e487e9
...
...
@@ -2673,12 +2673,14 @@ public class TexturedModel {
}
}
// -------
boolean
mixed_flat
=
false
;
if
(
gsmth_enable
&&
(!
has_sfm
||
gsmth_sfm_gnd
))
{
double
[]
smooth_ground
=
scenes
[
ref_index
].
getSmoothGround
(
clt_parameters
,
has_sfm
,
// boolean sfm_mode,
debugLevel
);
if
(
has_sfm
&&
gsmth_sfm_deviate
)
{
mixed_flat
=
true
;
// Change!
// Use FG for FG, and ground plane as BG?
TileNeibs
tn
=
new
TileNeibs
(
tilesX
,
smooth_ground
.
length
/
tilesX
);
...
...
@@ -3189,7 +3191,7 @@ public class TexturedModel {
String
suffix
=
"-RECT"
;
suffix
+=
"-PIX"
+
pix_size
*
hdr_whs
[
2
];
if
(
gsmth_enable
)
{
suffix
+=
"-FLAT"
;
// flattened ground
suffix
+=
mixed_flat
?
"-FLAT_MIX"
:
"-FLAT_CLN"
;
// flattened ground - mixed or clean
}
scenes
[
ref_index
].
saveDoubleArrayInModelDirectory
(
suffix
+
"-FULL"
,
// String suffix,
...
...
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