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
d3429417
Commit
d3429417
authored
Dec 14, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suppressed some warnings, some fixed
parent
d93d350f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
17 deletions
+31
-17
CalibrationHardwareInterface.java
src/main/java/CalibrationHardwareInterface.java
+6
-3
DebayerScissors.java
src/main/java/DebayerScissors.java
+0
-1
DenseCorrespondence.java
src/main/java/DenseCorrespondence.java
+1
-1
PixelMapping.java
src/main/java/PixelMapping.java
+24
-12
No files found.
src/main/java/CalibrationHardwareInterface.java
View file @
d3429417
...
...
@@ -3120,7 +3120,7 @@ public class CalibrationHardwareInterface {
}
catch
(
IOException
e
)
{
String
msg
=
"Failed to write XML motor state file: "
+
path
;
IJ
.
showMessage
(
"Error"
,
msg
);
throw
new
IOException
(
msg
);
extracted
(
msg
);
}
try
{
os
.
close
();
...
...
@@ -3146,7 +3146,7 @@ public class CalibrationHardwareInterface {
}
catch
(
IOException
e
)
{
String
msg
=
"Failed to read XML configuration file: "
+
path
;
IJ
.
showMessage
(
"Error"
,
msg
);
throw
new
IOException
(
msg
);
extracted
(
msg
);
}
try
{
is
.
close
();
...
...
@@ -3164,11 +3164,14 @@ public class CalibrationHardwareInterface {
}
else
{
String
msg
=
"motor"
+(
i
+
1
)+
" is undefined in "
+
path
+
". If the file is corrupted you may delete it."
;
IJ
.
showMessage
(
"Error"
,
msg
);
throw
new
IOException
(
msg
);
extracted
(
msg
);
}
}
return
savedPosition
;
}
private
void
extracted
(
String
msg
)
throws
IOException
{
throw
new
IOException
(
msg
);
}
public
void
checkEnabled
(){
if
(
isEnabled
())
return
;
GenericDialog
gd
=
new
GenericDialog
(
"Enable motors"
);
...
...
src/main/java/DebayerScissors.java
View file @
d3429417
...
...
@@ -28,7 +28,6 @@
import
ij.IJ
;
import
ij.ImageStack
;
import
java.lang.reflect.InvocationTargetException
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
javax.swing.SwingUtilities
;
...
...
src/main/java/DenseCorrespondence.java
View file @
d3429417
...
...
@@ -39,7 +39,7 @@ public class DenseCorrespondence {
p
rivate
void
disparitySweepTile
(
p
ublic
void
disparitySweepTile
(
// never used so far
int
tileX
,
int
tileY
,
CyclopeanTile
[][]
allCyclopeanMap
,
...
...
src/main/java/PixelMapping.java
View file @
d3429417
...
...
@@ -9410,7 +9410,8 @@ public class PixelMapping {
private
BitSet
innerMask
=
null
;
private
int
[]
borderMask
=
null
;
public
int
getNumberOfPlanes
(){
return
this
.
maximums
.
length
;}
public
int
getForegroundPlane
(){
return
this
.
foregroundIndex
;}
@SuppressWarnings
(
"unused"
)
public
int
getForegroundPlane
(){
return
this
.
foregroundIndex
;}
public
double
getPlaneDisparity
(
int
plane
){
return
this
.
maximums
[
plane
][
0
];}
public
void
setPlaneDisparity
(
double
disparity
,
int
plane
){
this
.
maximums
[
plane
][
0
]=
disparity
;}
public
double
getPlaneStrength
(
int
plane
){
return
this
.
maximums
[
plane
][
1
];}
...
...
@@ -9448,14 +9449,16 @@ public class PixelMapping {
this
.
auxData
=
new
float
[
n
][];
for
(
int
i
=
0
;
i
<
n
;
i
++)
this
.
auxData
[
i
]=
null
;
}
public
void
resetAux
(){
@SuppressWarnings
(
"unused"
)
public
void
resetAux
(){
this
.
auxData
=
null
;
}
public
void
setAux
(
int
n
,
float
[]
data
){
if
(
this
.
auxData
==
null
)
initAux
(
n
+
1
);
this
.
auxData
[
n
]=
data
;
}
public
float
[][]
getAux
(){
@SuppressWarnings
(
"unused"
)
public
float
[][]
getAux
(){
return
this
.
auxData
;
}
public
float
[]
getAux
(
int
n
){
...
...
@@ -9467,17 +9470,21 @@ public class PixelMapping {
this
.
likely
=
new
float
[
this
.
numPlanes
][];
for
(
int
i
=
0
;
i
<
this
.
numPlanes
;
i
++)
this
.
likely
[
i
]=
null
;
}
public
void
resetLikely
(){
@SuppressWarnings
(
"unused"
)
public
void
resetLikely
(){
this
.
likely
=
null
;
}
public
void
setLikely
(
int
n
,
float
[]
data
){
@SuppressWarnings
(
"unused"
)
public
void
setLikely
(
int
n
,
float
[]
data
){
if
(
this
.
likely
==
null
)
initLikely
();
this
.
likely
[
n
]=
data
;
}
public
float
[][]
getLikely
(){
@SuppressWarnings
(
"unused"
)
public
float
[][]
getLikely
(){
return
this
.
likely
;
}
public
float
[]
getLikely
(
int
n
){
@SuppressWarnings
(
"unused"
)
public
float
[]
getLikely
(
int
n
){
if
((
this
.
likely
==
null
)
||
(
this
.
likely
.
length
<=
n
))
return
null
;
return
this
.
likely
[
n
];
}
...
...
@@ -9486,17 +9493,21 @@ public class PixelMapping {
this
.
unlikely
=
new
float
[
this
.
numPlanes
][];
for
(
int
i
=
0
;
i
<
this
.
numPlanes
;
i
++)
this
.
unlikely
[
i
]=
null
;
}
public
void
resetUnlikely
(){
@SuppressWarnings
(
"unused"
)
public
void
resetUnlikely
(){
this
.
unlikely
=
null
;
}
public
void
setUnlikely
(
int
n
,
float
[]
data
){
@SuppressWarnings
(
"unused"
)
public
void
setUnlikely
(
int
n
,
float
[]
data
){
if
(
this
.
unlikely
==
null
)
initUnlikely
();
this
.
unlikely
[
n
]=
data
;
}
public
float
[][]
getUnlikely
(){
@SuppressWarnings
(
"unused"
)
public
float
[][]
getUnlikely
(){
return
this
.
unlikely
;
}
public
float
[]
getUnlikely
(
int
n
){
@SuppressWarnings
(
"unused"
)
public
float
[]
getUnlikely
(
int
n
){
if
((
this
.
unlikely
==
null
)
||
(
this
.
unlikely
.
length
<=
n
))
return
null
;
return
this
.
unlikely
[
n
];
}
...
...
@@ -9584,7 +9595,8 @@ public class PixelMapping {
* @param disparityTolerance - consider "this" as being withing disparityTolerance of disparity. NaN - do not filter by this
* @return
*/
public
boolean
[]
getEnabledNonOccluded
(
@SuppressWarnings
(
"unused"
)
public
boolean
[]
getEnabledNonOccluded
(
double
disparityFG
,
double
disparity
,
double
disparityTolerance
){
...
...
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