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
Show 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
...
...
@@ -5017,6 +5017,14 @@ private Panel panel1,
if
(
DEBUG_LEVEL
>
-
2
){
System
.
out
.
println
(
"++++++++++++++ Calculating combined correlations ++++++++++++++"
);
}
// reset if ran after 3d model to save memory
if
(
QUAD_CLT
.
tp
!=
null
)
{
QUAD_CLT
.
tp
.
clt_3d_passes
=
null
;
// resetCLTPasses();
}
if
(
QUAD_CLT_AUX
.
tp
!=
null
)
{
QUAD_CLT_AUX
.
tp
.
clt_3d_passes
=
null
;
// resetCLTPasses();
}
try
{
TWO_QUAD_CLT
.
processCLTQuadCorrPairs
(
QUAD_CLT
,
// QuadCLT quadCLT_main,
...
...
@@ -5024,8 +5032,8 @@ private Panel panel1,
CLT_PARAMETERS
,
// EyesisCorrectionParameters.DCTParameters dct_parameters,
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,
// 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,
...
...
src/main/java/QuadCLT.java
View file @
c2de0cdf
...
...
@@ -8915,28 +8915,15 @@ public class QuadCLT {
int
image_width
=
imp
.
getWidth
();
int
image_height
=
imp
.
getHeight
();
double
scale_h
=
1.0
*
correctionsParameters
.
thumb_width
/
image_width
;
double
scale_v
=
1.0
*
correctionsParameters
.
thumb_height
/
image_height
;
// double scale = Math.min(scale_h, scale_v) /correctionsParameters.thumb_size;
double
scale
=
scale_h
/
correctionsParameters
.
thumb_size
;
double
scale_h
=
1.0
*
(
correctionsParameters
.
thumb_width
+
1
)/
image_width
;
double
scale_v
=
1.0
*
(
correctionsParameters
.
thumb_height
+
1
)/
image_height
;
double
scale
=
((
scale_h
>
scale_v
)
?
scale_h
:
scale_v
)
/
correctionsParameters
.
thumb_size
;
// ImageProcessor ip = imp.getChannelProcessor();
ImageProcessor
ip
=
imp
.
getProcessor
().
duplicate
();
ip
.
setInterpolationMethod
(
ImageProcessor
.
BICUBIC
);
// ip.setInterpolationMethod(ImageProcessor.BILINEAR);
ip
.
blurGaussian
(
2.0
);
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
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
);
...
...
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 {
clt_parameters
.
batch_run
?-
1
:
1
,
// -1, // debugLevel, // final int debugLevel)
clt_parameters
.
tileX
,
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?
...
...
src/main/java/TwoQuadCLT.java
View file @
c2de0cdf
...
...
@@ -4921,7 +4921,6 @@ if (debugLevel > -100) return true; // temporarily !
double
disparity_offset
,
QuadCLT
quadCLT_main
,
// tiles should be set
QuadCLT
quadCLT_aux
,
// double [][] src_bimap,
double
[]
disparity
,
double
[]
strength
,
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