Open isConic opened 1 year ago
Does angular spectrum accept unfiltered grayscale image arrays?
Sorry for getting back to you so late. It has been a busy couple of weeks.
Regarding your first question, the 'sfr' and 'sfmr' are not used in numerical propagations using the angular spectrum method. The propagation units seem not properly inputted to the function call, although it appears to be coded correctly with your 'mm_to_m' and 'nm_to_m'. I cannot identify any other potential issues that could impede proper propagation. The ImageJ numerical propagation plugin code for the angular spectrum and the pyDHM code for the same propagator are the same. The only difference is that ImageJ plugins were developed in JAVA.
Regarding your second question, yes, PyDHM's angular spectrum accepts unfiltered images, including .jpg files as you are using. However, please try converting the input image file to .tiff to be 100% sure that this is not the issue.
Problem
I've been using ImageJ's numerical propagation plugin written in Java, The visual results from running Angular spectrum using the same parameters/measurements differ substantially between pyDHM and ImageJ Numerical Prop. The ImageJ output appears to be qualitatively more accurate.
Input Image:
ImageJ Numerical Propagation (Angular Spectrum) Results
Input Parameters:
Visual Output
pyDHM Numerical Propagation(Angular Spectrum) Results
Input Parameters
Visual Output
Code:
General Question about filters
If I did not wish to apply a visual filter or restrict the ROI and wanted numerical propagation on the full image, Are there any transforms within the sfr, or sfmr that I'm missing outside of it?