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

Gauss fit redux #198

Merged
merged 17 commits into from Oct 14, 2021
Merged

Gauss fit redux #198

merged 17 commits into from Oct 14, 2021

Conversation

tinevez
Copy link
Member

@tinevez tinevez commented Oct 14, 2021

Rework the spot fitting action. It is now based on Apache commons-math optimizers.

The TrackMate action "Refine spot position with gaussian fitting" now launches a small UI to tune spot fitting:

Screenshot 2021-10-14 at 17 43 50

There, the user can choose

  • in what channel to perform the fit (visible only if N channels > 1);
  • what kind of model to fit. Right now, the user can choose between letting the radius vary or not.

In 2D we use a circular gaussian. In 3D, the sigma in XY and Z can be different. But the spot radius is always determined from the fitted value of sigmaXY.

The buttons at the bottom allows choosing whether to fit

  • all the visible spots;
  • only the spots in the selection;
  • the spots that in the selected track (click one spot to select its track).

There is an undo button, that undoes the last performed fit (but no more).

The features are recalculated after the fit, and the listeners of the model are notified as well.

@tinevez tinevez merged commit d72de7d into master Oct 14, 2021
@tinevez tinevez deleted the gauss-fit-redux branch October 14, 2021 15:45
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.

None yet

1 participant