Script execution
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import ij
|
||||
from ij.io import Opener
|
||||
from ijutils import *
|
||||
from ch.psi.pshell.imaging.Overlays import *
|
||||
from ch.psi.pshell.imaging.Utils import *
|
||||
@@ -43,11 +45,15 @@ def integrate_frames(source, samples=1, roi=None, wait_next=False, sleep=0, as_f
|
||||
|
||||
|
||||
def get_image_array(ip):
|
||||
if type(av.getProcessor()) == ij.process.FloatProcessor:
|
||||
if type(ip.getProcessor()) == ij.process.FloatProcessor:
|
||||
return ip.getProcessor().getFloatArray()
|
||||
else:
|
||||
return ip.getProcessor().getIntArray()
|
||||
|
||||
def open_image(file_name)
|
||||
file_name = get_context().setup.expandPath(file_name)
|
||||
return Opener().openTiff(file_name, 1)
|
||||
|
||||
|
||||
ret = grab_frames(image, 10, sleep=0.1)
|
||||
av = average(ret, None, True)
|
||||
|
||||
Reference in New Issue
Block a user