Skip to content
Snippets Groups Projects
functions.md 1.73 KiB
Newer Older
  • Learn to ignore specific revisions
  • # Function Overview
    
    ## **Tracing Sutures (Interactive Path Tracing in 2D Images)**
    _This project seeks to develop a GUI enabling users to interactively create and extract paths in 2D images._
    
    ---
    
    ## **Functions List**
    
    
    s224389's avatar
    s224389 committed
    - `set_img_path`
    
        - Takes the path to the image as input.
        - Sets self.path.
        - Is triggered on button click.
    
    
    s224389's avatar
    s224389 committed
    - `load_img`
    
        - Takes self.path as input.
        - Displays the input image on the GUI.
        - Is triggered on button click.
    
    
    s224389's avatar
    s224389 committed
    - `start_edit`
    
        - Takes no input.
        - Sets self.editEnabled to true.
        - Is triggered on button click.
    
    
    s224389's avatar
    s224389 committed
    - `calc_gradients`
    
        - Takes self.path as input.
        - Calculates gradients in input image and saves as self.gradient
    
    s224389's avatar
    s224389 committed
        - Is triggered by `load_img`.
    
    s224389's avatar
    s224389 committed
    - `set_point`
    
        - Takes no input.
        - Creates a point of the spline on the image when the users clicks left clicks.
        - Adds the point to self.points.
    
    
    s224389's avatar
    s224389 committed
    - `remove_point`
    
        - Takes no input.
        - Removes the point the user is hovering over when the user right clicks.
        - Removes the point from self.points.
    
    
    s224389's avatar
    s224389 committed
    - `update_alpha`
    
        - Updates self.alpha.
        - Is triggered by slider.
    
    
    s224389's avatar
    s224389 committed
    - `update_beta`
    
        - Updates self.beta.
        - Is triggered by slider.
    
    
    s224389's avatar
    s224389 committed
    - `active_contour`
    
        - Takes self.points, self.gradient, self.alpha and self.beta as inputs.
        - Performs active contour for finding the curve.
        - Displays the found _snake_.
    
    
    s224389's avatar
    s224389 committed
    - `set_export_path`
    
        - Sets self.exportPath to the path chosen (by GUI-popup?) by the user.
    
    
    s224389's avatar
    s224389 committed
    - `export_line`
    
        - Takes self.exportPath as input.
        - Creats a new np-array file on the chosen path containing the found snake.
    
    
    
    s224389's avatar
    s224389 committed
    ## **Notes**
    
    _This is only a rough first draft/overview of the functions needed for the project._
    
    ---
    
    **Author:** Christian Bjerregaard
    **Date:** 07-01-2025