andreabassi78 / napari-psf-simulator

widget for PSF simulation with aberrations
BSD 3-Clause "New" or "Revised" License
26 stars 1 forks source link

give field of view as input instead of number of points #10

Closed fcaprile closed 1 year ago

fcaprile commented 1 year ago

The number of points for the calculation is processed internally as a big number so that the resolution of the system is big enough (resulting in a bigger fiend of view being calculated). The resulting field is then cropped so that the requested field of view is shown.

fcaprile commented 1 year ago

added a function to calculate the number of divisions to show given the field of view and added the dimensions of the field to show as parameters for the psf simulator, which crops the resulting psf

andreabassi78 commented 1 year ago

After these changes, the Plot PSF profile in Console gives the error x and y must have the same first dimension, but... in Scalar Propagation mode.

fcaprile commented 1 year ago

Fixed by also cropping the variables used for showing the field on console