Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Sensor scan_rate #439

Open
wants to merge 1 commit into
base: prerelease
Choose a base branch
from

Conversation

Cybis320
Copy link
Contributor

Introduce configurable sensor scan_rate for improved rolling shutter correction.

This PR enhances our rolling shutter correction by introducing a configurable scan_rate parameter:

  1. Add scan_rate to config:

    • Allow both fractional (e.g., "1/30") and decimal (e.g., "0.0333333") inputs in seconds
  2. Update rolling shutter correction function:

    • Modify correctRollingShutterTemporal to use the configured scan_rate:
# Compute the time offset in fractional frames
delta_t = (fps*scan_rate)*(y_centr/n_rows)

# Compute the corrected timestamp
fr_corrected = frame + delta_t

@Cybis320 Cybis320 requested a review from dvida September 30, 2024 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant