Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Path Intensity Profile
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bioimage Analysis
Path Intensity Profile
Commits
b5855e88
Commit
b5855e88
authored
3 years ago
by
Stéphane DALLONGEVILLE
Browse files
Options
Downloads
Patches
Plain Diff
Updated for Icy kernel 2.4.0 (interruptible process)
parent
13eb7dff
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+2
-2
2 additions, 2 deletions
pom.xml
src/main/java/plugins/stef/roi/quantify/PathIntensityProfiler.java
+14
-0
14 additions, 0 deletions
...java/plugins/stef/roi/quantify/PathIntensityProfiler.java
with
16 additions
and
2 deletions
pom.xml
+
2
−
2
View file @
b5855e88
...
@@ -8,12 +8,12 @@
...
@@ -8,12 +8,12 @@
<parent>
<parent>
<groupId>
org.bioimageanalysis.icy
</groupId>
<groupId>
org.bioimageanalysis.icy
</groupId>
<artifactId>
parent-pom-plugin
</artifactId>
<artifactId>
parent-pom-plugin
</artifactId>
<version>
1.0.
3
</version>
<version>
1.0.
6
</version>
</parent>
</parent>
<!-- Project Information -->
<!-- Project Information -->
<artifactId>
path-intensity-profiler
</artifactId>
<artifactId>
path-intensity-profiler
</artifactId>
<version>
1.2.
2
</version>
<version>
1.2.
3
</version>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/plugins/stef/roi/quantify/PathIntensityProfiler.java
+
14
−
0
View file @
b5855e88
...
@@ -11,6 +11,7 @@ import javax.swing.JComponent;
...
@@ -11,6 +11,7 @@ import javax.swing.JComponent;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
icy.gui.dialog.MessageDialog
;
import
icy.gui.dialog.MessageDialog
;
import
icy.gui.frame.progress.FailedAnnounceFrame
;
import
icy.math.Line3DIterator
;
import
icy.math.Line3DIterator
;
import
icy.math.MathUtil
;
import
icy.math.MathUtil
;
import
icy.roi.BooleanMask2D
;
import
icy.roi.BooleanMask2D
;
...
@@ -18,6 +19,7 @@ import icy.roi.ROI;
...
@@ -18,6 +19,7 @@ import icy.roi.ROI;
import
icy.roi.ROI2D
;
import
icy.roi.ROI2D
;
import
icy.roi.ROI3D
;
import
icy.roi.ROI3D
;
import
icy.sequence.Sequence
;
import
icy.sequence.Sequence
;
import
icy.system.IcyExceptionHandler
;
import
icy.type.collection.CollectionUtil
;
import
icy.type.collection.CollectionUtil
;
import
icy.type.geom.Line3D
;
import
icy.type.geom.Line3D
;
import
icy.type.point.Point3D
;
import
icy.type.point.Point3D
;
...
@@ -171,6 +173,14 @@ public class PathIntensityProfiler extends EzPlug implements Block, EzStoppable
...
@@ -171,6 +173,14 @@ public class PathIntensityProfiler extends EzPlug implements Block, EzStoppable
varWorkbook
.
setValue
(
varWorkbook
.
setValue
(
getPathIntensityProfil
(
sequence
,
validRois
,
varRealUnit
.
getValue
().
booleanValue
(),
getUI
()));
getPathIntensityProfil
(
sequence
,
validRois
,
varRealUnit
.
getValue
().
booleanValue
(),
getUI
()));
}
}
catch
(
IllegalArgumentException
e
)
{
IcyExceptionHandler
.
handleException
(
e
,
true
);
}
catch
(
InterruptedException
e
)
{
new
FailedAnnounceFrame
(
"Path intensity profile process interrupted.."
);
}
finally
finally
{
{
// interactive mode
// interactive mode
...
@@ -187,8 +197,10 @@ public class PathIntensityProfiler extends EzPlug implements Block, EzStoppable
...
@@ -187,8 +197,10 @@ public class PathIntensityProfiler extends EzPlug implements Block, EzStoppable
* Computes intensity profil along path (contour for area ROI) for the given list of ROI.
* Computes intensity profil along path (contour for area ROI) for the given list of ROI.
*
*
* @return result in a XLSX workbook where we have one sheet per ROI.
* @return result in a XLSX workbook where we have one sheet per ROI.
* @throws InterruptedException
*/
*/
private
static
XSSFWorkbook
getPathIntensityProfil
(
Sequence
sequence
,
List
<
ROI
>
rois
,
boolean
useRealUnit
,
EzGUI
ui
)
private
static
XSSFWorkbook
getPathIntensityProfil
(
Sequence
sequence
,
List
<
ROI
>
rois
,
boolean
useRealUnit
,
EzGUI
ui
)
throws
InterruptedException
{
{
final
XSSFWorkbook
result
=
(
XSSFWorkbook
)
Workbooks
.
createEmptyWorkbook
(
WorkbookFormat
.
XLSX
);
final
XSSFWorkbook
result
=
(
XSSFWorkbook
)
Workbooks
.
createEmptyWorkbook
(
WorkbookFormat
.
XLSX
);
...
@@ -401,8 +413,10 @@ public class PathIntensityProfiler extends EzPlug implements Block, EzStoppable
...
@@ -401,8 +413,10 @@ public class PathIntensityProfiler extends EzPlug implements Block, EzStoppable
* Computes intensity profil along path (contour for area ROI) for the given list of ROI.<br>
* Computes intensity profil along path (contour for area ROI) for the given list of ROI.<br>
*
*
* @return result in a XLSX workbook where we have one sheet per ROI.
* @return result in a XLSX workbook where we have one sheet per ROI.
* @throws InterruptedException
*/
*/
public
static
XSSFWorkbook
getPathIntensityProfil
(
Sequence
sequence
,
List
<
ROI
>
rois
,
boolean
useRealUnit
)
public
static
XSSFWorkbook
getPathIntensityProfil
(
Sequence
sequence
,
List
<
ROI
>
rois
,
boolean
useRealUnit
)
throws
InterruptedException
{
{
return
getPathIntensityProfil
(
sequence
,
rois
,
useRealUnit
,
null
);
return
getPathIntensityProfil
(
sequence
,
rois
,
useRealUnit
,
null
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment