Open ctrueden opened 5 years ago
The following script:
#@ OpService ops #@ Dataset im1 #@ Dataset im2 #@ double alpha #@output Dataset result vars = [ "im1": im1, "im2": im2, "alpha": alpha ] result = ops.eval("alpha*im1+(1-alpha)*im2", vars)
fails with the following error:
java.lang.IllegalArgumentException: No matching 'math.multiply' op Request: - math.multiply( Double, DefaultDataset)
Switching the order of the arguments of * instead yields:
*
java.lang.IllegalArgumentException: No matching 'math.add' op Request: - math.add( PlanarImg, PlanarImg)
The following script:
fails with the following error:
Full details of the error
``` Candidates: 1. (ArrayImg arg) = net.imagej.ops.math.ConstantToArrayImageP$MultiplyByte( ==> ArrayImg arg, byte value) Inconvertible type: java.lang.Double => net.imglib2.img.array.ArrayImgSwitching the order of the arguments of
*
instead yields:Full details of the error
``` Candidates: 1. (ArrayImg arg) = net.imagej.ops.math.ConstantToArrayImageP$AddByte( ==> ArrayImg arg, byte value) Inconvertible type: net.imglib2.img.planar.PlanarImg => net.imglib2.img.array.ArrayImg