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
ab470e41
Commit
ab470e41
authored
May 13, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implementing swapping of supertile connections
parent
508ee2cb
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
641 additions
and
26 deletions
+641
-26
SuperTiles.java
src/main/java/SuperTiles.java
+591
-25
TileProcessor.java
src/main/java/TileProcessor.java
+26
-1
TileSurface.java
src/main/java/TileSurface.java
+24
-0
No files found.
src/main/java/SuperTiles.java
View file @
ab470e41
This diff is collapsed.
Click to expand it.
src/main/java/TileProcessor.java
View file @
ab470e41
...
@@ -3428,8 +3428,33 @@ public class TileProcessor {
...
@@ -3428,8 +3428,33 @@ public class TileProcessor {
0
,
// final int debugLevel)
0
,
// final int debugLevel)
clt_parameters
.
tileX
,
clt_parameters
.
tileX
,
clt_parameters
.
tileY
);
clt_parameters
.
tileY
);
st
.
detectTriangularConflicts
(
int
[][][]
conflicts0
=
st
.
detectTriangularConflicts
(
1
);
// final int debugLevel)
1
);
// final int debugLevel)
// just testing
int
[]
dual_tri_results
=
st
.
resolveDualTriangularConflicts
(
conflicts0
,
// int [][][] conflicts,
clt_parameters
.
plMaxEigen
,
0.5
,
// double orthoWeight,
0.25
,
// double diagonalWeight,
clt_parameters
.
plPreferDisparity
,
1
,
// final int debugLevel)
clt_parameters
.
tileX
,
clt_parameters
.
tileY
);
System
.
out
.
println
(
"dual_tri_results (success/failures) = "
+
dual_tri_results
[
0
]+
" / "
+
dual_tri_results
[
1
]);
st
.
testResoveTriangle
(
clt_parameters
.
plWorstWorsening
,
// final double worst_worsening,
clt_parameters
.
plWeakWorsening
,
// final double worst_worsening,
clt_parameters
.
plOKMergeEigen
,
// final double okMergeEigen,
clt_parameters
.
plMaxWorldSin2
,
// final double maxWorldSin2,
clt_parameters
.
plDispNorm
,
clt_parameters
.
plMaxEigen
,
clt_parameters
.
plPreferDisparity
,
conflicts0
,
// int [][][] conflicts,
1
,
// final int debugLevel)
clt_parameters
.
tileX
,
clt_parameters
.
tileY
);
if
(
clt_parameters
.
plSplitApply
)
{
if
(
clt_parameters
.
plSplitApply
)
{
while
(
true
)
{
while
(
true
)
{
...
...
src/main/java/TileSurface.java
View file @
ab470e41
...
@@ -254,6 +254,30 @@ public class TileSurface {
...
@@ -254,6 +254,30 @@ public class TileSurface {
public
int
opposite
(
int
dir
){
public
int
opposite
(
int
dir
){
return
(
dir
+
dirs
/
2
)
%
dirs
;
return
(
dir
+
dirs
/
2
)
%
dirs
;
}
}
/**
* Get x,y pair from index
* @param indx element index
* @return array of {x,y}
*/
int
[]
getXY
(
int
indx
)
{
int
[]
xy
=
{
indx
%
sizeX
,
indx
/
sizeX
};
return
xy
;
}
/**
* Get element index from x and y
* @param x horizontal position
* @param y vertical position
* @return element linescan index
*/
int
getIndex
(
int
x
,
int
y
){
return
y
*
sizeX
+
x
;
}
/**
/**
* Get 2d element index after step N, NE, ... NW. Returns -1 if leaving array
* Get 2d element index after step N, NE, ... NW. Returns -1 if leaving array
* @param indx start index
* @param indx start index
...
...
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