1
General / Re: Vignetting initialized
« on: May 14, 2018, 02:18:21 PM »
Does anybody have more information on this topic?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
-xmp
If you just use exiftool the normal way and try to copy all tags from one file to another via-all
they will get "translated" or rearranged internally somehow and PhotoScan will not recognize MicaSense imagery. So the final command for transferring all metadata from MicaSense raw images to altered images would be:exiftool -tagsfromfile IMG_0000_1.tif -xmp IMG_0000_1_RAD.tif
exiftool -tagsfromfile IMG_0000_2.tif -xmp IMG_0000_2_RAD.tif
I am curious to know which metadata that Photoscan reads and indentify images as multispectral.
Besides the "no way to check if a step was done or not" issue
chunk.dense_cloud is None
and if a model was build bychunk.model is None
and if a DEM exists by chunk.elevation is None
and so on...
def reduce_errors_ru(chunk, thresh=20, config_optimize):
""" Reduce Reconstruction Uncertainty """
print(" -> Reconstruction Uncertainty Threshold: {0}".format(thresh))
pc = chunk.point_cloud
pnts_init = len(pc.points)
print(" -> Points before Reconstruction Uncertainty Reduction: {0}".format(pnts_init))
fltr = ps.PointCloud.Filter()
fltr.init(chunk, ps.PointCloud.Filter.ReconstructionUncertainty)
fltr.selectPoints(2 * thresh)
pc.removeSelectedPoints()
pnts_inter = pnts_init - len(pc.points)
print(" -> Removed {0} points".format(pnts_inter))
chunk.optimizeCameras(**config_optimize)
fltr.selectPoints(thresh)
pc.removeSelectedPoints()
pnts_end = pnts_inter - len(pc.points)
log(" -> Removed {0} points".format(pnts_end))
log(" -> Points after Reconstruction Uncertainty Reduction: {0}".format(len(pc.points)))
chunk.optimizeCameras(**config_optimize)
import PhotoScan as ps
pf_proj = '/path/to/my/existing/document.psz'
doc = ps.Document()
if not doc.open(pf_proj):
print("ERROR: Could not open document: " + pf_proj)