Python imageJ 终极大杀器

print("Open ImageJ Using Python...")
import imagej
ij = imagej.init(ij_dir_or_version_or_endpoint=self.imageJRootPath, headless=False,
                 new_instance=True)
ij.ui().showUI()
path = r'D:/Data/Aloe512.png'
macro2 ='open("' + path + '");' + 'run("ROI Manager...");'
# macro2 = """
# open("D:/Data/Aloe512.png");
# run("ROI Manager...");
# """

result = ij.py.run_macro(macro2)
©️2020 CSDN 皮肤主题: 技术黑板 设计师:CSDN官方博客 返回首页