imagedef2d.py

NOTE: This module is a feature under developement.

class ImageDefOpts(save_path: pathlib.Path | None = None, save_tag: str = 'defimage', mask_input_image: bool = True, crop_on: bool = False, crop_px: numpy.ndarray | None = None, calc_res_from_fe: bool = False, calc_res_border_px: int = 5, add_static_ref: bool = False, fe_interp: str = 'linear', fe_rescale: bool = True, fe_extrap_outside_fov: bool = True, image_def_order: int = 3, image_def_extrap: str = 'nearest', image_def_extval: float = 0.0, def_complex_geom: bool = True)[source]

Bases: object

save_path
save_tag
mask_input_image
crop_on
crop_px
calc_res_from_fe
calc_res_border_px
add_static_ref
fe_interp
fe_rescale
fe_extrap_outside_fov
image_def_order
image_def_extrap
image_def_extval
def_complex_geom
__init__(save_path=None, save_tag='defimage', mask_input_image=True, crop_on=False, crop_px=None, calc_res_from_fe=False, calc_res_border_px=5, add_static_ref=False, fe_interp='linear', fe_rescale=True, fe_extrap_outside_fov=True, image_def_order=3, image_def_extrap='nearest', image_def_extval=0.0, def_complex_geom=True)
class ImageDef2D[source]

Bases: object

static image_mask_from_sim(cam_data, image, coords, connectivity)[source]
static upsample_image(cam_data, input_im)[source]
static preprocess(cam_data, image_input, coords, connectivity, disp_x, disp_y, id_opts, print_on=False)[source]
static deform_one_image(upsampled_image, cam_data, id_opts, coords, disp, image_mask=None, print_on=True)[source]
static deform_images_to_disk(cam_data, upsampled_image, coords, connectivity, disp_x, disp_y, image_mask, id_opts, print_on=False)[source]