Skip to content

Commit

Permalink
BugfixNoPNGSavingForTimelapse
Browse files Browse the repository at this point in the history
Save 3D images as Tiff except in the non-timelapse mode, so that the
generated 3D movies in the time-lapse mode are stored in a format, where
they can be converted to videos.
  • Loading branch information
hansenjn committed Feb 26, 2020
1 parent 405bf33 commit f125503
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<artifactId>CiliaQ_</artifactId>
<groupId>JNH</groupId>
<version>0.0.6-SNAPSHOT</version>
<version>0.0.7-SNAPSHOT</version>

<!-- Plugin Information -->
<url>https://github.com/hansenjn/</url>
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/ciliaQ_jnh/CiliaQMain.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package ciliaQ_jnh;
/** ===============================================================================
* CiliaQ, a plugin for imagej - Version 0.0.6
* CiliaQ, a plugin for imagej - Version 0.0.7
*
* Copyright (C) 2017-2020 Jan Niklas Hansen
* First version: June 30, 2017
* This Version: February 24, 2020
* This Version: February 26, 2020
*
* Parts of the code were inherited from MotiQ
* (https://github.com/hansenjn/MotiQ).
Expand Down Expand Up @@ -46,7 +46,7 @@
public class CiliaQMain implements PlugIn, Measurements {
//Name variables
static final String PLUGINNAME = "CiliaQ";
static final String PLUGINVERSION = "0.0.6";
static final String PLUGINVERSION = "0.0.7";

//Fix fonts
static final Font SuperHeadingFont = new Font("Sansserif", Font.BOLD, 16);
Expand Down Expand Up @@ -3159,7 +3159,7 @@ private void saveSkeletonOverviewImagesTimelapse(String savePath, ImagePlus imp,
progress.updateBarText("Saving timelapse skeleton overview 3D image...");
imp3D = IJ.createImage("3D", width, height, impOut.getNFrames(), 24);
imp3D.setStack(stackOut);
IJ.saveAs(imp3D, "PNG", savePath + "_3D.png");
IJ.saveAsTiff(imp3D, savePath + "_3D.tif");

imp3D.changes = false;
imp3D.close();
Expand Down Expand Up @@ -3431,7 +3431,7 @@ private void saveImageAs3D(String savePath, ImagePlus imp, Visualizer3D v3D, boo

imp3D = IJ.createImage("3D", width, height, impOut.getNFrames(), 24);
imp3D.setStack(stackOut);
IJ.saveAs(imp3D, "PNG", savePath + "_3D.png");
IJ.saveAsTiff(imp3D, savePath + "_3D.tif");

imp3D.changes = false;
imp3D.close();
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugins.config
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
# A plugin to analyze cilia in confocal 3D and 4D images

# Author: Jan Niklas Hansen <[email protected]>
# Version: 0.0.6
# Version: 0.0.7
# Date: 2017/06/30
# Requires: ImageJ

Plugins>JNH, "CiliaQ v0.0.6", ciliaQ_jnh.CiliaQMain
Plugins>JNH, "CiliaQ v0.0.7", ciliaQ_jnh.CiliaQMain

0 comments on commit f125503

Please sign in to comment.