Code Monkey home page Code Monkey logo

Comments (5)

ziw-liu avatar ziw-liu commented on August 26, 2024 1

I also discovered that I was indeed using the wrong config (0.85 NA of illumination instead of 0.52), while the problem still exists with lower NA, the overlap is smaller.

High NA:
phase3d_tf_high_NA_xz

Low NA:
phase3d_tf_low_NA_xz

from waveorder.

ziw-liu avatar ziw-liu commented on August 26, 2024

It appears to be the same for a previous dataset: /hpc/projects/comp.micro/mantis/2023_08_09_HEK_PCNA_H2B/2-phase3D/pcna_rac1_virtual_staining_b1_redo_1/transfer-function.zarr

from waveorder.

talonchandler avatar talonchandler commented on August 26, 2024

Thanks for finding and flagging this @ziw-liu.

The raw data is sampled out to 1/(0.15 um) = 6.66 um^{-1} so I would not expect overlap since 2NA/lambda = 2(1.35)/(0.45 um) = 6 um^{-1}. Equivalently, we're correctly Nyquist sampling the underlying signals, and I think this is a waveorder bug.

from waveorder.

talonchandler avatar talonchandler commented on August 26, 2024

Details:
I made an error in my response above. I said that the data is sampled out to 1/(0.15 um) = 6.66 um^{-1}, but this is the frequency extent. The data is actually sampled out to 1/(2*0.15 um) = 3.33 um^{-1}.

I will also refine my estimate of the transverse cutoff frequency to (NA_ill + NA_det) / lambda, which is (1.35 + 0.52)/0.45 um = 4.16 um^{-1}.

These numbers are consistent with the overlap you've observed here @ziw-liu, where the transverse cutoff frequency is about 25% larger than the data's extent. In the current waveorder implementation, this leads to wrapping behavior.

Summary and takeaways:
@ziw-liu @edyoshikun @ieivanov @mattersoflight this means that:

  • the labelfree mantis arm is undersampling in the transverse direction by ~25%. It's completely up to us if this improvement is worth pursuing with an increased magnification.
  • the current waveorder reconstruction has a bug that wraps the transfer functions for these undersampled datasets. This bug leads to oversuppression of the highest spatial frequencies, so I expect a (relatively small) improvement in resolution/contrast after I fix this bug.

Next steps:
@ziw-liu @edyoshikun and I chatted about a fix over lunch. I am planning to:

  • begin my transfer function calculation with checks for undersampling
  • if the data is undersampled, then I will compute the transfer function on a twice-as-large grid, then clip it afterwards
  • this means that undersampled data will require more expensive transfer function calculations, but the transfer functions are precomputed so this is not a major issue.

from waveorder.

ziw-liu avatar ziw-liu commented on August 26, 2024

This issue might be related to the grid artifacts we see with the binned Zyla camera, which is under-sampling by a large margin. The wrap-arounds in the phase transfer function could be enhancing the fixed pattern noise.

image

Edit: add a 63x example:

image

from waveorder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.