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
78aea970
Commit
78aea970
authored
May 25, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-merge corrections
parent
bcd2b0d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
26 deletions
+53
-26
EyesisCorrections.java
.../java/com/elphel/imagej/correction/EyesisCorrections.java
+1
-1
Eyesis_Correction.java
.../java/com/elphel/imagej/correction/Eyesis_Correction.java
+9
-7
JP46_Reader_camera.java
src/main/java/com/elphel/imagej/jp4/JP46_Reader_camera.java
+43
-18
No files found.
src/main/java/com/elphel/imagej/correction/EyesisCorrections.java
View file @
78aea970
...
...
@@ -742,7 +742,7 @@ public class EyesisCorrections {
if
(
path
!=
null
){
path
+=
Prefs
.
getFileSeparator
()+
imp
.
getTitle
()+
".tiff"
;
if
(
this
.
debugLevel
>
0
)
System
.
out
.
println
(
"Saving equirectangular result to "
+
path
);
(
new
EyesisTiff
(
correctionsParameters
.
tiffCompression
)).
saveTiff
(
(
new
EyesisTiff
()).
saveTiff
(
imp
,
path
,
correctionsParameters
.
equirectangularFormat
,
...
...
src/main/java/com/elphel/imagej/correction/Eyesis_Correction.java
View file @
78aea970
package
com
.
elphel
.
imagej
.
correction
;
/**
** -----------------------------------------------------------------------------**
** Eyesis_Correction.java
...
...
@@ -25,19 +24,24 @@ package com.elphel.imagej.correction;
** -----------------------------------------------------------------------------**
**
*/
package
com
.
elphel
.
imagej
.
correction
;
import
java.awt.Button
;
import
java.awt.Color
;
import
java.awt.Component
;
import
java.awt.Dialog
;
import
java.awt.Frame
;
import
java.awt.GraphicsEnvironment
;
import
java.awt.GridLayout
;
import
java.awt.Label
;
import
java.awt.MouseInfo
;
import
java.awt.Panel
;
import
java.awt.Point
;
import
java.awt.Rectangle
;
import
java.awt.event.ActionEvent
;
import
java.awt.event.ActionListener
;
import
java.awt.event.MouseAdapter
;
import
java.awt.event.MouseEvent
;
import
java.awt.event.WindowEvent
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileNotFoundException
;
...
...
@@ -93,7 +97,6 @@ import ij.ImageJ;
import
ij.ImagePlus
;
import
ij.ImageStack
;
import
ij.Macro
;
import
ij.Prefs
;
import
ij.WindowManager
;
import
ij.gui.GUI
;
...
...
@@ -105,9 +108,8 @@ import ij.io.FileInfo;
import
ij.io.FileSaver
;
import
ij.io.OpenDialog
;
import
ij.io.Opener
;
import
ij.plugin.PlugIn
;
import
ij.plugin.frame.PlugInFrame
;
import
ij.process.ColorProcessor
;
import
ij.process.FloatProcessor
;
import
ij.process.ImageProcessor
;
...
...
src/main/java/com/elphel/imagej/jp4/JP46_Reader_camera.java
View file @
78aea970
...
...
@@ -26,23 +26,30 @@
//from main
package
com
.
elphel
.
imagej
.
jp4
;
import
ij.*
;
import
ij.io.*
;
import
ij.process.*
;
import
ij.gui.*
;
import
ij.plugin.frame.*
;
import
ij.text.*
;
import
ij.plugin.PlugIn
;
import
java.awt.*
;
import
java.awt.event.*
;
import
java.net.*
;
import
java.awt.Button
;
import
java.awt.Frame
;
import
java.awt.GraphicsEnvironment
;
import
java.awt.GridLayout
;
import
java.awt.Image
;
import
java.awt.Panel
;
import
java.awt.Rectangle
;
import
java.awt.Toolkit
;
import
java.awt.event.ActionEvent
;
import
java.awt.event.ActionListener
;
import
java.io.BufferedInputStream
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.RandomAccessFile
;
import
java.io.StringReader
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
import
java.net.URLConnection
;
import
java.util.Iterator
;
import
java.util.Properties
;
import
java.util.Set
;
import
java.io.*
;
import
javax.swing.
*
;
import
javax.swing.
JFileChooser
;
import
javax.xml.parsers.DocumentBuilder
;
import
javax.xml.parsers.DocumentBuilderFactory
;
import
javax.xml.parsers.ParserConfigurationException
;
...
...
@@ -52,6 +59,22 @@ import org.w3c.dom.NodeList;
import
org.xml.sax.InputSource
;
import
org.xml.sax.SAXException
;
import
ij.IJ
;
import
ij.ImageJ
;
import
ij.ImagePlus
;
import
ij.ImageStack
;
import
ij.Prefs
;
import
ij.WindowManager
;
import
ij.gui.GUI
;
import
ij.gui.GenericDialog
;
import
ij.io.FileInfo
;
import
ij.io.OpenDialog
;
import
ij.plugin.PlugIn
;
import
ij.plugin.frame.PlugInFrame
;
import
ij.process.ImageConverter
;
import
ij.process.ImageProcessor
;
import
ij.text.TextWindow
;
...
...
@@ -65,7 +88,7 @@ public class JP46_Reader_camera implements PlugIn, ActionListener {
Panel
panel1
;
Panel
confpanel
;
Frame
instance
;
PlugInFrame
plugInFrame
;
PlugInFrame
plugInFrame
;
String
arg
;
...
...
@@ -80,8 +103,9 @@ public class JP46_Reader_camera implements PlugIn, ActionListener {
public
boolean
demux
=
true
;
public
String
imageTitle
=
"cameraImage"
;
private
int
ExifOffset
=
0x0c
;
private
Boolean
headless
=
GraphicsEnvironment
.
getLocalGraphicsEnvironment
().
isHeadlessInstance
();
private
Boolean
headless
=
GraphicsEnvironment
.
getLocalGraphicsEnvironment
().
isHeadlessInstance
();
@Override
public
void
run
(
String
arg
)
{
}
...
...
@@ -102,7 +126,7 @@ public class JP46_Reader_camera implements PlugIn, ActionListener {
return
;
}
plugInFrame
=
new
PlugInFrame
(
"JP46 Reader Camera"
);
instance
=
(
Frame
)
plugInFrame
;
instance
=
plugInFrame
;
plugInFrame
.
addKeyListener
(
IJ
.
getInstance
());
...
...
@@ -131,6 +155,7 @@ public class JP46_Reader_camera implements PlugIn, ActionListener {
panel
.
add
(
b
);
}
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
String
label
=
e
.
getActionCommand
();
...
...
@@ -1026,11 +1051,11 @@ public class JP46_Reader_camera implements PlugIn, ActionListener {
}
return
imp
;
}
@Override
public
void
setTitle
(
String
title
)
{
imageTitle
=
title
;
}
@Override
public
String
getTitle
()
{
return
imageTitle
;
}
...
...
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