Source code for Apps_VisualOdometry

"""
This module defines the Visual_Odometry class, responsible for managing visual odometry operations in a PyQt application.

Classes:
    - Visual_Odometry: A class to handle visual odometry operations.

Dependencies:
    - ShowResult: A module providing functionality to display various types of images.
"""
from ShowResult import ShowImageResult


[docs] class Visual_Odometry: """ Visual_Odometry class manages visual odometry operations in a PyQt application. Attributes: parent: Reference to the MainWindow of the application. show: Instance of ShowImageResult to display images. Methods: - __init__: Initializes the Visual_Odometry object. - visualOdometry: Performs visual odometry operations and displays the result. """ def __init__(self, MainWindow): self.parent = MainWindow self.show = ShowImageResult(self.parent)
[docs] def visualOdometry(self): """ Performs visual odometry operations and displays the result. If an image is available, it displays the original image and shows a message indicating that the feature is under development. """ if self.parent.image is None: pass else: self.show.showOriginalImage(self.parent.image) self.show.show_development()