Module Import alias Import alias identifier ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore 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 Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpDiv AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore BinOpDiv AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Num Num ExtSlice Slice Index AttributeLoad NameLoad attr Assert BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareEq AttributeLoad NameLoad attr Num CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareEq AttributeLoad NameLoad attr Num CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index CompareEq NameLoad Num AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Assign NameStore BinOpMult Num AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num Assign NameStore BinOpSub BinOpSub Num NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index Num BinOpMult NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index Num BinOpMult NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index Num BinOpMult NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Raise Call NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If NameLoad body Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list decorator_list
N/A N/A os N/A numpy np N/A image_util IntrinsicDecomposition N/A object N/A N/A  Current state of a reconstruction.  All entries (except ``input``) are
    mutable.  __init__ N/A N/A self params input N/A N/A N/A N/A self _input input N/A N/A self params params N/A N/A self iter_num None N/A N/A self stage_num None N/A N/A self labels_nz None N/A N/A self intensities None N/A N/A self chromaticities None N/A N/A self shading_target None N/A copy N/A N/A self N/A N/A N/A ret N/A IntrinsicDecomposition N/A self params N/A self input N/A N/A ret iter_num N/A self iter_num N/A N/A ret stage_num N/A self stage_num N/A N/A ret labels_nz N/A N/A N/A self labels_nz copy N/A N/A ret intensities N/A N/A N/A self intensities copy N/A N/A ret chromaticities N/A N/A N/A self chromaticities copy N/A N/A N/A self shading_target None N/A N/A N/A ret shading_target N/A N/A N/A self shading_target copy N/A ret N/A get_r_s_nz N/A N/A self N/A N/A N/A  Return (reflectance, shading), with just the nonmasked entries  N/A s_nz N/A N/A N/A self input image_gray_nz N/A N/A self intensities N/A N/A self labels_nz N/A r_nz N/A N/A N/A self input image_rgb_nz N/A N/A N/A np clip s_nz 0.0001 100000.0 N/A N/A N/A N/A np newaxis N/A N/A N/A N/A s_nz ndim 1 N/A N/A r_nz ndim 2 N/A N/A N/A r_nz shape N/A 1 3 N/A N/A r_nz s_nz N/A get_r_s N/A N/A self N/A N/A N/A  Return (reflectance, shading), in the full (rows, cols) shape  N/A N/A r_nz s_nz N/A N/A self get_r_s_nz N/A r N/A N/A np zeros N/A N/A N/A self input rows N/A N/A self input cols 3 dtype N/A r_nz dtype N/A s N/A N/A np zeros N/A N/A N/A self input rows N/A N/A self input cols dtype N/A s_nz dtype N/A N/A r N/A N/A N/A self input mask_nz r_nz N/A N/A s N/A N/A N/A self input mask_nz s_nz N/A N/A N/A N/A s ndim 2 N/A N/A r ndim 3 N/A N/A N/A r shape N/A 2 3 N/A N/A r s N/A get_r_gray N/A N/A self N/A N/A N/A r_nz N/A N/A self intensities N/A N/A self labels_nz N/A r N/A N/A np zeros N/A N/A N/A self input rows N/A N/A self input cols dtype N/A r_nz dtype N/A N/A r N/A N/A N/A self input mask_nz r_nz N/A r N/A get_labels_visualization N/A N/A self N/A N/A N/A colors N/A N/A self get_reflectances_rgb N/A colors N/A N/A np vstack N/A colors N/A 0.0 0.0 0.0 N/A labels N/A N/A self get_labels N/A N/A labels N/A N/A labels -1 N/A self nlabels N/A v N/A colors N/A N/A labels N/A N/A v N/A get_reflectances_rgb N/A N/A self N/A N/A N/A nlabels N/A N/A N/A self intensities shape N/A 0 N/A rgb N/A N/A np zeros N/A nlabels 3 N/A s N/A 3.0 N/A self intensities N/A r N/A N/A self chromaticities N/A N/A N/A 0 N/A g N/A N/A self chromaticities N/A N/A N/A 1 N/A b N/A N/A 1.0 r g N/A N/A rgb N/A N/A N/A 0 N/A s r N/A N/A rgb N/A N/A N/A 1 N/A s g N/A N/A rgb N/A N/A N/A 2 N/A s b N/A rgb N/A visualize_html N/A N/A self N/A N/A N/A N/A NotImplementedError TODO N/A nlabels N/A N/A self N/A N/A N/A N/A N/A N/A self intensities shape N/A 0 N/A property input N/A N/A self N/A N/A N/A N/A self _input N/A property get_labels N/A N/A self N/A N/A N/A  Returns labels, expanded to the full image shape, with masked
        entries having a label of -1  N/A labels N/A N/A np empty N/A N/A N/A self input rows N/A N/A self input cols dtype N/A np int32 N/A N/A N/A labels fill -1 N/A N/A labels N/A N/A N/A self input mask_nz N/A self labels_nz N/A labels N/A save N/A N/A self solver out_dir save_extra id N/A False None N/A N/A  Save results to a directory  N/A N/A id N/A N/A id N/A N/A self input id N/A N/A id N/A N/A N/A ValueError Need an id for saving N/A N/A N/A N/A N/A os path exists out_dir N/A N/A N/A N/A os makedirs out_dir N/A basename N/A N/A N/A os path join out_dir N/A str N/A N/A self input id N/A N/A r s N/A N/A self get_r_s N/A r_filename N/A %s-r.png basename N/A N/A N/A image_util save r_filename r mask_nz N/A N/A solver input mask_nz rescale True N/A s_filename N/A %s-s.png basename N/A N/A N/A image_util save s_filename s mask_nz N/A N/A solver input mask_nz rescale True N/A save_extra N/A N/A r_gray_filename N/A %s-r-gray.png basename N/A r_gray N/A N/A self get_r_gray N/A N/A N/A image_util save r_gray_filename r_gray mask_nz N/A N/A solver input mask_nz rescale True N/A labels_filename N/A %s-labels.png basename N/A labels_image N/A N/A self get_labels_visualization N/A N/A N/A image_util save labels_filename labels_image mask_nz N/A N/A solver input mask_nz rescale True N/A N/A