Skip to content

Conversation

@gnzng
Copy link
Collaborator

@gnzng gnzng commented Jul 10, 2025

This is using the standard 2D Fourier Ring Correlation (FRC) defined in the often cited 2005 paper by van Heel et al., https://doi.org/10.1016/j.jsb.2005.05.009, but in 1D. The 1D version is great for highly anisotropic samples, when not a lot of information is given in a certain direction.

image

I added also an example with plotting functions for an highly anisotropic test pattern in examples/line_based_frc.py:

image

The function also takes in different thresholds and calculates all of them for a resolution in real space.

I also included tests in tests/tools/test_analysis.py based on the sample with the test pattern.

gnzng and others added 7 commits July 10, 2025 14:24
- Implemented `line_based_frc` function for computing line-based Fourier Ring Correlation with multiple threshold methods.
- Added unit tests for `line_based_frc` to validate functionality with both PyTorch tensors and NumPy arrays.
- Created example script to demonstrate usage of `line_based_frc` with generated test images.
@gnzng
Copy link
Collaborator Author

gnzng commented Jul 29, 2025

Added the option for for the split() function in Ptycho2DDataset, so that you can split the dataset in two by choosing every second point instead of random selection.

Also added tests for split(), which was not covered by tests yet.

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.

2 participants