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
4ca23a78
Commit
4ca23a78
authored
Feb 06, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made clt-based correlation to work correctly
parent
ddf19dcf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Eyesis_Correction.java
src/main/java/Eyesis_Correction.java
+4
-0
ImageDtt.java
src/main/java/ImageDtt.java
+3
-1
No files found.
src/main/java/Eyesis_Correction.java
View file @
4ca23a78
...
@@ -3792,6 +3792,9 @@ private Panel panel1,
...
@@ -3792,6 +3792,9 @@ private Panel panel1,
/* ======================================================================== */
/* ======================================================================== */
}
else
if
(
label
.
equals
(
"CLT correlate"
))
{
}
else
if
(
label
.
equals
(
"CLT correlate"
))
{
DEBUG_LEVEL
=
MASTER_DEBUG_LEVEL
;
DEBUG_LEVEL
=
MASTER_DEBUG_LEVEL
;
runtime
.
gc
();
System
.
out
.
println
(
"--- Free memory="
+
runtime
.
freeMemory
()+
" (of "
+
runtime
.
totalMemory
()+
")"
);
// IJ.showMessage("DCT test 1");
// IJ.showMessage("DCT test 1");
if
(!
CLT_PARAMETERS
.
showDialog
())
return
;
if
(!
CLT_PARAMETERS
.
showDialog
())
return
;
// process selected image stack
// process selected image stack
...
@@ -3997,6 +4000,7 @@ private Panel panel1,
...
@@ -3997,6 +4000,7 @@ private Panel panel1,
for
(
int
chn
=
0
;
chn
<
clt_corr
.
length
;
chn
++)
{
for
(
int
chn
=
0
;
chn
<
clt_corr
.
length
;
chn
++)
{
image_dtt
.
clt_dtt2
(
// DCCT2, DSCT2, DCST2, DSST2 - in-place
image_dtt
.
clt_dtt2
(
// DCCT2, DSCT2, DCST2, DSST2 - in-place
clt_corr
[
chn
],
// final double [][][][] clt_data,
clt_corr
[
chn
],
// final double [][][][] clt_data,
true
,
// final boolean transpose, // when doing inverse transform, the data comes in transposed form, so CS <->SC
THREADS_MAX
,
// maximal number of threads to launch
THREADS_MAX
,
// maximal number of threads to launch
DEBUG_LEVEL
);
// globalDebugLevel)
DEBUG_LEVEL
);
// globalDebugLevel)
}
}
...
...
src/main/java/ImageDtt.java
View file @
4ca23a78
...
@@ -1093,6 +1093,7 @@ public class ImageDtt {
...
@@ -1093,6 +1093,7 @@ public class ImageDtt {
public
void
clt_dtt2
(
// transform dcct2, dsct2, dcst2, dsst2
public
void
clt_dtt2
(
// transform dcct2, dsct2, dcst2, dsst2
final
double
[][][][]
data
,
final
double
[][][][]
data
,
final
boolean
transpose
,
// when doing inverse transform, the data comes in transposed form, so CS <->SC
final
int
threadsMax
,
// maximal number of threads to launch
final
int
threadsMax
,
// maximal number of threads to launch
final
int
globalDebugLevel
)
final
int
globalDebugLevel
)
{
{
...
@@ -1112,7 +1113,8 @@ public class ImageDtt {
...
@@ -1112,7 +1113,8 @@ public class ImageDtt {
tileY
=
nTile
/
tilesX
;
tileY
=
nTile
/
tilesX
;
tileX
=
nTile
-
tileY
*
tilesX
;
tileX
=
nTile
-
tileY
*
tilesX
;
for
(
int
quadrant
=
0
;
quadrant
<
4
;
quadrant
++){
for
(
int
quadrant
=
0
;
quadrant
<
4
;
quadrant
++){
data
[
tileY
][
tileX
][
quadrant
]
=
dtt
.
dttt_iie
(
data
[
tileY
][
tileX
][
quadrant
],
quadrant
,
dct_size
);
int
mode
=
transpose
?
(((
quadrant
<<
1
)
&
2
)
|
((
quadrant
>>
1
)
&
1
))
:
quadrant
;
data
[
tileY
][
tileX
][
quadrant
]
=
dtt
.
dttt_iie
(
data
[
tileY
][
tileX
][
quadrant
],
mode
,
dct_size
);
}
}
}
}
}
}
...
...
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