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
78a62e6f
Commit
78a62e6f
authored
Dec 09, 2021
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
before cuda textures update
parent
16b4ece4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
41 deletions
+54
-41
Eyesis_Correction.java
.../java/com/elphel/imagej/correction/Eyesis_Correction.java
+6
-2
QuadCLTCPU.java
...main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
+1
-1
TwoQuadCLT.java
...main/java/com/elphel/imagej/tileprocessor/TwoQuadCLT.java
+47
-38
No files found.
src/main/java/com/elphel/imagej/correction/Eyesis_Correction.java
View file @
78a62e6f
...
@@ -6198,8 +6198,12 @@ private Panel panel1,
...
@@ -6198,8 +6198,12 @@ private Panel panel1,
// TODO Auto-generated catch block
// TODO Auto-generated catch block
e
.
printStackTrace
();
e
.
printStackTrace
();
}
//final int debugLevel);
}
//final int debugLevel);
QUAD_CLT
.
tp
.
clt_3d_passes
=
null
;
// resetCLTPasses(); // so running "Ground truth" after would be OK
if
(
QUAD_CLT
.
tp
!=
null
)
{
QUAD_CLT_AUX
.
tp
.
clt_3d_passes
=
null
;
//.resetCLTPasses();
QUAD_CLT
.
tp
.
clt_3d_passes
=
null
;
// resetCLTPasses();
}
if
(
QUAD_CLT_AUX
.
tp
!=
null
)
{
QUAD_CLT_AUX
.
tp
.
clt_3d_passes
=
null
;
// resetCLTPasses();
}
if
(
configPath
!=
null
)
{
if
(
configPath
!=
null
)
{
saveTimestampedProperties
(
// save config again
saveTimestampedProperties
(
// save config again
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
View file @
78a62e6f
...
@@ -556,7 +556,7 @@ public class QuadCLTCPU {
...
@@ -556,7 +556,7 @@ public class QuadCLTCPU {
threadsMax
,
// maximal number of threads to launch
threadsMax
,
// maximal number of threads to launch
updateStatus
,
updateStatus
,
debugLevel
);
debugLevel
);
if
(
isMonochrome
())
{
if
(
isMonochrome
())
{
// only [2] is non-zero
this
.
dsrbg
=
new
double
[][]
{
this
.
dsrbg
=
new
double
[][]
{
disparity
,
disparity
,
strength
,
strength
,
...
...
src/main/java/com/elphel/imagej/tileprocessor/TwoQuadCLT.java
View file @
78a62e6f
...
@@ -376,7 +376,7 @@ public class TwoQuadCLT {
...
@@ -376,7 +376,7 @@ public class TwoQuadCLT {
final
int
debugLevel
)
throws
Exception
final
int
debugLevel
)
throws
Exception
{
{
this
.
startTime
=
System
.
nanoTime
();
this
.
startTime
=
System
.
nanoTime
()
+
0
;
String
[]
sourceFiles
=
quadCLT_main
.
correctionsParameters
.
getSourcePaths
();
String
[]
sourceFiles
=
quadCLT_main
.
correctionsParameters
.
getSourcePaths
();
QuadCLT
.
SetChannels
[]
set_channels_main
=
quadCLT_main
.
setChannels
(
debugLevel
);
QuadCLT
.
SetChannels
[]
set_channels_main
=
quadCLT_main
.
setChannels
(
debugLevel
);
QuadCLT
.
SetChannels
[]
set_channels_aux
=
quadCLT_aux
.
setChannels
(
debugLevel
);
QuadCLT
.
SetChannels
[]
set_channels_aux
=
quadCLT_aux
.
setChannels
(
debugLevel
);
...
@@ -399,7 +399,7 @@ public class TwoQuadCLT {
...
@@ -399,7 +399,7 @@ public class TwoQuadCLT {
if
(!
quadCLT_aux
.
isLwir
()
&&
!(
set_channels_aux
==
null
))
{
if
(!
quadCLT_aux
.
isLwir
()
&&
!(
set_channels_aux
==
null
))
{
referenceExposures_aux
=
quadCLT_aux
.
eyesisCorrections
.
calcReferenceExposures
(
debugLevel
);
referenceExposures_aux
=
quadCLT_aux
.
eyesisCorrections
.
calcReferenceExposures
(
debugLevel
);
}
}
for
(
int
nSet
=
0
;
nSet
<
set_channels
_main
.
length
;
nSet
++){
for
(
int
nSet
=
0
;
nSet
<
set_channels
.
length
;
nSet
++){
// check it is the same set for both cameras
// check it is the same set for both cameras
/*
/*
if (set_channels_aux.length <= nSet ) {
if (set_channels_aux.length <= nSet ) {
...
@@ -434,7 +434,9 @@ public class TwoQuadCLT {
...
@@ -434,7 +434,9 @@ public class TwoQuadCLT {
boolean
[][]
saturation_imp_aux
=
((
channelFiles_aux
!=
null
)
&&
(
clt_parameters
.
sat_level
>
0.0
))?
new
boolean
[
channelFiles_aux
.
length
][]
:
null
;
boolean
[][]
saturation_imp_aux
=
((
channelFiles_aux
!=
null
)
&&
(
clt_parameters
.
sat_level
>
0.0
))?
new
boolean
[
channelFiles_aux
.
length
][]
:
null
;
double
[]
scaleExposures_main
=
(
channelFiles_main
!=
null
)
?
(
new
double
[
channelFiles_main
.
length
])
:
null
;
double
[]
scaleExposures_main
=
(
channelFiles_main
!=
null
)
?
(
new
double
[
channelFiles_main
.
length
])
:
null
;
double
[]
scaleExposures_aux
=
(
channelFiles_aux
!=
null
)
?
(
new
double
[
channelFiles_aux
.
length
])
:
null
;
double
[]
scaleExposures_aux
=
(
channelFiles_aux
!=
null
)
?
(
new
double
[
channelFiles_aux
.
length
])
:
null
;
ImagePlus
[]
imp_srcs_main
=
quadCLT_main
.
conditionImageSet
(
ImagePlus
[]
imp_srcs_main
=
new
ImagePlus
[
0
];
if
(
nSet_main
>=
0
)
{
imp_srcs_main
=
quadCLT_main
.
conditionImageSet
(
clt_parameters
,
// EyesisCorrectionParameters.CLTParameters clt_parameters,
clt_parameters
,
// EyesisCorrectionParameters.CLTParameters clt_parameters,
colorProcParameters
,
// ColorProcParameters colorProcParameters, //
colorProcParameters
,
// ColorProcParameters colorProcParameters, //
sourceFiles
,
// String [] sourceFiles,
sourceFiles
,
// String [] sourceFiles,
...
@@ -445,8 +447,18 @@ public class TwoQuadCLT {
...
@@ -445,8 +447,18 @@ public class TwoQuadCLT {
saturation_imp_main
,
//output // boolean [][] saturation_imp,
saturation_imp_main
,
//output // boolean [][] saturation_imp,
threadsMax
,
// int threadsMax,
threadsMax
,
// int threadsMax,
debugLevel
);
// int debugLevel);
debugLevel
);
// int debugLevel);
ExportForGPUDevelopment
.
processCLTQuadCorrPairForGPU
(
save_prefix
,
// String save_prefix,
quadCLT_main
,
// QuadCLT quadCLT,
imp_srcs_main
,
// ImagePlus [] imp_quad,
clt_parameters
);
// CLTParameters clt_parameters);
}
else
{
System
.
out
.
println
(
"No images to export data for the main (RGB) camera"
);
}
ImagePlus
[]
imp_srcs_aux
=
quadCLT_aux
.
conditionImageSet
(
ImagePlus
[]
imp_srcs_aux
=
new
ImagePlus
[
0
];
if
(
nSet_aux
>=
0
)
{
imp_srcs_aux
=
quadCLT_aux
.
conditionImageSet
(
clt_parameters
,
// EyesisCorrectionParameters.CLTParameters clt_parameters,
clt_parameters
,
// EyesisCorrectionParameters.CLTParameters clt_parameters,
colorProcParameters_aux
,
// ColorProcParameters colorProcParameters, //
colorProcParameters_aux
,
// ColorProcParameters colorProcParameters, //
sourceFiles
,
// String [] sourceFiles,
sourceFiles
,
// String [] sourceFiles,
...
@@ -457,19 +469,14 @@ public class TwoQuadCLT {
...
@@ -457,19 +469,14 @@ public class TwoQuadCLT {
saturation_imp_aux
,
//output // boolean [][] saturation_imp,
saturation_imp_aux
,
//output // boolean [][] saturation_imp,
threadsMax
,
// int threadsMax,
threadsMax
,
// int threadsMax,
debugLevel
);
// int debugLevel);
debugLevel
);
// int debugLevel);
// Tempporarily processing individually with the old code
ExportForGPUDevelopment
.
processCLTQuadCorrPairForGPU
(
save_prefix
,
// String save_prefix,
quadCLT_main
,
// QuadCLT quadCLT,
imp_srcs_main
,
// ImagePlus [] imp_quad,
clt_parameters
);
// CLTParameters clt_parameters);
ExportForGPUDevelopment
.
processCLTQuadCorrPairForGPU
(
ExportForGPUDevelopment
.
processCLTQuadCorrPairForGPU
(
save_prefix
,
// String save_prefix,
save_prefix
,
// String save_prefix,
quadCLT_aux
,
// QuadCLT quadCLT,
quadCLT_aux
,
// QuadCLT quadCLT,
imp_srcs_aux
,
// ImagePlus [] imp_quad,
imp_srcs_aux
,
// ImagePlus [] imp_quad,
clt_parameters
);
// CLTParameters clt_parameters);
clt_parameters
);
// CLTParameters clt_parameters);
}
else
{
System
.
out
.
println
(
"No images to export data for the AUX (LWIR) camera"
);
}
Runtime
.
getRuntime
().
gc
();
Runtime
.
getRuntime
().
gc
();
if
(
debugLevel
>-
1
)
System
.
out
.
println
(
"Processing set "
+(
nSet
+
1
)+
" (of "
+
set_channels_aux
.
length
+
") finished at "
+
if
(
debugLevel
>-
1
)
System
.
out
.
println
(
"Processing set "
+(
nSet
+
1
)+
" (of "
+
set_channels_aux
.
length
+
") finished at "
+
...
@@ -482,7 +489,9 @@ public class TwoQuadCLT {
...
@@ -482,7 +489,9 @@ public class TwoQuadCLT {
return
;
return
;
}
}
}
}
System
.
out
.
println
(
"prepareFilesForGPUDebug(): processing "
+(
quadCLT_main
.
getTotalFiles
(
set_channels_main
)+
quadCLT_aux
.
getTotalFiles
(
set_channels_aux
))+
" files ("
+
set_channels_main
.
length
+
" file sets) finished at "
+
int
num_main
=
((
quadCLT_main
!=
null
)
&&
(
set_channels_main
!=
null
))?
quadCLT_main
.
getTotalFiles
(
set_channels_main
)
:
0
;
int
num_aux
=
((
quadCLT_aux
!=
null
)
&&
(
set_channels_aux
!=
null
))?
quadCLT_aux
.
getTotalFiles
(
set_channels_aux
)
:
0
;
System
.
out
.
println
(
"prepareFilesForGPUDebug(): processing "
+(
num_main
+
num_aux
)+
" files ("
+
set_channels
.
length
+
" file sets) finished at "
+
IJ
.
d2s
(
0.000000001
*(
System
.
nanoTime
()-
this
.
startTime
),
3
)+
" sec, --- Free memory="
+
Runtime
.
getRuntime
().
freeMemory
()+
" (of "
+
Runtime
.
getRuntime
().
totalMemory
()+
")"
);
IJ
.
d2s
(
0.000000001
*(
System
.
nanoTime
()-
this
.
startTime
),
3
)+
" sec, --- Free memory="
+
Runtime
.
getRuntime
().
freeMemory
()+
" (of "
+
Runtime
.
getRuntime
().
totalMemory
()+
")"
);
}
}
...
...
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