Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Create mosaïc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DISCO Beamline
Create mosaïc
Commits
1a5bae59
Commit
1a5bae59
authored
May 25, 2022
by
hugo chauvet
Browse files
Options
Downloads
Patches
Plain Diff
fix IJ2 computeIntoFloat with an 's'
parent
b66bd0fd
No related branches found
No related tags found
1 merge request
!3
Dev
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ImageJ/script_mosaic_telemos.py
+8
-1
8 additions, 1 deletion
ImageJ/script_mosaic_telemos.py
with
8 additions
and
1 deletion
ImageJ/script_mosaic_telemos.py
+
8
−
1
View file @
1a5bae59
...
...
@@ -43,7 +43,14 @@ from utils.mmlib import load_metadata, get_mm2_first_image_metadata, get_dimensi
# Import to do operation with ImageJ2 and ImgMath
from
net.imglib2.util
import
Intervals
from
net.imglib2.img.display.imagej
import
ImageJFunctions
as
IL
from
net.imglib2.algorithm.math.ImgMath
import
computeIntoFloat
,
sub
,
div
,
GT
,
LT
,
IF
,
THEN
,
ELSE
,
minimum
from
net.imglib2.algorithm.math.ImgMath
import
sub
,
div
,
GT
,
LT
,
IF
,
THEN
,
ELSE
,
minimum
# For IJ2 compatibility
try
:
from
net.imglib2.algorithm.math.ImgMath
import
computeIntoFloat
except
:
from
net.imglib2.algorithm.math.ImgMath
import
computeIntoFloats
as
computeIntoFloat
from
net.imglib2.type.numeric.real
import
FloatType
from
net.imglib2.view
import
Views
from
net.imagej
import
Dataset
...
...
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