32 lines
815 B
Python
32 lines
815 B
Python
import traceback
|
|
run ("imaging/sim")
|
|
|
|
show=True
|
|
|
|
|
|
|
|
stack = load_test_stack(show=False)
|
|
shifts= load_shifts("{images}/TestObjAligner/shifts.mat")
|
|
|
|
|
|
if show:
|
|
ret.show()
|
|
ret.updateAndDraw()
|
|
#stack = load_test_stack(show=True)
|
|
#get_context().getPluginManager().loadInitializePlugin("Align_TranslationFilter.java")
|
|
#translation_filter = get_context().getClassByName("Align_TranslationFilter").newInstance()
|
|
#shifts= load_shifts("{images}/TestObjAligner/shifts.mat")
|
|
|
|
"""
|
|
translation_filter.shifts = shifts
|
|
pfr = PlugInFilterRunner(translation_filter, "", "" )
|
|
ret = translation_filter.output
|
|
if show:
|
|
ret.show()
|
|
ret.updateAndDraw()
|
|
#stack = load_test_stack(show=False)
|
|
#r=translate(stack, shifts, True, java_code=True)
|
|
"""
|
|
|
|
|
|
#translate(stack, shifts, show=True, java_code=True) |