Skip to content
Snippets Groups Projects
Commit 1a5bae59 authored by hugo chauvet's avatar hugo chauvet
Browse files

fix IJ2 computeIntoFloat with an 's'

parent b66bd0fd
No related branches found
No related tags found
1 merge request!3Dev
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment