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
b70fdc39
Commit
b70fdc39
authored
Apr 09, 2024
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementing scene high frequency decay calculation/reporting
parent
12d3c947
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
526 additions
and
21 deletions
+526
-21
DoubleFHT.java
src/main/java/com/elphel/imagej/common/DoubleFHT.java
+23
-3
OrthoMap.java
src/main/java/com/elphel/imagej/orthomosaic/OrthoMap.java
+341
-0
OrthoMapsCollection.java
...va/com/elphel/imagej/orthomosaic/OrthoMapsCollection.java
+162
-18
No files found.
src/main/java/com/elphel/imagej/common/DoubleFHT.java
View file @
b70fdc39
...
...
@@ -2424,7 +2424,27 @@ public class DoubleFHT {
return
amp
;
}
public
double
[]
calculateAmplitudeNoSwap
(
double
[]
fht
)
{
public
double
[]
getFreqAmplitude
(
double
[]
data
)
{
updateMaxN
(
data
);
swapQuadrants
(
data
);
if
(!
transform
(
data
,
false
))
return
null
;
// direct FHT
double
[]
amp
=
calculateAmplitude
(
data
);
return
amp
;
}
public
double
[]
getFreqAmplitude2
(
double
[]
data
)
{
updateMaxN
(
data
);
swapQuadrants
(
data
);
if
(!
transform
(
data
,
false
))
return
null
;
// direct FHT
double
[]
amp
=
calculateAmplitude2
(
data
);
return
amp
;
}
public
static
double
[]
calculateAmplitudeNoSwap
(
double
[]
fht
)
{
int
size
=
(
int
)
Math
.
sqrt
(
fht
.
length
);
double
[]
amp
=
new
double
[
size
*
size
];
for
(
int
row
=
0
;
row
<
size
;
row
++)
{
...
...
@@ -2473,7 +2493,7 @@ public class DoubleFHT {
}
/* Amplitude of one row from 2D Hartley Transform. */
void
amplitude
(
int
row
,
int
size
,
double
[]
fht
,
double
[]
amplitude
)
{
static
void
amplitude
(
int
row
,
int
size
,
double
[]
fht
,
double
[]
amplitude
)
{
int
base
=
row
*
size
;
int
l
;
for
(
int
c
=
0
;
c
<
size
;
c
++)
{
...
...
@@ -2495,7 +2515,7 @@ public class DoubleFHT {
}
/* Squared amplitude of one row from 2D Hartley Transform. */
void
amplitude2
(
int
row
,
int
size
,
double
[]
fht
,
double
[]
amplitude
)
{
static
void
amplitude2
(
int
row
,
int
size
,
double
[]
fht
,
double
[]
amplitude
)
{
int
base
=
row
*
size
;
int
l
;
for
(
int
c
=
0
;
c
<
size
;
c
++)
{
...
...
src/main/java/com/elphel/imagej/orthomosaic/OrthoMap.java
View file @
b70fdc39
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/orthomosaic/OrthoMapsCollection.java
View file @
b70fdc39
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