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
3ae3cafd
Commit
3ae3cafd
authored
Dec 04, 2014
by
Luc Deschenaux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set codec default options for tiffsaver
parent
e69ea295
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
EyesisCorrectionParameters.java
src/main/java/EyesisCorrectionParameters.java
+1
-1
EyesisTiff.java
src/main/java/EyesisTiff.java
+3
-0
No files found.
src/main/java/EyesisCorrectionParameters.java
View file @
3ae3cafd
...
...
@@ -285,7 +285,7 @@ public class EyesisCorrectionParameters {
gd
.
addCheckbox
(
"Save chroma denoise mask (white - use hi-res, black - low-res)"
,
this
.
saveChromaDenoiseMask
);
gd
.
addCheckbox
(
"Rotate result image"
,
this
.
rotate
);
gd
.
addCheckbox
(
"Crop result image to the original size"
,
this
.
crop
);
String
[]
tiffCompressionChoices
={
"UNCOMPRESSED"
,
"LZW"
,
"JPEG_2000"
,
"ALT_JPEG2000"
};
String
[]
tiffCompressionChoices
={
"UNCOMPRESSED"
,
"LZW"
,
"JPEG
"
,
"JPEG
_2000"
,
"ALT_JPEG2000"
};
int
tiffCompressionIndex
=
0
;
String
[]
equirectangularFormatChoices
={
"RGBA 8-bit"
,
"RGBA 16-bit"
,
"RGBA 32-bit integer"
,
"RGBA 32-bit float"
,
"ImageJ stack"
};
int
[]
equirectangularFormats
={
0
,
1
,
2
,
3
,
4
};
...
...
src/main/java/EyesisTiff.java
View file @
3ae3cafd
...
...
@@ -34,6 +34,7 @@ import java.util.Arrays;
//import org.apache.log4j.Logger;
import
ij.IJ
;
import
ij.ImagePlus
;
import
ij.WindowManager
;
...
...
@@ -42,6 +43,7 @@ import loci.common.RandomAccessInputStream;
import
loci.common.services.DependencyException
;
import
loci.common.services.ServiceException
;
import
loci.formats.FormatException
;
import
loci.formats.codec.CodecOptions
;
import
loci.formats.tiff.IFD
;
import
loci.formats.tiff.IFDList
;
import
loci.formats.tiff.TiffParser
;
...
...
@@ -222,6 +224,7 @@ public EyesisTiff(String codec){
TiffSaver
tiffSaver
=
new
TiffSaver
(
path
);
tiffSaver
.
setWritingSequentially
(
true
);
tiffSaver
.
setLittleEndian
(
false
);
tiffSaver
.
setCodecOptions
(
TiffCompression
.
valueOf
(
codec
).
getCompressionCodecOptions
(
ifd
));
tiffSaver
.
writeHeader
();
// tiffSaver.writeIFD(ifd,0); //* SHould not write here, some fields are calculated during writeImage, that writes IFD too
// System.out.println("bytes.length="+bytes.length);
...
...
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