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
c2de0cdf
Commit
c2de0cdf
authored
Jun 24, 2018
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
695dfdbd
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
555 deletions
+46
-555
Eyesis_Correction.java
src/main/java/Eyesis_Correction.java
+39
-31
QuadCLT.java
src/main/java/QuadCLT.java
+3
-16
SuperTiles.java
src/main/java/SuperTiles.java
+2
-257
TilePlanes.java
src/main/java/TilePlanes.java
+1
-249
TileProcessor.java
src/main/java/TileProcessor.java
+1
-1
TwoQuadCLT.java
src/main/java/TwoQuadCLT.java
+0
-1
No files found.
src/main/java/Eyesis_Correction.java
View file @
c2de0cdf
...
@@ -5011,39 +5011,47 @@ private Panel panel1,
...
@@ -5011,39 +5011,47 @@ private Panel panel1,
public
boolean
getPairImages2
()
{
public
boolean
getPairImages2
()
{
if
(!
prepareRigImages
())
return
false
;
if
(!
prepareRigImages
())
return
false
;
String
configPath
=
getSaveCongigPath
();
String
configPath
=
getSaveCongigPath
();
if
(
configPath
.
equals
(
"ABORT"
))
return
false
;
if
(
configPath
.
equals
(
"ABORT"
))
return
false
;
if
(
DEBUG_LEVEL
>
-
2
){
if
(
DEBUG_LEVEL
>
-
2
){
System
.
out
.
println
(
"++++++++++++++ Calculating combined correlations ++++++++++++++"
);
System
.
out
.
println
(
"++++++++++++++ Calculating combined correlations ++++++++++++++"
);
}
}
try
{
// reset if ran after 3d model to save memory
TWO_QUAD_CLT
.
processCLTQuadCorrPairs
(
if
(
QUAD_CLT
.
tp
!=
null
)
{
QUAD_CLT
,
// QuadCLT quadCLT_main,
QUAD_CLT
.
tp
.
clt_3d_passes
=
null
;
// resetCLTPasses();
QUAD_CLT_AUX
,
// QuadCLT quadCLT_aux,
}
CLT_PARAMETERS
,
// EyesisCorrectionParameters.DCTParameters dct_parameters,
if
(
QUAD_CLT_AUX
.
tp
!=
null
)
{
DEBAYER_PARAMETERS
,
//EyesisCorrectionParameters.DebayerParameters debayerParameters,
QUAD_CLT_AUX
.
tp
.
clt_3d_passes
=
null
;
// resetCLTPasses();
COLOR_PROC_PARAMETERS
,
//EyesisCorrectionParameters.ColorProcParameters colorProcParameters,
}
// CHANNEL_GAINS_PARAMETERS, //CorrectionColorProc.ColorGainsParameters channelGainParameters,
// CHANNEL_GAINS_PARAMETERS_AUX, //CorrectionColorProc.ColorGainsParameters channelGainParameters_aux,
RGB_PARAMETERS
,
//EyesisCorrectionParameters.RGBParameters rgbParameters,
THREADS_MAX
,
//final int threadsMax, // maximal number of threads to launch
UPDATE_STATUS
,
//final boolean updateStatus,
DEBUG_LEVEL
);
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
//final int debugLevel);
QUAD_CLT
.
tp
.
clt_3d_passes
=
null
;
// resetCLTPasses(); // so running "Ground truth" after would be OK
QUAD_CLT_AUX
.
tp
.
clt_3d_passes
=
null
;
//.resetCLTPasses();
if
(
configPath
!=
null
)
{
try
{
saveTimestampedProperties
(
// save config again
TWO_QUAD_CLT
.
processCLTQuadCorrPairs
(
configPath
,
// full path or null
QUAD_CLT
,
// QuadCLT quadCLT_main,
null
,
// use as default directory if path==null
QUAD_CLT_AUX
,
// QuadCLT quadCLT_aux,
true
,
CLT_PARAMETERS
,
// EyesisCorrectionParameters.DCTParameters dct_parameters,
PROPERTIES
);
DEBAYER_PARAMETERS
,
//EyesisCorrectionParameters.DebayerParameters debayerParameters,
}
COLOR_PROC_PARAMETERS
,
//EyesisCorrectionParameters.ColorProcParameters colorProcParameters,
// CHANNEL_GAINS_PARAMETERS, //CorrectionColorProc.ColorGainsParameters channelGainParameters,
// CHANNEL_GAINS_PARAMETERS_AUX, //CorrectionColorProc.ColorGainsParameters channelGainParameters_aux,
RGB_PARAMETERS
,
//EyesisCorrectionParameters.RGBParameters rgbParameters,
THREADS_MAX
,
//final int threadsMax, // maximal number of threads to launch
UPDATE_STATUS
,
//final boolean updateStatus,
DEBUG_LEVEL
);
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
//final int debugLevel);
QUAD_CLT
.
tp
.
clt_3d_passes
=
null
;
// resetCLTPasses(); // so running "Ground truth" after would be OK
QUAD_CLT_AUX
.
tp
.
clt_3d_passes
=
null
;
//.resetCLTPasses();
if
(
configPath
!=
null
)
{
saveTimestampedProperties
(
// save config again
configPath
,
// full path or null
null
,
// use as default directory if path==null
true
,
PROPERTIES
);
}
return
true
;
return
true
;
}
}
...
...
src/main/java/QuadCLT.java
View file @
c2de0cdf
...
@@ -8915,28 +8915,15 @@ public class QuadCLT {
...
@@ -8915,28 +8915,15 @@ public class QuadCLT {
int
image_width
=
imp
.
getWidth
();
int
image_width
=
imp
.
getWidth
();
int
image_height
=
imp
.
getHeight
();
int
image_height
=
imp
.
getHeight
();
double
scale_h
=
1.0
*
correctionsParameters
.
thumb_width
/
image_width
;
double
scale_h
=
1.0
*
(
correctionsParameters
.
thumb_width
+
1
)/
image_width
;
double
scale_v
=
1.0
*
correctionsParameters
.
thumb_height
/
image_height
;
double
scale_v
=
1.0
*
(
correctionsParameters
.
thumb_height
+
1
)/
image_height
;
// double scale = Math.min(scale_h, scale_v) /correctionsParameters.thumb_size;
double
scale
=
((
scale_h
>
scale_v
)
?
scale_h
:
scale_v
)
/
correctionsParameters
.
thumb_size
;
double
scale
=
scale_h
/
correctionsParameters
.
thumb_size
;
// ImageProcessor ip = imp.getChannelProcessor();
ImageProcessor
ip
=
imp
.
getProcessor
().
duplicate
();
ImageProcessor
ip
=
imp
.
getProcessor
().
duplicate
();
ip
.
setInterpolationMethod
(
ImageProcessor
.
BICUBIC
);
ip
.
setInterpolationMethod
(
ImageProcessor
.
BICUBIC
);
// ip.setInterpolationMethod(ImageProcessor.BILINEAR);
ip
.
blurGaussian
(
2.0
);
ip
.
blurGaussian
(
2.0
);
ip
.
scale
(
scale
,
scale
);
ip
.
scale
(
scale
,
scale
);
// Rectangle rs = new Rectangle(
// (int)Math.round(0.5*image_width*(1.0-scale)),
// (int)Math.round(0.5*image_height*(1.0-scale)),
// (int)Math.round(image_width*scale),
// (int)Math.round(image_height*scale));
// int scaled_width = rs.width; // ip.getWidth();
// int scaled_height = rs.height; // ip.getHeight();
// int lm = (int) Math.round ((scaled_width-correctionsParameters.thumb_width)* correctionsParameters.thumb_h_center);
// int tm = (int) Math.round ((scaled_height-correctionsParameters.thumb_height)* correctionsParameters.thumb_v_center);
int
lm
=
(
int
)
Math
.
round
(((
image_width
*
scale
)-
correctionsParameters
.
thumb_width
)*
correctionsParameters
.
thumb_h_center
+
(
0.5
*
image_width
*(
1.0
-
scale
)));
int
lm
=
(
int
)
Math
.
round
(((
image_width
*
scale
)-
correctionsParameters
.
thumb_width
)*
correctionsParameters
.
thumb_h_center
+
(
0.5
*
image_width
*(
1.0
-
scale
)));
int
tm
=
(
int
)
Math
.
round
(((
image_height
*
scale
)-
correctionsParameters
.
thumb_height
)*
correctionsParameters
.
thumb_v_center
+
(
0.5
*
image_height
*(
1.0
-
scale
)));
int
tm
=
(
int
)
Math
.
round
(((
image_height
*
scale
)-
correctionsParameters
.
thumb_height
)*
correctionsParameters
.
thumb_v_center
+
(
0.5
*
image_height
*(
1.0
-
scale
)));
Rectangle
r
=
new
Rectangle
(
lm
,
tm
,
correctionsParameters
.
thumb_width
,
correctionsParameters
.
thumb_height
);
Rectangle
r
=
new
Rectangle
(
lm
,
tm
,
correctionsParameters
.
thumb_width
,
correctionsParameters
.
thumb_height
);
...
...
src/main/java/SuperTiles.java
View file @
c2de0cdf
This diff is collapsed.
Click to expand it.
src/main/java/TilePlanes.java
View file @
c2de0cdf
This diff is collapsed.
Click to expand it.
src/main/java/TileProcessor.java
View file @
c2de0cdf
...
@@ -5377,7 +5377,7 @@ public class TileProcessor {
...
@@ -5377,7 +5377,7 @@ public class TileProcessor {
clt_parameters
.
batch_run
?-
1
:
1
,
// -1, // debugLevel, // final int debugLevel)
clt_parameters
.
batch_run
?-
1
:
1
,
// -1, // debugLevel, // final int debugLevel)
clt_parameters
.
tileX
,
clt_parameters
.
tileX
,
clt_parameters
.
tileY
);
clt_parameters
.
tileY
);
// showDoubleFloatArrays sdfa_instance = null;
// showDoubleFloatArrays sdfa_instance = null;
- already no state capitol plane
// if (debugLevel > -1) sdfa_instance = new showDoubleFloatArrays(); // just for debugging?
// if (debugLevel > -1) sdfa_instance = new showDoubleFloatArrays(); // just for debugging?
...
...
src/main/java/TwoQuadCLT.java
View file @
c2de0cdf
...
@@ -4921,7 +4921,6 @@ if (debugLevel > -100) return true; // temporarily !
...
@@ -4921,7 +4921,6 @@ if (debugLevel > -100) return true; // temporarily !
double
disparity_offset
,
double
disparity_offset
,
QuadCLT
quadCLT_main
,
// tiles should be set
QuadCLT
quadCLT_main
,
// tiles should be set
QuadCLT
quadCLT_aux
,
QuadCLT
quadCLT_aux
,
// double [][] src_bimap,
double
[]
disparity
,
double
[]
disparity
,
double
[]
strength
,
double
[]
strength
,
EyesisCorrectionParameters
.
CLTParameters
clt_parameters
,
EyesisCorrectionParameters
.
CLTParameters
clt_parameters
,
...
...
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