easyidp.reconstruct.sort_img_by_distance#
- easyidp.reconstruct.sort_img_by_distance(recons, img_dict_all, roi, distance_thresh=None, num=None, save_folder=None)#
Advanced wrapper of sorting back2raw img_dict results by distance from photo to roi
- パラメータ:
recons (idp.Metashape or idp.Pix4D) -- The reconsturction project class
img_dict_all (dict) -- All output dict of roi.back2raw(...) e.g. img_dict = roi.back2raw(...) -> img_dict
roi (idp.ROI) -- Your roi variable
num (None or int) -- Keep the closest {x} images
distance_thresh (None or float) -- Keep the images closer than this distance to ROI.
save_folder (str, optional) -- the folder to save json files and parts of ROI on raw images, by default None
- 戻り値:
the same structure as output of roi.back2raw()
- 戻り値の型:
dict