rectangular_solve_project
- misalign.canvas.canvas_rectangular.rectangular_solve_project(project: MISProject, image_names: list[str] | None = None, origin: str | None = None, relation_map_function: Callable | None = None) dict[str, tuple[int, int]]
Finds the origin relative position of images given a MISProject.
- Parameters:
- projectMISProject
A MISProject with images and relations.
- image_nameslist[str] | None
List of image names or None by default. If None all images in project will be used.
- originstr | None
Image name to start relation map at or None by default. If None first image in project will be used.
- relation_map_functionCallable
Default simple_relation_map. Any function that accepts relations,image_names,origin and returns {‘image a’:[(‘image b’,{rectangular relation dict a-b}),…],…}
- Returns:
- origin_relative_offsetsdict[str, tuple[int, int]]
Dictionary of the form “image_name”:(origin-relative x, origin-relative y) Origin-relative x and y may be negative values.