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
17265194
Commit
17265194
authored
Sep 09, 2025
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging and fine tuning detection
parent
673cd8a6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
100 additions
and
69 deletions
+100
-69
ShowDoubleFloatArrays.java
.../java/com/elphel/imagej/common/ShowDoubleFloatArrays.java
+2
-0
CuasMotion.java
src/main/java/com/elphel/imagej/cuas/CuasMotion.java
+96
-34
CuasMotionLMA.java
src/main/java/com/elphel/imagej/cuas/CuasMotionLMA.java
+1
-0
QuadCLTCPU.java
...main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
+1
-35
No files found.
src/main/java/com/elphel/imagej/common/ShowDoubleFloatArrays.java
View file @
17265194
...
@@ -1091,6 +1091,7 @@ G= Y +Pr*(- 2*Kr*(1-Kr))/Kg + Pb*(-2*Kb*(1-Kb))/Kg
...
@@ -1091,6 +1091,7 @@ G= Y +Pr*(- 2*Kr*(1-Kr))/Kg + Pb*(-2*Kb*(1-Kb))/Kg
int
num_slices
,
// (0 - all)
int
num_slices
,
// (0 - all)
int
[]
wh
)
{
int
[]
wh
)
{
ImagePlus
imp
=
null
;
ImagePlus
imp
=
null
;
System
.
out
.
println
(
"readFloatArray(): reading "
+
file_path
);
try
{
try
{
imp
=
new
ImagePlus
(
file_path
);
imp
=
new
ImagePlus
(
file_path
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -1111,6 +1112,7 @@ G= Y +Pr*(- 2*Kr*(1-Kr))/Kg + Pb*(-2*Kb*(1-Kb))/Kg
...
@@ -1111,6 +1112,7 @@ G= Y +Pr*(- 2*Kr*(1-Kr))/Kg + Pb*(-2*Kb*(1-Kb))/Kg
int
[]
wh
,
// should be null or int[2]
int
[]
wh
,
// should be null or int[2]
String
[][]
ptop_titles
,
// should be null or String [1][]
String
[][]
ptop_titles
,
// should be null or String [1][]
String
[][]
pslice_titles
){
// should be null or String [1][]
String
[][]
pslice_titles
){
// should be null or String [1][]
System
.
out
.
println
(
"readDoubleHyperstack(): reading "
+
path
);
ImagePlus
imp
=
new
ImagePlus
(
path
);
ImagePlus
imp
=
new
ImagePlus
(
path
);
if
(
imp
.
getWidth
()
==
0
)
{
if
(
imp
.
getWidth
()
==
0
)
{
System
.
out
.
println
(
"testSynthetic(): Failed reading Vector field from: "
+
path
);
System
.
out
.
println
(
"testSynthetic(): Failed reading Vector field from: "
+
path
);
...
...
src/main/java/com/elphel/imagej/cuas/CuasMotion.java
View file @
17265194
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/cuas/CuasMotionLMA.java
View file @
17265194
...
@@ -124,6 +124,7 @@ public class CuasMotionLMA {
...
@@ -124,6 +124,7 @@ public class CuasMotionLMA {
public
static
final
int
FAIL_MISMATCH
=
17
;
// Mismatch on both ends is too high
public
static
final
int
FAIL_MISMATCH
=
17
;
// Mismatch on both ends is too high
public
static
final
int
FAIL_NEIGHBOR
=
18
;
// failed because some neighbor is stronger
public
static
final
int
FAIL_NEIGHBOR
=
18
;
// failed because some neighbor is stronger
public
static
final
int
FAIL_DUPLICATE
=
19
;
// coordinate are (almost) the same as those of a stronger tile
public
static
final
int
FAIL_DUPLICATE
=
19
;
// coordinate are (almost) the same as those of a stronger tile
public
static
final
int
FAIL_USED
=
20
;
// non-centered used to generate centered, remove this
public
static
final
int
CENTERED_NO
=
0
;
public
static
final
int
CENTERED_NO
=
0
;
public
static
final
int
CENTERED_YES
=
1
;
public
static
final
int
CENTERED_YES
=
1
;
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
View file @
17265194
...
@@ -6171,6 +6171,7 @@ public class QuadCLTCPU {
...
@@ -6171,6 +6171,7 @@ public class QuadCLTCPU {
String
x3d_path
=
readX3dDirectory
(
correctionsParameters
.
getModelName
(
image_name
));
String
x3d_path
=
readX3dDirectory
(
correctionsParameters
.
getModelName
(
image_name
));
String
file_name
=
image_name
+
suffix
;
String
file_name
=
image_name
+
suffix
;
String
file_path
=
x3d_path
+
Prefs
.
getFileSeparator
()
+
file_name
+
".tiff"
;
String
file_path
=
x3d_path
+
Prefs
.
getFileSeparator
()
+
file_name
+
".tiff"
;
System
.
out
.
println
(
"readImagePlusFromModelDirectory(): reading "
+
file_path
);
ImagePlus
imp
=
null
;
ImagePlus
imp
=
null
;
try
{
try
{
imp
=
new
ImagePlus
(
file_path
);
imp
=
new
ImagePlus
(
file_path
);
...
@@ -6184,41 +6185,6 @@ public class QuadCLTCPU {
...
@@ -6184,41 +6185,6 @@ public class QuadCLTCPU {
}
}
/*
public float [][] readFloatArrayFromThisModelDirectory(
String suffix,
int num_slices, // (0 - all)
int [] wh)
{
String x3d_path = getImagePath(); // getX3dDirectory();
String file_name = image_name + suffix;
String file_path = x3d_path + Prefs.getFileSeparator() + file_name + ".tiff";
ImagePlus imp = null;
try {
imp = new ImagePlus(file_path);
} catch (Exception e) {
System.out.println ("Failed to open "+file_path+", will generate it");
}
if ((imp == null) || (imp.getTitle() == null) || (imp.getTitle().equals(""))) {
return null;
}
ImageStack imageStack = imp.getStack();
int nChn=imageStack.getSize();
if ((num_slices > 0) && (num_slices < nChn)) {
nChn = num_slices;
}
float [][] result = new float [nChn][];
for (int n = 0; n < nChn; n++) {
result[n] = (float[]) imageStack.getPixels(n + 1);
}
if (wh != null) {
wh[0] = imp.getWidth();
wh[1] = imp.getHeight();
}
return result;
}*/
public
void
saveDSI
()
{
saveDSI
(
this
.
dsi
);}
public
void
saveDSI
()
{
saveDSI
(
this
.
dsi
);}
...
...
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