def constructFov(shape, t0, t1, scale=[1, 1, 1]): [xshape, yshape, zshape] = shape [xscale, yscale, zscale] = scale fov = FieldOfView(t0, 0, 0, 0, t1, xscale * (xshape - 1), yscale * (yshape - 1), zscale * (zshape - 1)) return fov
def getPythonFovFromOptions(options, shape, t0, t1): from hytra.core.fieldofview import FieldOfView [xshape, yshape, zshape] = shape fov = FieldOfView(t0, 0, 0, 0, t1, options.x_scale * (xshape - 1), options.y_scale * (yshape - 1), options.z_scale * (zshape - 1)) return fov