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
7dac691f
Commit
7dac691f
authored
Jun 11, 2018
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Developing street pole distance measurement with dual-quad rig
parent
41b89aee
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1720 additions
and
71 deletions
+1720
-71
PoleProcessor.java
src/main/java/PoleProcessor.java
+1172
-47
TileNeibs.java
src/main/java/TileNeibs.java
+40
-0
TwoQuadCLT.java
src/main/java/TwoQuadCLT.java
+508
-24
No files found.
src/main/java/PoleProcessor.java
View file @
7dac691f
This diff is collapsed.
Click to expand it.
src/main/java/TileNeibs.java
View file @
7dac691f
...
...
@@ -472,4 +472,44 @@ public class TileNeibs{
}
return
mx
;
}
public
int
removeFewNeibs
(
boolean
[]
selection
,
// should be the same size
int
min_neibs
)
{
int
num_total_removed
=
0
;
int
l
=
getLength
();
while
(
true
)
{
int
num_removed
=
0
;
boolean
[]
to_remove
=
new
boolean
[
l
];
for
(
int
indx
=
0
;
indx
<
l
;
indx
++)
if
(
selection
[
indx
]){
int
num_neibs
=
0
;
label_neibs:
{
for
(
int
dir
=
0
;
dir
<
8
;
dir
++)
{
int
indx1
=
getNeibIndex
(
indx
,
dir
);
if
((
indx1
>=
0
)
&&
selection
[
indx1
])
{
num_neibs
++;
if
(
num_neibs
>=
min_neibs
)
{
break
label_neibs
;
}
}
}
to_remove
[
indx
]
=
true
;
num_removed
++;
}
}
if
(
num_removed
>
0
)
{
for
(
int
i
=
0
;
i
<
l
;
i
++)
if
(
to_remove
[
i
])
{
selection
[
i
]
=
false
;
}
num_total_removed
+=
num_removed
;
}
else
{
break
;
}
}
return
num_total_removed
;
}
}
src/main/java/TwoQuadCLT.java
View file @
7dac691f
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