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
ecada393
Commit
ecada393
authored
Nov 26, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
converting to nc393
parent
78cd79ae
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
121 additions
and
41 deletions
+121
-41
CalibrationHardwareInterface.java
src/main/java/CalibrationHardwareInterface.java
+105
-41
Distortions.java
src/main/java/Distortions.java
+2
-0
PixelMapping.java
src/main/java/PixelMapping.java
+14
-0
No files found.
src/main/java/CalibrationHardwareInterface.java
View file @
ecada393
This diff is collapsed.
Click to expand it.
src/main/java/Distortions.java
View file @
ecada393
...
...
@@ -5989,6 +5989,8 @@ List calibration
imp
.
setProperty
(
"channel"
,
""
+
numSensor
);
imp
.
setProperty
(
"comment_subcamera"
,
"number of the subcamera with individual IP, starting with 0"
);
imp
.
setProperty
(
"subcamera"
,
""
+
camerasInterface
.
getSubCamera
(
numSensor
));
imp
.
setProperty
(
"sensor_port"
,
""
+
camerasInterface
.
getSensorPort
(
numSensor
));
imp
.
setProperty
(
"comment_subchannel"
,
"number of the sensor port on a subcamera (0..2)"
);
imp
.
setProperty
(
"subchannel"
,
""
+
camerasInterface
.
getSubChannel
(
numSensor
));
imp
.
setProperty
(
"comment_entrancePupilForward"
,
"entrance pupil distance from the azimuth/radius/height, outwards in mm"
);
...
...
src/main/java/PixelMapping.java
View file @
ecada393
...
...
@@ -135,6 +135,13 @@ public class PixelMapping {
if
((
channel
<
0
)
||
(
channel
>=
this
.
sensors
.
length
))
return
-
1
;
return
this
.
sensors
[
channel
].
getSubCamera
();
}
/*
public int getSensorPort(int channel ){
if ((channel<0) || (channel>=this.sensors.length)) return -1;
return this.sensors[channel].getSensorPort();
}
*/
public
boolean
isChannelAvailable
(
int
channel
){
return
(
this
.
sensors
!=
null
)
&&
(
channel
>=
0
)
&&
(
channel
<
this
.
sensors
.
length
)
&&
(
this
.
sensors
[
channel
]!=
null
);
...
...
@@ -15527,6 +15534,7 @@ public class PixelMapping {
public
int
channel
=
-
1
;
public
int
subcamera
=
-
1
;
public
int
subchannel
=-
1
;
public
int
sensor_port
=-
1
;
// TODO: add serial# (and temperature?)
public
double
azimuth
;
// azimuth of the lens entrance pupil center, degrees, clockwise looking from top
public
double
radius
;
// mm, distance from the rotation axis
...
...
@@ -16094,6 +16102,9 @@ public class PixelMapping {
public
int
getChannel
(){
return
this
.
channel
;}
public
int
getSubChannel
(){
return
this
.
subchannel
;}
public
int
getSubCamera
(){
return
this
.
subcamera
;}
public
int
getSensorPort
(){
return
this
.
sensor_port
;}
public
void
setSensorDataFromImageStack
(
ImagePlus
imp
){
// int corrX=0,corrY=1,corrMask=2;
if
(
imp
==
null
){
...
...
@@ -16170,6 +16181,9 @@ public class PixelMapping {
// older files do not have these properties
if
(
imp
.
getProperty
(
"subcamera"
)!=
null
)
this
.
subcamera
=
Integer
.
parseInt
((
String
)
imp
.
getProperty
(
"subcamera"
));
if
(
imp
.
getProperty
(
"subchannel"
)!=
null
)
this
.
subchannel
=
Integer
.
parseInt
((
String
)
imp
.
getProperty
(
"subchannel"
));
if
(
imp
.
getProperty
(
"sensor_port"
)!=
null
)
this
.
sensor_port
=
Integer
.
parseInt
((
String
)
imp
.
getProperty
(
"sensor_port"
));
// now read the calibration data and mask
this
.
pixelCorrection
=
null
;
...
...
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