PIXELBANKv9.1.0
Menu

Count how many cameras observe a particular 3D point.

In Structure from Motion, a track is the set of 2D observations of a single 3D point across multiple images. The track length is the number of images where the point is observed.

Longer tracks are valuable because:

  • More observations lead to better triangulation accuracy
  • They provide more constraints for bundle adjustment
  • They help verify the correctness of feature matching

Typically, we filter out points with very short tracks (e.g., < 3) as they may be noise or outliers.

Example:

Input:
track_length([True, True, False, True, False])
Output:
3
Reasoning:

Counting visible cameras:

  • Camera 0: True β†’ visible
  • Camera 1: True β†’ visible
  • Camera 2: False β†’ not visible
  • Camera 3: True β†’ visible
  • Camera 4: False β†’ not visible Total: 3 cameras observe this point.

Constraints:

  • visibility: list of boolean values, one per camera
  • Return count of True values (cameras that see the point)
πŸ”’

Editor locked

The code editor is locked for Pro problems. It is only available for free problems. Please upgrade to gain access to the code editor for all problems.

solution.py

Test Results

0/0
Run code to see test results.
Feature Track Length - Easy | PixelBank