Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ROI Statistics
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Icy
Extensions
ROI Statistics
Commits
4177a17b
Commit
4177a17b
authored
2 years ago
by
Stéphane DALLONGEVILLE
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a small bug on ROI track statistics (T position not properly updated)
parent
281361e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/plugins/adufour/roi/ROITrackStatistics.java
+10
-2
10 additions, 2 deletions
src/main/java/plugins/adufour/roi/ROITrackStatistics.java
with
10 additions
and
2 deletions
src/main/java/plugins/adufour/roi/ROITrackStatistics.java
+
10
−
2
View file @
4177a17b
...
...
@@ -9,6 +9,8 @@ import org.math.plot.plots.Plot;
import
icy.plugin.abstract_.Plugin
;
import
icy.plugin.interface_.PluginBundled
;
import
icy.roi.ROI
;
import
icy.roi.ROI2D
;
import
icy.roi.ROI3D
;
import
icy.roi.ROIDescriptor
;
import
icy.sequence.Sequence
;
import
icy.type.collection.CollectionUtil
;
...
...
@@ -48,8 +50,8 @@ public class ROITrackStatistics extends Plugin implements ROIBlock, PluginBundle
* @throws InterruptedException
* @throws UnsupportedOperationException
*/
public
static
void
buildPlot
(
List
<
TrackGroup
>
trackGroups
,
Sequence
sequence
,
int
channel
,
ROIDescriptor
descriptor
,
Plot2DPanel
plotPanel
)
throws
UnsupportedOperationException
,
InterruptedException
public
static
void
buildPlot
(
List
<
TrackGroup
>
trackGroups
,
Sequence
sequence
,
int
channel
,
ROIDescriptor
descriptor
,
Plot2DPanel
plotPanel
)
throws
UnsupportedOperationException
,
InterruptedException
{
final
int
sizeZ
=
(
sequence
!=
null
)
?
sequence
.
getSizeZ
()
:
1
;
final
double
timeInterval
=
(
sequence
!=
null
)
?
sequence
.
getTimeInterval
()
:
1
d
;
...
...
@@ -147,6 +149,12 @@ public class ROITrackStatistics extends Plugin implements ROIBlock, PluginBundle
if
(
descriptor
.
separateChannel
()
&&
(
channel
!=
-
1
))
roi
=
roi
.
getSubROI
(-
1
,
-
1
,
channel
);
// set ROI T position from detection T position
if
(
roi
instanceof
ROI2D
)
((
ROI2D
)
roi
).
setT
(
det
.
getT
());
else
if
(
roi
instanceof
ROI3D
)
((
ROI3D
)
roi
).
setT
(
det
.
getT
());
if
(
roi
.
isEmpty
())
{
xy
[
detInd
]
=
new
double
[]
{
det
.
getT
()
*
timeInterval
,
0
d
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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