@@ -33,30 +33,31 @@ def compute_mtf(phantom, image):
3333 HyperbolicCocentric phantom. Calculate the MTF from the modulation depth
3434 at each edge on the line from (0.5,0.5) to (0.5,1). MTF = (hi-lo)/(hi+lo)
3535
36+ .. deprecated:: 0.3
37+
38+ This method rapidly becomes inaccurate at small wavelenths because the
39+ measurement gets out of phase with the waves due to rounding error. Use
40+ another one of the MTF functions instead. This method will be removed
41+ in xdesign 0.6.
42+
43+ .. seealso::
44+
45+ :meth:`compute_mtf_ffst`
46+ :meth:`compute_mtf_lwkj`
47+
3648 Parameters
37- ---------------
49+ ----------
3850 phantom : HyperbolicConcentric
3951 Predefined phantom of cocentric rings whose widths decay parabolically.
4052 image : ndarray
4153 The reconstruction of the above phantom.
4254
4355 Returns
44- --------------
56+ -------
4557 wavelength : list
4658 wavelenth in the scale of the original phantom
4759 MTF : list
4860 MTF values
49-
50- .. deprecated:: 0.3
51- This method rapidly becomes inaccurate at small wavelenths because the
52- measurement gets out of phase with the waves due to rounding error. Use
53- another one of the MTF functions instead. This method will be removed
54- in xdesign 0.6.
55-
56- .. seealso::
57- :meth:`compute_mtf_ffst`
58- :meth:`compute_mtf_lwkj`
59-
6061 """
6162 warnings .warn (
6263 'compute_mtf will be removed in xdesign 0.6, use compute_mtf_lwkj or '
@@ -94,6 +95,10 @@ def compute_mtf(phantom, image):
9495def compute_mtf_ffst (phantom , image , Ntheta = 4 ):
9596 '''Calculate the MTF using the method described in :cite:`Friedman:13`.
9697
98+ .. seealso::
99+
100+ :meth:`compute_mtf_lwkj`
101+
97102 Parameters
98103 ----------
99104 phantom : :py:class:`.UnitCircle`
@@ -111,9 +116,6 @@ def compute_mtf_ffst(phantom, image, Ntheta=4):
111116 MTF values
112117 bin_centers : ndarray
113118 the center of the bins if Ntheta >= 1
114-
115- .. seealso::
116- :meth:`compute_mtf_lwkj`
117119 '''
118120 if not isinstance (phantom , UnitCircle ):
119121 raise TypeError ('MTF requires unit circle phantom.' )
@@ -204,6 +206,10 @@ def compute_mtf_lwkj(phantom, image):
204206 """Calculate the MTF using the modulated Siemens Star method in
205207 :cite:`loebich2007digital`.
206208
209+ .. seealso::
210+
211+ :meth:`compute_mtf_ffst`
212+
207213 Parameters
208214 ----------
209215 phantom : :py:class:`.SiemensStar`
@@ -216,9 +222,6 @@ def compute_mtf_lwkj(phantom, image):
216222 The spatial frequency in cycles per unit length
217223 M : array
218224 The MTF values for each frequency
219-
220- .. seealso::
221- :meth:`compute_mtf_ffst`
222225 """
223226 # Determine which radii to sample. Do not sample linearly because the
224227 # spatial frequency changes as 1/r
@@ -296,7 +299,7 @@ def fit_sinusoid(value, angle, f, p0=[0.5, 0.25, 0.25]):
296299 sinusoidal instead of square, contrast values larger than unity are clipped
297300 back to unity.
298301
299- parameters
302+ Parameters
300303 ----------
301304 value : NxM ndarray
302305 The value of the function at N angles and M radii
@@ -308,8 +311,8 @@ def fit_sinusoid(value, angle, f, p0=[0.5, 0.25, 0.25]):
308311 p0 : list, optional
309312 The initial guesses for the parameters.
310313
311- returns:
312- --------
314+ Returns
315+ -------
313316 MTFR: 1xM ndarray
314317 The modulation part of the MTF at each of the M radii
315318 """
@@ -340,7 +343,7 @@ def errorfunc(p, x, y):
340343def periodic_function (p , x ):
341344 """A periodic function for fitting to the spokes of the Siemens Star.
342345
343- parameters
346+ Parameters
344347 ----------
345348 p[0] : scalar
346349 the mean of the function
@@ -355,7 +358,7 @@ def periodic_function(p, x):
355358 theta : Nx1 ndarray
356359 input angles for the function
357360
358- returns
361+ Returns
359362 -------
360363 value : Nx1 array
361364 the values of the function at phi; cannot return NaNs.
@@ -385,7 +388,7 @@ def compute_nps_ffst(phantom, A, B=None, plot_type='frequency'):
385388 'histogram' returns a plot binned by radial coordinate wavenumber
386389 'frequency' returns a wavenumber vs wavenumber plot
387390
388- returns
391+ Returns
389392 -------
390393 bins :
391394 Bins for the radially binned NPS
0 commit comments