You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oi = oiCreate('human', pupilRadiusInMeters);
% Compute the optical image
oi = oiCompute(scene,oi);
% get the optics
optics = oiGet(oi, 'optics');
% set new OTF supports
optics = opticsSet(optics, 'otffx', [-200:1:199]);
optics = opticsSet(optics, 'otffy', [-200:1:199]);
% update the oi struct with the new optics struct
oi = oiSet(oi, 'optics', optics);
% recompute oi
(*) oi = oiCompute(scene,oi);
% get the new OTF
optics = oiGet(oi, 'optics');
OTF = opticsGet(optics,'otf data');
crashes in the marked (*) line. This can be traced back to line 79 of customOTF(), which tries to interpolate the default OTF to the desired one. The crash happens because the sizes of fx and fy (80x120) (which are related to the optical image size) do not match the size of the default OTF (60x60).
If line (*) above is omitted the returned OTF is the default 60x60x31.
Related to this, shouldn't we compute a new OTF instead of interpolating the 60x60 OTF?
Thanks,
Nicolas
The text was updated successfully, but these errors were encountered:
The following code
crashes in the marked (*) line. This can be traced back to line 79 of customOTF(), which tries to interpolate the default OTF to the desired one. The crash happens because the sizes of fx and fy (80x120) (which are related to the optical image size) do not match the size of the default OTF (60x60).
If line (*) above is omitted the returned OTF is the default 60x60x31.
Related to this, shouldn't we compute a new OTF instead of interpolating the 60x60 OTF?
Thanks,
Nicolas
The text was updated successfully, but these errors were encountered: