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

Extract Background calculation from BackgroundSubtraction as standalone operator #2118

Open
jonnew opened this issue Jan 24, 2025 · 0 comments

Comments

@jonnew
Copy link

jonnew commented Jan 24, 2025

The BackgroundSubtraction operator performs two potentially useful calculations:

  1. Calculate the "Background" of a video using an selected of method and adaptation rate
  2. Perform image segmentation by subtracting the background from the most recent image in the video stream and thresholding result

CV.Threshold(difference, output, ThresholdValue, 255, ThresholdType);

I think the first of these operations is a useful operator on its own. Providing a sequence representing the background of a video could be useful for downstream operations that are not just threshold-based image segmentation (e.g. for dF/F calculations in calcium imaging data).

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

No branches or pull requests

1 participant