ASI_MTF icon indicating copy to clipboard operation
ASI_MTF copied to clipboard

Dismiss last value of x_psf and y_psf in reduction to x_psf_r and y_psf_r

Open sevbogae opened this issue 9 months ago • 1 comments

Thank you for this very useful ImageJ macro!

In the reduction of x_psf and y_psf to x_psf_r and y_psf_r, you do:

// reduce to number of entries within the xmin, xmax range
x_psf_r = Array.slice(x_psf, 0, count2-1);
y_psf_r = Array.slice(y_psf, 0, count2-1);

Because of the -1, you omit the last value before the bunch of zeros. Is this intentional or is this wrong slicing? In my opinion, the -1 should be removed, so the x_psf_r has length count2.

sevbogae avatar Apr 01 '25 13:04 sevbogae

Hi, Indeed the -1 in the above 2 lines are not necessary. It will ignore the last data point of the last row in the point spread function.

emx77 avatar Apr 02 '25 12:04 emx77