Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str For NameStore Call AttributeLoad NameLoad attr NameLoad body If Call AttributeLoad NameLoad attr Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If CompareNotEq Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Raise Call NameLoad Str Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr While UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareNotEq NameLoad Str body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp BinOpSub Call NameLoad NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore ListComp BinOpSub Call NameLoad NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If NameLoad body Assign NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict For NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameStore NameStore Call NameLoad Str Assign NameStore NameStore NameStore Call NameLoad Str For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return TupleLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore Call NameLoad GeneratorExp Call NameLoad SubscriptLoad NameLoad Slice Num Num comprehension NameStore NameLoad Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Continue With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameStore body If CompareNotEq Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Raise Call NameLoad Str Assign NameStore Lambda arguments args NameParam defaults ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AugAssignSub NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return SubscriptLoad BinOpDiv NameLoad SubscriptLoad NameLoad Index Num Slice Num Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareEq BinOpMod NameLoad Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr ListLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Dict Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Index Call NameLoad NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict For NameStore NameLoad body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler body Pass Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index NameLoad Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Call NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad Str Print Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Print Str Print AttributeLoad NameLoad attr Print Str Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Index Num Print Str Print NameLoad Print Str Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Print NameLoad
N/A N/A os N/A numpy N/A itertools N/A logging scipy.spatial.kdtree KDTree memo memo N/A logger N/A N/A logging getLogger vision.reconstruction.pmvs read N/A N/A root start N/A 0 N/A N/A 
    Returns a reconstruction object that has all the important information in it
    that is necessary to reconstruct the scene.
     N/A N/A N/A logger debug N/A N/A Read {0} format root N/A patches N/A read_patches N/A open N/A find_patch_file root start N/A projections N/A read_projections N/A N/A {0}/txt/ format root start N/A N/A patches projections N/A find_patch_file N/A N/A root N/A N/A N/A 
    Finds the patch file
     N/A root N/A N/A N/A os path join root models N/A file N/A N/A os listdir root N/A N/A N/A N/A file endswith .patch N/A N/A N/A N/A N/A os path join root file N/A N/A RuntimeError N/A N/A No patch file found in {0} format root N/A read_patches N/A N/A data start N/A 0 N/A N/A 
    Reads a PMVS patch file, typically called something like option-0000.patch. 
    Returns an array of patches.
     N/A N/A N/A N/A N/A N/A data readline strip PATCHES N/A N/A N/A RuntimeError expected PATCHES header N/A patches N/A N/A patch N/A range N/A int N/A N/A N/A N/A data readline strip N/A N/A line N/A N/A N/A N/A data readline strip N/A N/A line N/A N/A line N/A N/A N/A N/A data readline strip N/A N/A line PATCHS N/A N/A N/A RuntimeError N/A N/A expected PATCH for patch {0} format patch N/A line N/A N/A N/A N/A data readline strip N/A realcoords N/A N/A float x N/A x N/A N/A line split N/A line N/A N/A N/A N/A data readline strip N/A normal N/A N/A float x N/A x N/A N/A line split N/A line N/A N/A N/A N/A data readline strip N/A N/A score _ _ N/A N/A float x N/A x N/A N/A line split N/A N/A N/A data readline N/A line N/A N/A data readline N/A visibles N/A N/A N/A int x start N/A x N/A N/A line split N/A N/A N/A data readline N/A line N/A N/A N/A N/A data readline strip N/A disagrees N/A N/A N/A int x start N/A x N/A N/A line split N/A N/A N/A patches append N/A Patch realcoords normal score visibles disagrees N/A patches N/A Patch N/A object N/A __init__ N/A N/A self realcoords normal score visibles disagrees N/A N/A N/A N/A self realcoords N/A N/A numpy array realcoords N/A N/A self normal N/A N/A numpy array normal N/A N/A self score score N/A N/A self visibles visibles N/A N/A self disagrees disagrees N/A __repr__ N/A N/A self N/A N/A N/A N/A Patch%s N/A str N/A N/A self realcoords N/A self normal N/A self score N/A self visibles N/A self disagrees N/A project N/A N/A self projection N/A N/A N/A N/A N/A projection project N/A self realcoords N/A projectall N/A N/A self projections disagrees N/A True N/A N/A disagrees N/A N/A use N/A N/A self visibles N/A self disagrees N/A N/A use N/A self visibles N/A mapping N/A N/A point N/A N/A self visibles N/A self disagrees N/A N/A N/A mapping N/A point N/A N/A self project N/A projections N/A point N/A mapping N/A N/A get_patch_bounds N/A N/A patches N/A N/A N/A xmin ymin zmin N/A float +infinity N/A xmax ymax zmax N/A float -infinity N/A patch patches N/A N/A N/A x y z _ N/A patch realcoords N/A xmin N/A min xmin x N/A xmax N/A max xmax x N/A ymin N/A min ymin y N/A ymax N/A max ymax y N/A zmin N/A min zmin z N/A zmax N/A max zmax z N/A N/A N/A xmin xmax N/A ymin ymax N/A zmin zmax N/A read_projections N/A N/A root start N/A 0 N/A N/A 
    Reads in all the projection information stored inside txt files.
     N/A frames N/A open N/A N/A N/A os path join root .. list.rd.txt N/A frames N/A iter N/A N/A int N/A x N/A 2 -5 N/A x frames N/A projections N/A N/A file N/A N/A os listdir root N/A N/A N/A N/A N/A file endswith .txt N/A N/A N/A N/A open N/A N/A N/A os path join root file data N/A N/A N/A N/A N/A N/A N/A data readline strip CONTOUR N/A N/A N/A RuntimeError expceted CONTOUR header N/A read N/A N/A N/A x N/A N/A N/A float y N/A y N/A N/A N/A N/A N/A N/A x readline strip split N/A m N/A N/A numpy array N/A N/A read data N/A read data N/A read data N/A frame N/A N/A frames next N/A frame start N/A N/A projections N/A frame N/A Projection m frame N/A projections N/A Projection N/A object N/A __init__ N/A N/A self matrix frame N/A N/A N/A N/A self matrix matrix N/A N/A self frame frame N/A project N/A N/A self real N/A N/A N/A a N/A N/A numpy dot N/A self matrix real N/A N/A N/A a N/A a N/A 2 N/A 0 2 N/A N/A RealWorldMap N/A object N/A __init__ N/A N/A self patches projections N/A N/A N/A N/A self patches patches N/A N/A self projections projections N/A N/A N/A self build N/A build N/A N/A self N/A N/A N/A N/A N/A logger debug Building maps for conversion between real and image space N/A N/A self imagetree N/A N/A N/A self imagemap N/A N/A N/A self realtree N/A KDTree N/A N/A x realcoords N/A x N/A self patches N/A N/A self realmapping N/A N/A N/A num patch N/A enumerate N/A self patches N/A N/A N/A N/A num 1000 0 N/A N/A N/A N/A logger debug N/A N/A Built maps for {0} of {1} patches format num N/A len N/A self patches N/A resp N/A N/A N/A _ projection N/A N/A N/A self projections items N/A N/A inimage N/A N/A patch project projection N/A N/A N/A projection id N/A self imagetree N/A N/A N/A N/A self imagetree N/A N/A projection id N/A N/A N/A N/A self imagemap N/A N/A projection id N/A N/A N/A N/A N/A N/A self imagetree N/A N/A projection id append inimage N/A N/A N/A N/A self imagemap N/A N/A projection id N/A N/A tuple inimage N/A patch realcoords N/A N/A resp N/A N/A projection id inimage N/A N/A N/A self realmapping N/A N/A tuple N/A patch realcoords resp N/A N/A N/A logger debug N/A N/A Done building maps for {0} patches format N/A len N/A self patches N/A N/A N/A logger debug Building image KD tree N/A N/A key imagecoords N/A N/A N/A self imagetree items N/A N/A N/A N/A self imagetree N/A key N/A KDTree imagecoords N/A realtoimages N/A N/A self coords N/A N/A N/A N/A _ nearestindex N/A N/A N/A self realtree query coords N/A nearest N/A N/A N/A self realtree data N/A nearestindex N/A N/A N/A self realmapping N/A N/A tuple nearest N/A realregiontoimages N/A N/A self coords N/A N/A N/A N/A _ nearestindices N/A N/A N/A self realtree query coords N/A resp N/A N/A nearestindex nearestindices N/A N/A nearest N/A N/A N/A self realtree data N/A nearestindex N/A points N/A N/A self realmapping N/A N/A tuple nearest N/A N/A k v N/A N/A points iteritems N/A N/A N/A k resp N/A N/A N/A resp N/A k N/A N/A N/A N/A N/A resp N/A k append v N/A resp N/A imagetoreal N/A N/A self projection coords N/A N/A N/A N/A N/A projection N/A projection id N/A N/A N/A N/A N/A N/A _ nearestindex N/A N/A N/A N/A self imagetree N/A projection query coords N/A nearest N/A N/A N/A N/A self imagetree N/A projection data N/A nearestindex N/A N/A N/A N/A self imagemap N/A projection N/A N/A tuple nearest N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A logging basicConfig level N/A logging DEBUG N/A N/A patches projections N/A read /csail/vision-videolabelme/databases/video_adapt/demos/bottle_table/bundler/pmvs N/A N/A get_patch_bounds patches N/A mapping N/A RealWorldMap patches projections N/A patch N/A patches N/A 0 N/A REAL = N/A N/A patch realcoords N/A N/A N/A a b N/A N/A N/A N/A N/A mapping realtoimages N/A patch realcoords items N/A 0 N/A PROJECTION = N/A b N/A N/A REAL (again) = N/A r N/A N/A mapping imagetoreal a b N/A r