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
da48d22b
Commit
da48d22b
authored
Jun 25, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing headless run
parent
1b78d16a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
914 additions
and
1015 deletions
+914
-1015
EyesisCorrectionParameters.java
src/main/java/EyesisCorrectionParameters.java
+179
-179
Eyesis_Correction.java
src/main/java/Eyesis_Correction.java
+658
-749
JP46_Reader_camera.java
src/main/java/JP46_Reader_camera.java
+77
-87
No files found.
src/main/java/EyesisCorrectionParameters.java
View file @
da48d22b
...
@@ -573,7 +573,7 @@ public class EyesisCorrectionParameters {
...
@@ -573,7 +573,7 @@ public class EyesisCorrectionParameters {
String
[]
sensorFiles
=
null
;
String
[]
sensorFiles
=
null
;
// try reading all matching files
// try reading all matching files
File
dir
=
new
File
(
this
.
sensorDirectory
);
File
dir
=
new
File
(
this
.
sensorDirectory
);
//
if (debugLevel>1) System.out.println("selectSensorFiles, dir="+this.sensorDirectory);
if
(
debugLevel
>
1
)
System
.
out
.
println
(
"selectSensorFiles, dir="
+
this
.
sensorDirectory
);
File
[]
fileList
=
null
;
File
[]
fileList
=
null
;
if
(
dir
.
exists
())
{
if
(
dir
.
exists
())
{
fileList
=
dir
.
listFiles
(
sensorFilter
);
fileList
=
dir
.
listFiles
(
sensorFilter
);
...
...
src/main/java/Eyesis_Correction.java
View file @
da48d22b
This diff is collapsed.
Click to expand it.
src/main/java/JP46_Reader_camera.java
View file @
da48d22b
...
@@ -30,6 +30,7 @@ import ij.process.*;
...
@@ -30,6 +30,7 @@ import ij.process.*;
import
ij.gui.*
;
import
ij.gui.*
;
import
ij.plugin.frame.*
;
import
ij.plugin.frame.*
;
import
ij.text.*
;
import
ij.text.*
;
import
ij.plugin.PlugIn
;
import
java.awt.*
;
import
java.awt.*
;
import
java.awt.event.*
;
import
java.awt.event.*
;
...
@@ -50,9 +51,8 @@ import org.xml.sax.InputSource;
...
@@ -50,9 +51,8 @@ import org.xml.sax.InputSource;
import
org.xml.sax.SAXException
;
import
org.xml.sax.SAXException
;
/* This plugin opens images in Elphel JP4/JP46 format (opens as JPEG, reads MakerNote and converts). */
/* This plugin opens images in Elphel JP4/JP46 format (opens as JPEG, reads MakerNote and converts). */
public
class
JP46_Reader_camera
extends
PlugInFrame
implements
ActionListener
{
public
class
JP46_Reader_camera
implements
PlugIn
,
ActionListener
{
/**
/**
*
*
...
@@ -61,6 +61,7 @@ public class JP46_Reader_camera extends PlugInFrame implements ActionListener {
...
@@ -61,6 +61,7 @@ public class JP46_Reader_camera extends PlugInFrame implements ActionListener {
Panel
panel1
;
Panel
panel1
;
Panel
confpanel
;
Panel
confpanel
;
Frame
instance
;
Frame
instance
;
PlugInFrame
plugInFrame
;
String
arg
;
String
arg
;
...
@@ -75,44 +76,33 @@ public class JP46_Reader_camera extends PlugInFrame implements ActionListener {
...
@@ -75,44 +76,33 @@ public class JP46_Reader_camera extends PlugInFrame implements ActionListener {
public
boolean
demux
=
true
;
public
boolean
demux
=
true
;
public
String
imageTitle
=
"cameraImage"
;
public
String
imageTitle
=
"cameraImage"
;
private
int
ExifOffset
=
0x0c
;
private
int
ExifOffset
=
0x0c
;
private
Boolean
headless
=
GraphicsEnvironment
.
getLocalGraphicsEnvironment
().
isHeadlessInstance
();
public
JP46_Reader_camera
()
{
public
void
run
(
String
arg
)
{
super
(
"JP46 Reader Camera"
);
if
(
IJ
.
versionLessThan
(
"1.39t"
))
return
;
if
(
instance
!=
null
)
{
instance
.
toFront
();
return
;
}
}
instance
=
this
;
addKeyListener
(
IJ
.
getInstance
());
panel1
=
new
Panel
();
public
JP46_Reader_camera
(
Boolean
showGui
)
{
if
(
showGui
)
initGui
();
panel1
.
setLayout
(
new
GridLayout
(
6
,
1
,
50
,
5
));
}
addButton
(
"Open JP4/JP46..."
,
panel1
);
addButton
(
"Open JP4/JP46 from camera"
,
panel1
);
addButton
(
"Configure..."
,
panel1
);
addButton
(
"Show image properties"
,
panel1
);
addButton
(
"Decode image info to properties"
,
panel1
);
addButton
(
"Split Bayer"
,
panel1
);
public
JP46_Reader_camera
()
{
initGui
();
}
add
(
panel1
);
public
void
initGui
()
{
//super("JP46 Reader Camera");
if
(
headless
)
return
;
pack
();
GUI
.
center
(
this
);
setVisible
(
true
);
}
public
JP46_Reader_camera
(
boolean
showGUI
)
{
super
(
"JP46 Reader Camera"
);
if
(
IJ
.
versionLessThan
(
"1.39t"
))
return
;
if
(
IJ
.
versionLessThan
(
"1.39t"
))
return
;
if
(
instance
!=
null
)
{
if
(
instance
!=
null
)
{
instance
.
toFront
();
instance
.
toFront
();
return
;
return
;
}
}
instance
=
this
;
addKeyListener
(
IJ
.
getInstance
());
plugInFrame
=
new
PlugInFrame
(
"JP46 Reader Camera"
);
instance
=
(
Frame
)
plugInFrame
;
plugInFrame
.
addKeyListener
(
IJ
.
getInstance
());
panel1
=
new
Panel
();
panel1
=
new
Panel
();
...
@@ -124,10 +114,10 @@ public class JP46_Reader_camera extends PlugInFrame implements ActionListener {
...
@@ -124,10 +114,10 @@ public class JP46_Reader_camera extends PlugInFrame implements ActionListener {
addButton
(
"Show image properties"
,
panel1
);
addButton
(
"Show image properties"
,
panel1
);
addButton
(
"Decode image info to properties"
,
panel1
);
addButton
(
"Decode image info to properties"
,
panel1
);
addButton
(
"Split Bayer"
,
panel1
);
addButton
(
"Split Bayer"
,
panel1
);
add
(
panel1
);
plugInFrame
.
add
(
panel1
);
pack
();
p
lugInFrame
.
p
ack
();
GUI
.
center
(
this
);
GUI
.
center
(
plugInFrame
);
setVisible
(
showGUI
);
plugInFrame
.
setVisible
(
true
);
}
}
void
addButton
(
String
label
,
Panel
panel
)
{
void
addButton
(
String
label
,
Panel
panel
)
{
...
...
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