UFO¶
- class giant.ufo.ufo_class.UFO(camera, scene, dynamics, state_initializer, search_distance_function, detector_kwargs=None, tracker_kwargs=None, initial_sopnav_options=None, tracking_quality_code_minimum=3, identify_hot_pixels_and_unmatched_stars=True, clear_detector_before_tracking=True, visual_inspection_quality_code_minimum=4)[source]¶
This class provides a simple user interface for doing the combined steps of detecting and tracking UFOs in images.
The primary benefit to using this class is that it packages the data from the
Detectorclass to theTrackerclass without you having to interact with it directly. Beyond that it is primarily just calls to the methods of theDetectorandTrackerclasses, letting them do all of the hard work behind the scenes.The typical way to use this class it to initialize it with all of the settings needed for the
DetectorandTrackerand then to call the following methods in order:If your settings were right, this should result in 2 csv files (1 with possible detections and one with possible tracks) and a visualization of the detections for each image displayed either interactively or saved to files.
For more details about the processes working in this class or for successfully tuning things for identifying tracks, see the :mod:.detector`,
tracker, andufodocumentation.- Parameters:
camera (Camera) – The
Cameracontaining the images to be processedscene (Scene) – The
Scenespecifying the central body as the first target and any extra extended bodies that should be ignored as other targets.dynamics (Dynamics) – The dynamics model to use in the EKF for propagating the state from one time to another
state_initializer (Callable[[Measurement, Type[State]], State]) – A callable which takes in a
Measurementinstance andDynamics.Stateclass object and returns an initialized state.search_distance_function (Callable[[ExtendedKalmanFilter], float]) – A callable which takes in an
ExtendedKalmanFilterand returns what the Euclidean search distance should be for that EKF in pixels. This is only applied after the first pair has been madedetector_kwargs (Dict[str, Any] | None) – The key word arguments to pass to the
Detectorclasstracker_kwargs (Dict[str, Any] | None) – The key word arguments to pass to the
Trackerclassinitial_sopnav_options (StellarOpNavOptions | None) – The options struct to use to initialize the
StellarOpNavinstance instance before it is passed to theDetectortracking_quality_code_minimum (int) – The minimum quality code to pass a possible detection to the tracking algorithm
identify_hot_pixels_and_unmatched_stars (bool) – A flag specifying whether to attempt to filter out hot pixels and unmatched stars from the UFO detections
clear_detector_before_tracking (bool) – A flag specifying whether to clear out the intermediate lists created in the
Detectorbefore moving on to theTracker. This can be necessary for memory management purposesvisual_inspection_quality_code_minimum (int) – The minimum quality code to pass a possible detection to the detection visualizations
Summary of Methods
This method detects potential UFOs in all images that have been added to the camera and have not been processed yet. |
|
This method saves both the detection and tracker results to a file (as long as they have been run). |
|
This method packages the possible UFO detections for the |
|
This method visualizes detection results, overlaying them on the images themselves. |