Skip to content

Reload registration from file when image have different resolution #203

Answered by jensjoachim
jensjoachim asked this question in Q&A
Discussion options

You must be logged in to vote

For whoever like to store/reload registration data (Homographic), these function can be used:

Store registration data:

    def store_registration(self,print_en=False):
        if not self.cameras_registered:
            print("Camera registration not stored!")
        else:    
            # Gather data
            attr_data_dict_index = ["aspect","focal","ppx","ppy","R","t"]
            attr_data_dict_list = []
            for i in range(len(stitcher.cameras)):
                attr_data_dict = {}
                for attr in attr_data_dict_index:
                    attr_data_dict[attr] = getattr(stitcher.cameras[i], attr)
                attr_data_dict_list.append(attr_data_dict)
       …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@lukasalexanderweber
Comment options

@jensjoachim
Comment options

@lukasalexanderweber
Comment options

@lukasalexanderweber
Comment options

@jensjoachim
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jensjoachim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants