本文整理匯總了Python中Input.readInput方法的典型用法代碼示例。如果您正苦於以下問題:Python Input.readInput方法的具體用法?Python Input.readInput怎麽用?Python Input.readInput使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Input
的用法示例。
在下文中一共展示了Input.readInput方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: main
# 需要導入模塊: import Input [as 別名]
# 或者: from Input import readInput [as 別名]
def main(inputFile):
# Parse the input file, loading images, depth data, etc.
K, images = Input.readInput(inputFile)
print "Loaded " + str(len(images)) + " images from file " + inputFile
# Reconstruction: Combine each image's point cloud into a common point cloud
pointCloud, transforms = reconstruction(K, images)
print "Reconstruction finished!"
# Manipulation: Add to or modify the contents of the point cloud
manipulation(pointCloud)
print "Manipulation finished!"
# Hallucination: Generate new data from the composite point cloud
hallucination( K, pointCloud, map( lambda t: np.linalg.inv( t.mat ), transforms ) )
print "Hallucination finished!"
print "Final step: Saving point cloud to disk . . ."
pointCloud.outputToPLY("points.ply")