diff jython_script.py @ 3:d99cf938ad41 draft

planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
author iuc
date Wed, 26 Aug 2015 14:37:34 -0400
parents c8fc3f34cbff
children
line wrap: on
line diff
--- a/jython_script.py	Tue Aug 04 11:15:16 2015 -0400
+++ b/jython_script.py	Wed Aug 26 14:37:34 2015 -0400
@@ -33,11 +33,9 @@
 bit_depth = image_plus.getBitDepth()
 image_type = image_plus.getType()
 # Create an ImagePlus object for the image.
-image_plus_copy = image_plus.createImagePlus()
+image_plus_copy = image_plus.duplicate()
 # Make a copy of the image.
-image_processor_copy = image_plus.getProcessor().duplicate()
-# Set the ImageProcessor on the duplicate ImagePlus object.
-image_plus_copy.setProcessor( "image copy", image_processor_copy )
+image_processor_copy = image_plus_copy.getProcessor()
 
 # Perform the analysis on the ImagePlus object.
 if noise == 'add_noise':