Skip to content

Commit 24b1d64

Browse files
committed
MotiQ3D-OutputFilePath-LengthReduction
To decrease the length of output directory paths, the automatically generated filenames of output files in the created results folder was reduced to a minimum prefix ("M3D"). Additionally, the thickness of scale bars in 3D output images was unified for all three dimensions.
1 parent e9abc4a commit 24b1d64

File tree

9 files changed

+28
-23
lines changed

9 files changed

+28
-23
lines changed

3D Analyzer/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<artifactId>MotiQ_3D</artifactId>
2020
<groupId>JNH</groupId>
21-
<version>0.1.1-SNAPSHOT</version>
21+
<version>0.1.3-SNAPSHOT</version>
2222

2323
<!-- Plugin Information -->
2424
<name>MotiQ 3D Analyzer</name>

3D Analyzer/src/main/java/motiQ3D/ImPoint.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/***===============================================================================
22
*
3-
* MotiQ_3D Version plugin for ImageJ, Version v0.1.1
3+
* MotiQ_3D Version plugin for ImageJ, Version v0.1.3
44
*
55
* Copyright (C) 2014-2017 Jan Niklas Hansen
66
* First version: July 28, 2014
7-
* This Version: May 03, 2017
7+
* This Version: December 1, 2017
88
*
99
* This program is free software; you can redistribute it and/or
1010
* modify it under the terms of the GNU General Public License

3D Analyzer/src/main/java/motiQ3D/MotiQ_3D.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/***===============================================================================
22
*
3-
* MotiQ_3D Version plugin for ImageJ, Version v0.1.1
3+
* MotiQ_3D Version plugin for ImageJ, Version v0.1.3
44
*
55
* Copyright (C) 2014-2017 Jan Niklas Hansen
66
* First version: July 28, 2014
7-
* This Version: May 03, 2017
7+
* This Version: December 1, 2017
88
*
99
* This program is free software; you can redistribute it and/or
1010
* modify it under the terms of the GNU General Public License
@@ -42,7 +42,7 @@
4242
public class MotiQ_3D implements PlugIn, Measurements{
4343
//Name variables
4444
static final String pluginName = "MotiQ 3D Analyzer";
45-
static final String pluginVersion = "v0.1.1";
45+
static final String pluginVersion = "v0.1.3";
4646

4747
DecimalFormat dformat6 = new DecimalFormat("#0.000000");
4848
DecimalFormat dformat3 = new DecimalFormat("#0.000");
@@ -610,7 +610,7 @@ public void windowClosing(WindowEvent winEvt) {
610610
}
611611
}
612612

613-
//write points in save collection back to image
613+
//write points in saveCollection back to image
614614
pointSaveCollection.trimToSize();
615615
for(int i = 0; i < pointSaveCollection.size(); i++){
616616
imp.getStack().setVoxel(pointSaveCollection.get(i).x, pointSaveCollection.get(i).y,
@@ -855,7 +855,7 @@ public void windowClosing(WindowEvent winEvt) {
855855
if(saveDate) filePrefix += "_" + NameDateFormatter.format(currentDate);
856856

857857
//Create subfolder to save additional files
858-
String subfolderPrefix = "" + dir [task] + filePrefix + System.getProperty("file.separator") + filePrefix;
858+
String subfolderPrefix = "" + dir [task] + filePrefix + System.getProperty("file.separator") + "M3D";
859859
try{
860860
new File(dir [task] + filePrefix).mkdirs();
861861
}catch(Exception e){

3D Analyzer/src/main/java/motiQ3D/OpenFilesDialog.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/***===============================================================================
22
*
3-
* MotiQ_3D Version plugin for ImageJ, Version v0.1.1
3+
* MotiQ_3D Version plugin for ImageJ, Version v0.1.3
44
*
55
* Copyright (C) 2014-2017 Jan Niklas Hansen
66
* First version: July 28, 2014
7-
* This Version: May 03, 2017
7+
* This Version: December 1, 2017
88
*
99
* This program is free software; you can redistribute it and/or
1010
* modify it under the terms of the GNU General Public License

3D Analyzer/src/main/java/motiQ3D/Point3D.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/***===============================================================================
22
*
3-
* MotiQ_3D Version plugin for ImageJ, Version v0.1.1
3+
* MotiQ_3D Version plugin for ImageJ, Version v0.1.3
44
*
55
* Copyright (C) 2014-2017 Jan Niklas Hansen
66
* First version: July 28, 2014
7-
* This Version: May 03, 2017
7+
* This Version: December 1, 2017
88
*
99
* This program is free software; you can redistribute it and/or
1010
* modify it under the terms of the GNU General Public License

3D Analyzer/src/main/java/motiQ3D/ProgressDialog.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/***===============================================================================
22
*
3-
* MotiQ_3D Version plugin for ImageJ, Version v0.1.1
3+
* MotiQ_3D Version plugin for ImageJ, Version v0.1.3
44
*
55
* Copyright (C) 2014-2017 Jan Niklas Hansen
66
* First version: July 28, 2014
7-
* This Version: May 03, 2017
7+
* This Version: December 1, 2017
88
*
99
* This program is free software; you can redistribute it and/or
1010
* modify it under the terms of the GNU General Public License

3D Analyzer/src/main/java/motiQ3D/TimelapseParticle.java

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/***===============================================================================
22
*
3-
* MotiQ_3D Version plugin for ImageJ, Version v0.1.1
3+
* MotiQ_3D Version plugin for ImageJ, Version v0.1.3
44
*
55
* Copyright (C) 2014-2017 Jan Niklas Hansen
66
* First version: July 28, 2014
7-
* This Version: May 03, 2017
7+
* This Version: December 1, 2017
88
*
99
* This program is free software; you can redistribute it and/or
1010
* modify it under the terms of the GNU General Public License
@@ -2118,9 +2118,14 @@ private ImagePlus getContained3DScBar(ImagePlus imp2, int pxNrX, int pxNrY, int
21182118
int orX = 0, orY = imp2.getHeight()-1, orZ = imp2.getNSlices()-1;
21192119
ImagePlus imp = imp2.duplicate();
21202120
double maxValue = MotiQ_3D.getMaxIntensity(imp);
2121-
int thicknessX = (int)Math.round(2.0 / imp.getCalibration().pixelHeight),
2122-
thicknessY = (int)Math.round(2.0 / imp.getCalibration().pixelWidth),
2123-
thicknessZ = (int)Math.round(2.0 / imp.getCalibration().pixelDepth);
2121+
2122+
double thicknessCal = imp.getCalibration().pixelHeight;
2123+
if(thicknessCal < imp.getCalibration().pixelWidth) thicknessCal = imp.getCalibration().pixelWidth;
2124+
if(thicknessCal < imp.getCalibration().pixelDepth) thicknessCal = imp.getCalibration().pixelDepth;
2125+
2126+
int thicknessX = (int)Math.round(thicknessCal / imp.getCalibration().pixelHeight),
2127+
thicknessY = (int)Math.round(thicknessCal / imp.getCalibration().pixelWidth),
2128+
thicknessZ = (int)Math.round(thicknessCal / imp.getCalibration().pixelDepth);
21242129
if(thicknessX < 1) thicknessX = 1;
21252130
if(thicknessY < 1) thicknessY = 1;
21262131
if(thicknessZ < 1) thicknessZ = 1;

3D Analyzer/src/main/java/motiQ3D/Visualizer3D.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/***===============================================================================
22
*
3-
* MotiQ_3D Version plugin for ImageJ, Version v0.1.1
3+
* MotiQ_3D Version plugin for ImageJ, Version v0.1.3
44
*
55
* Copyright (C) 2014-2017 Jan Niklas Hansen
66
* First version: July 28, 2014
7-
* This Version: May 03, 2017
7+
* This Version: December 1, 2017
88
*
99
* This program is free software; you can redistribute it and/or
1010
* modify it under the terms of the GNU General Public License

3D Analyzer/src/main/resources/plugins.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
# Belongs to the MotiQ toolbox for analyzing cellular morphology, dynamics, and signaling. MotiQ 3D analyzer analyzes segmented images that are either background-removed (in which intensity information in foreground pixels is preserved while the intensity of background pixels is set to zero) or binary images. After analysis, MotiQ 3D analyzer outputs a text-file containing many different parameter results and a set of images visualizing the results.
2525

2626
# Author: Jan Niklas Hansen <Jan.Hansen@caesar.de>
27-
# Version: 0.1.1
28-
# Date: 2017/05/03
27+
# Version: 0.1.3
28+
# Date: 2017/12/01
2929
# Requires: ImageJ
3030

3131
Plugins>MotiQ, "MotiQ 3D Analyzer", motiQ3D.MotiQ_3D

0 commit comments

Comments
 (0)