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
770a8d96
Commit
770a8d96
authored
Aug 23, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
batch mode for multiple image sets
parent
f5a43005
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
878 additions
and
192 deletions
+878
-192
EyesisCorrectionParameters.java
src/main/java/EyesisCorrectionParameters.java
+94
-19
Eyesis_Correction.java
src/main/java/Eyesis_Correction.java
+96
-14
ImageDtt.java
src/main/java/ImageDtt.java
+1
-1
QuadCLT.java
src/main/java/QuadCLT.java
+635
-111
TileProcessor.java
src/main/java/TileProcessor.java
+52
-47
No files found.
src/main/java/EyesisCorrectionParameters.java
View file @
770a8d96
This diff is collapsed.
Click to expand it.
src/main/java/Eyesis_Correction.java
View file @
770a8d96
...
@@ -544,7 +544,7 @@ private Panel panel1,
...
@@ -544,7 +544,7 @@ private Panel panel1,
panelClt3
.
setLayout
(
new
GridLayout
(
1
,
0
,
5
,
5
));
// rows, columns, vgap, hgap
panelClt3
.
setLayout
(
new
GridLayout
(
1
,
0
,
5
,
5
));
// rows, columns, vgap, hgap
addButton
(
"Setup CLT Batch parameters"
,
panelClt3
,
color_configure
);
addButton
(
"Setup CLT Batch parameters"
,
panelClt3
,
color_configure
);
addButton
(
"Setup CLT parameters"
,
panelClt3
,
color_configure
);
addButton
(
"Setup CLT parameters"
,
panelClt3
,
color_configure
);
addButton
(
"CLT
B
atch process"
,
panelClt3
,
color_process
);
addButton
(
"CLT
b
atch process"
,
panelClt3
,
color_process
);
add
(
panelClt3
);
add
(
panelClt3
);
}
}
pack
();
pack
();
...
@@ -4937,22 +4937,13 @@ private Panel panel1,
...
@@ -4937,22 +4937,13 @@ private Panel panel1,
return
;
return
;
}
}
}
}
/*
public boolean output3d(
EyesisCorrectionParameters.CLTParameters clt_parameters,
EyesisCorrectionParameters.ColorProcParameters colorProcParameters,
EyesisCorrectionParameters.RGBParameters rgbParameters,
final int threadsMax, // maximal number of threads to launch
final boolean updateStatus,
final int debugLevel)
*/
boolean
OK
=
QUAD_CLT
.
output3d
(
boolean
OK
=
QUAD_CLT
.
output3d
(
CLT_PARAMETERS
,
// EyesisCorrectionParameters.DCTParameters dct_parameters,
CLT_PARAMETERS
,
// EyesisCorrectionParameters.DCTParameters dct_parameters,
COLOR_PROC_PARAMETERS
,
//EyesisCorrectionParameters.ColorProcParameters colorProcParameters,
COLOR_PROC_PARAMETERS
,
//EyesisCorrectionParameters.ColorProcParameters colorProcParameters,
RGB_PARAMETERS
,
//EyesisCorrectionParameters.RGBParameters rgbParameters,
RGB_PARAMETERS
,
// EyesisCorrectionParameters.RGBParameters rgbParameters,
THREADS_MAX
,
//final int threadsMax, // maximal number of threads to launch
THREADS_MAX
,
// final int threadsMax, // maximal number of threads to launch
UPDATE_STATUS
,
//final boolean updateStatus,
UPDATE_STATUS
,
// final boolean updateStatus,
false
,
// final boolean batch_mode,
DEBUG_LEVEL
);
//final int debugLevel);
DEBUG_LEVEL
);
//final int debugLevel);
if
(!
OK
)
{
if
(!
OK
)
{
String
msg
=
"Image data not initialized, run 'CLT 3D' command first"
;
String
msg
=
"Image data not initialized, run 'CLT 3D' command first"
;
...
@@ -4970,7 +4961,98 @@ private Panel panel1,
...
@@ -4970,7 +4961,98 @@ private Panel panel1,
}
}
*/
*/
}
else
if
(
label
.
equals
(
"CLT batch process"
))
{
DEBUG_LEVEL
=
MASTER_DEBUG_LEVEL
;
EYESIS_CORRECTIONS
.
setDebug
(
DEBUG_LEVEL
);
if
(
QUAD_CLT
==
null
){
QUAD_CLT
=
new
QuadCLT
(
PROPERTIES
,
EYESIS_CORRECTIONS
,
CORRECTION_PARAMETERS
);
if
(
DEBUG_LEVEL
>
0
){
System
.
out
.
println
(
"Created new QuadCLT instance, will need to read CLT kernels"
);
}
}
String
configPath
=
null
;
if
(
EYESIS_CORRECTIONS
.
correctionsParameters
.
saveSettings
)
{
configPath
=
EYESIS_CORRECTIONS
.
correctionsParameters
.
selectResultsDirectory
(
true
,
true
);
if
(
configPath
==
null
){
String
msg
=
"No results directory selected, command aborted"
;
System
.
out
.
println
(
"Warning: "
+
msg
);
IJ
.
showMessage
(
"Warning"
,
msg
);
return
;
}
configPath
+=
Prefs
.
getFileSeparator
()+
"autoconfig"
+
Prefs
.
getFileSeparator
()+
"autoconfig"
;
try
{
saveTimestampedProperties
(
configPath
,
// full path or null
null
,
// use as default directory if path==null
true
,
PROPERTIES
);
}
catch
(
Exception
e
){
String
msg
=
"Failed to save configuration to "
+
configPath
+
", command aborted"
;
System
.
out
.
println
(
"Error: "
+
msg
);
IJ
.
showMessage
(
"Error"
,
msg
);
return
;
}
}
EYESIS_CORRECTIONS
.
initSensorFiles
(
DEBUG_LEVEL
);
int
numChannels
=
EYESIS_CORRECTIONS
.
getNumChannels
();
NONLIN_PARAMETERS
.
modifyNumChannels
(
numChannels
);
CHANNEL_GAINS_PARAMETERS
.
modifyNumChannels
(
numChannels
);
if
(!
QUAD_CLT
.
CLTKernelsAvailable
()){
if
(
DEBUG_LEVEL
>
0
){
System
.
out
.
println
(
"Reading CLT kernels"
);
}
QUAD_CLT
.
readCLTKernels
(
CLT_PARAMETERS
,
THREADS_MAX
,
UPDATE_STATUS
,
// update status info
DEBUG_LEVEL
);
if
(
DEBUG_LEVEL
>
1
){
QUAD_CLT
.
showCLTKernels
(
THREADS_MAX
,
UPDATE_STATUS
,
// update status info
DEBUG_LEVEL
);
}
}
if
(!
QUAD_CLT
.
geometryCorrectionAvailable
()){
if
(
DEBUG_LEVEL
>
0
){
System
.
out
.
println
(
"Calculating geometryCorrection"
);
}
if
(!
QUAD_CLT
.
initGeometryCorrection
(
DEBUG_LEVEL
+
2
)){
return
;
}
}
///========================================
QUAD_CLT
.
batchCLT3d
(
CLT_PARAMETERS
,
// EyesisCorrectionParameters.DCTParameters dct_parameters,
DEBAYER_PARAMETERS
,
//EyesisCorrectionParameters.DebayerParameters debayerParameters,
NONLIN_PARAMETERS
,
//EyesisCorrectionParameters.NonlinParameters nonlinParameters,
COLOR_PROC_PARAMETERS
,
//EyesisCorrectionParameters.ColorProcParameters colorProcParameters,
CHANNEL_GAINS_PARAMETERS
,
//CorrectionColorProc.ColorGainsParameters channelGainParameters,
RGB_PARAMETERS
,
//EyesisCorrectionParameters.RGBParameters rgbParameters,
EQUIRECTANGULAR_PARAMETERS
,
// EyesisCorrectionParameters.EquirectangularParameters equirectangularParameters,
CONVOLVE_FFT_SIZE
,
//int convolveFFTSize, // 128 - fft size, kernel size should be size/2
THREADS_MAX
,
//final int threadsMax, // maximal number of threads to launch
UPDATE_STATUS
,
//final boolean updateStatus,
DEBUG_LEVEL
);
//final int debugLevel);
if
(
configPath
!=
null
)
{
saveTimestampedProperties
(
// save config again
configPath
,
// full path or null
null
,
// use as default directory if path==null
true
,
PROPERTIES
);
}
return
;
return
;
...
...
src/main/java/ImageDtt.java
View file @
770a8d96
...
@@ -1042,7 +1042,7 @@ public class ImageDtt {
...
@@ -1042,7 +1042,7 @@ public class ImageDtt {
final
int
corr_size
=
transform_size
*
2
-
1
;
final
int
corr_size
=
transform_size
*
2
-
1
;
final
int
[][]
transpose_indices
=
new
int
[
corr_size
*(
corr_size
-
1
)/
2
][
2
];
final
int
[][]
transpose_indices
=
new
int
[
corr_size
*(
corr_size
-
1
)/
2
][
2
];
int
indx
=
0
;
int
indx
=
0
;
if
(
disparity_corr
!=
0.0
){
if
(
(
globalDebugLevel
>
-
1
)
&&
(
disparity_corr
!=
0.0
)
){
System
.
out
.
println
(
String
.
format
(
"Using manual infinity disparity correction of %8.5f pixels"
,
disparity_corr
));
System
.
out
.
println
(
String
.
format
(
"Using manual infinity disparity correction of %8.5f pixels"
,
disparity_corr
));
}
}
for
(
int
i
=
0
;
i
<
corr_size
-
1
;
i
++){
for
(
int
i
=
0
;
i
<
corr_size
-
1
;
i
++){
...
...
src/main/java/QuadCLT.java
View file @
770a8d96
This diff is collapsed.
Click to expand it.
src/main/java/TileProcessor.java
View file @
770a8d96
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