Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ImageProc-support
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oliver Ford
ImageProc-support
Commits
2b280fa2
Commit
2b280fa2
authored
Aug 18, 2022
by
Oliver Ford (fc-ubu3-024)
Browse files
Options
Downloads
Patches
Plain Diff
Add boilerplate for AndorV2 sensorInfo
parent
fb45fb11
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/fusionDefs/sensorInfo/SensorInfoService.java
+1
-0
1 addition, 0 deletions
src/fusionDefs/sensorInfo/SensorInfoService.java
src/fusionDefs/sensorInfo/SensorInfo_AndorV2.java
+48
-0
48 additions, 0 deletions
src/fusionDefs/sensorInfo/SensorInfo_AndorV2.java
with
49 additions
and
0 deletions
src/fusionDefs/sensorInfo/SensorInfoService.java
+
1
−
0
View file @
2b280fa2
...
@@ -24,6 +24,7 @@ public abstract class SensorInfoService {
...
@@ -24,6 +24,7 @@ public abstract class SensorInfoService {
static
{
static
{
camParsers
=
new
ArrayList
<
SensorParser
>();
camParsers
=
new
ArrayList
<
SensorParser
>();
camParsers
.
add
(
new
SensorInfo_AndorCMOS
());
camParsers
.
add
(
new
SensorInfo_AndorCMOS
());
camParsers
.
add
(
new
SensorInfo_AndorV2
());
camParsers
.
add
(
new
SensorInfo_PICam
());
camParsers
.
add
(
new
SensorInfo_PICam
());
camParsers
.
add
(
new
SensorInfo_PCOEdge
());
camParsers
.
add
(
new
SensorInfo_PCOEdge
());
camParsers
.
add
(
new
SensorInfo_OceanOptics
());
camParsers
.
add
(
new
SensorInfo_OceanOptics
());
...
...
...
...
This diff is collapsed.
Click to expand it.
src/fusionDefs/sensorInfo/SensorInfo_AndorV2.java
0 → 100644
+
48
−
0
View file @
2b280fa2
package
fusionDefs.sensorInfo
;
import
java.util.Map
;
import
java.util.Map.Entry
;
import
fusionDefs.sensorInfo.SensorInfoService.SensorParser
;
import
fusionDefs.sensorInfo.SensorInfoService.MetaDataGetter
;
public
class
SensorInfo_AndorV2
implements
SensorParser
{
@Override
public
SensorInfo
attemptGet
(
MetaDataGetter
src
)
{
//try to find the camera metadata
// Andor CMOS cameras should always be under 'AndorCam'.
try
{
Double
ccdWidth
=
src
.
get
(
"AndorV2/config/exposureTime"
,
Double
.
class
);
if
(
ccdWidth
==
null
)
// not an AndorV2
return
null
;
}
catch
(
RuntimeException
err
)
{
return
null
;
//No AndorV2 metadata, ignore
}
SensorInfo
camInfo
=
new
SensorInfo
();
camInfo
.
zeroLevel
=
Double
.
NaN
;
camInfo
.
photoelectronsPerADCU
=
Double
.
NaN
;
camInfo
.
readNoise
=
Double
.
NaN
;
//based on camera ROIs
camInfo
.
sensorPixelOfImageLeft
=
-
1
;
camInfo
.
sensorPixelOfImageTop
=
-
1
;
camInfo
.
sensorBinningX
=
-
1
;
camInfo
.
sensorBinningY
=
-
1
;
camInfo
.
transposedImage
=
false
;
//camera doesn't support it
camInfo
.
exposureTime
=
src
.
get
(
"/AndorV2/config/exposureTime"
,
Double
.
class
);
camInfo
.
frameTime
=
src
.
get
(
"/AndorV2/config/accumulationCycleTime"
,
Double
.
class
);
camInfo
.
cameraName
=
"AndorV2-"
+
src
.
get
(
"/AndorV2/config/headModel"
,
String
.
class
)
+
"-"
+
src
.
get
(
"/AndorV2/config/cameraSerialNumber"
,
String
.
class
);
camInfo
.
modeString
=
camInfo
.
cameraName
+
"...?"
;
return
camInfo
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment