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
dc9a97a8
Commit
dc9a97a8
authored
Mar 30, 2024
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added "roundness" and dual-scene for 100m
parent
33f052a0
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
113 additions
and
59 deletions
+113
-59
ComboMatch.java
src/main/java/com/elphel/imagej/orthomosaic/ComboMatch.java
+4
-0
ItemMatch.java
src/main/java/com/elphel/imagej/orthomosaic/ItemMatch.java
+31
-0
OrthoMap.java
src/main/java/com/elphel/imagej/orthomosaic/OrthoMap.java
+1
-0
OrthoMapsCollection.java
...va/com/elphel/imagej/orthomosaic/OrthoMapsCollection.java
+77
-59
No files found.
src/main/java/com/elphel/imagej/orthomosaic/ComboMatch.java
View file @
dc9a97a8
...
@@ -916,6 +916,10 @@ public class ComboMatch {
...
@@ -916,6 +916,10 @@ public class ComboMatch {
zoom_lev
,
// int zoom_lev,
zoom_lev
,
// int zoom_lev,
debugLevel
);
// final int debugLevel)
debugLevel
);
// final int debugLevel)
if
(
warp
==
null
)
{
System
.
out
.
println
(
"Failed correlateOrthoPair()"
);
return
false
;
}
//maps_collection.ortho_maps[gpu_pair[1]]
//maps_collection.ortho_maps[gpu_pair[1]]
if
(
process_correlation
)
{
if
(
process_correlation
)
{
if
(
update_match
)
{
if
(
update_match
)
{
...
...
src/main/java/com/elphel/imagej/orthomosaic/ItemMatch.java
View file @
dc9a97a8
...
@@ -57,10 +57,41 @@ public class ItemMatch {
...
@@ -57,10 +57,41 @@ public class ItemMatch {
}
}
return
match
.
getMatches
();
return
match
.
getMatches
();
}
}
public
double
[]
getMatchValues
(
GroundObjectPattern
groundObjectPattern
)
{
public
double
[]
getMatchValues
(
GroundObjectPattern
groundObjectPattern
)
{
return
getMatchValues
(
groundObjectPattern
.
getPatternPath
());
return
getMatchValues
(
groundObjectPattern
.
getPatternPath
());
}
}
/**
* Get ratio of the worst and best partial pattern correlation values
* @param groundObjectPattern
* @return
*/
public
double
getRoundness
(
GroundObjectPattern
groundObjectPattern
)
{
return
getRoundness
(
groundObjectPattern
.
getPatternPath
());
}
public
double
getRoundness
(
String
pattern_path
)
{
ItemPatternMatch
match
=
pattern_matches
.
get
(
pattern_path
);
if
(
match
==
null
)
{
System
.
out
.
println
(
"No matches found for pattern "
+
pattern_path
);
return
Double
.
NaN
;
}
double
[]
matches
=
match
.
getMatches
();
double
best
=
matches
[
1
];
double
worst
=
matches
[
1
];
for
(
int
i
=
1
;
i
<
matches
.
length
;
i
++)
{
if
(
matches
[
i
]
<
worst
)
{
worst
=
matches
[
i
];
}
if
(
matches
[
i
]
>
best
)
{
best
=
matches
[
i
];
}
}
return
worst
/
best
;
}
public
double
getMatchValue
(
String
pattern_path
,
int
indx
)
{
public
double
getMatchValue
(
String
pattern_path
,
int
indx
)
{
ItemPatternMatch
match
=
pattern_matches
.
get
(
pattern_path
);
ItemPatternMatch
match
=
pattern_matches
.
get
(
pattern_path
);
if
(
match
==
null
)
{
if
(
match
==
null
)
{
...
...
src/main/java/com/elphel/imagej/orthomosaic/OrthoMap.java
View file @
dc9a97a8
...
@@ -2193,6 +2193,7 @@ public class OrthoMap implements Comparable <OrthoMap>, Serializable{
...
@@ -2193,6 +2193,7 @@ public class OrthoMap implements Comparable <OrthoMap>, Serializable{
switch
(
ipatterns
[
n
][
i
])
{
switch
(
ipatterns
[
n
][
i
])
{
case
1
:
dbg_img
[
n
][
i
]
=
1.0
;
break
;
case
1
:
dbg_img
[
n
][
i
]
=
1.0
;
break
;
case
2
:
dbg_img
[
n
][
i
]
=
-
1.0
;
break
;
case
2
:
dbg_img
[
n
][
i
]
=
-
1.0
;
break
;
case
3
:
dbg_img
[
n
][
i
]
=
-
2.0
;
break
;
}
}
}
}
}
}
...
...
src/main/java/com/elphel/imagej/orthomosaic/OrthoMapsCollection.java
View file @
dc9a97a8
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