30 lines
784 B
Python
30 lines
784 B
Python
run("sim/utils")
|
|
|
|
|
|
det.start()
|
|
add_device(RoiIntensity("Region1", image, 10, 50, 20, 10), True)
|
|
add_device(RoiIntensity("Region2", image, 10, 50, 30, 15), True)
|
|
|
|
|
|
import ch.psi.pshell.data.ProviderCSV as ProviderCSV
|
|
ProviderCSV.setDefaultItemSeparator(" ")
|
|
tscan((Region1, Region2), 10, 0.1, layout="table", provider = "csv")
|
|
|
|
print integrate_roi(image, 10, 50, 20, 10)
|
|
|
|
#save_image(resized, get_context().setup.expandPath("{images}/out.tif") ,"tiff")
|
|
|
|
|
|
|
|
|
|
ret = grab_frames(image, 10, sleep=0.1)
|
|
av = average_ips(ret, None, True)
|
|
print type(av.getProcessor())
|
|
#db=av.getBufferedImage().getData().getDataBuffer()
|
|
data = get_ip_array(av)
|
|
plot(data)
|
|
|
|
save_image(av, "{images}/float.tif","tiff")
|
|
av = average_ips(ret, None, False)
|
|
save_image(av, "{images}/int.tif","tiff")
|