<div dir="ltr"><div><div>Hi List<br><br></div>A couple of things...<br><br></div><div>1. The last couple of days when I try to extract the Fiji Linux 64 continuous release tar file I get an error "truncated gzip input". I can work around this by downloading the "all platforms" package instead. <br>
<br></div><div>2. It seems that the ops service is not getting injected into my jython scripts. Scripts works fine (ie data and display are injuected) until I try to call an op. Then I get "ops is not defined". This only happens when using a Fiji release. If I run imagej2 through a development environment using maven it works. <br>
<br></div><div>Thanks, an example script is below<br><br>Brian<br></div><div><br></div><div># @DatasetService data<br># @DisplayService display<br>
# @OpService ops<br><br># define a local directory to get the images from<br>directory="/home/bnorthan/Brian2014/Images/TempForEasyAccess/"<br><br># use 2-channels of the lena image for test image<br>image1Name="lena_red.tif"<br>
image2Name="lena_green.tif"<br><br># open first image<br>image1=data.open(directory+image1Name)<br>display.createDisplay(image1.getName(), image1); <br><br># open second image<br>image2=data.open(directory+image2Name)<br>
display.createDisplay(image2.getName(), image2);<br><br># add the images<br>image3 = ops.add(image1,image2)<br>display.createDisplay(image3.getName(), image3)<br><br><br><br></div></div>