File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
doc/examples/applications Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 203203# dimension now contains all pixel values), and applying the thresholding
204204# function on the image sequence along its second axis:
205205#
206- # .. code-block:: python
206+ # .. code-block:: python
207+ # :caption: NumPy's `apply_along_axis` applies a function to 1D slices of
208+ # `arr` along `axis`.
207209#
208- # thresh_values = np.apply_along_axis(filters.threshold_otsu,
209- # axis=1,
210- # arr=smooth_seq.reshape(n_z, -1))
210+ # thresh_values = np.apply_along_axis(filters.threshold_otsu,
211+ # axis=1,
212+ # arr=smooth_seq.reshape(n_z, -1))
211213#
212214# We use the following flat structuring element for morphological
213215# computations (``np.newaxis`` is used to prepend an axis of size 1 for time):
You can’t perform that action at this time.
0 commit comments