Script execution
This commit is contained in:
@@ -5,11 +5,11 @@ import ch.psi.pshell.imaging.Pen as Pen
|
||||
def wait_next():
|
||||
camera.waitNext(250)
|
||||
|
||||
def get_centroid():
|
||||
bi = image.getImage()
|
||||
op = show_panel(bi, "Original")
|
||||
def get_centroid(source):
|
||||
bi = source.getImage()
|
||||
if bi is None:
|
||||
return None
|
||||
op = show_panel(bi, "Original")
|
||||
ip = load_image(bi)
|
||||
grayscale(ip)
|
||||
invert(ip)
|
||||
@@ -29,5 +29,5 @@ def get_centroid():
|
||||
return centroid
|
||||
|
||||
|
||||
get_centroid()
|
||||
get_centroid(image)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user