Camera model fitting

Camera model fitting and refinement.

orthority.fit.refine_rpc(rpc, gcps, method=shift)

Refine an RPC model with GCPs.

Finds the least squares solution to the ‘shift’ or ‘shift-and-drift’ bias compensation refinements described in https://doi.org/10.1016/j.isprsjprs.2005.11.001 for a single image. Refinements are incorporated into the provided RPC model. The approach is suited to narrow field of view satellite imagery.

Parameters:
Returns:

Refined RPC parameters as a dictionary.

Return type:

dict

orthority.fit.fit_frame_exterior(int_param_dict, gcp_dict, crs=None)

Fit frame camera exterior parameters to GCPs, given the camera’s interior parameters.

Parameters:
  • int_param_dict (dict[str, dict[str, Any]]) – Interior parameter dictionary.

  • gcp_dict (dict[str, Sequence[dict]]) – GCP dictionary e.g. as returned by read_im_gcps() or read_oty_gcps().

  • crs (str | CRS | None) – CRS of the camera world coordinate system as an EPSG, proj4 or WKT string, or CRS object. If set to None (the default), GCPs are assumed to be in the world coordinate CRS, and are not transformed. Otherwise, GCPs are transformed from geographic WGS84 coordinates to this CRS if it is supplied.

Returns:

Exterior parameter dictionary.