@@ -15,7 +15,7 @@ def dilation(apr: APR,
1515 inplace : bool = False ) -> ParticleData :
1616 """
1717 Apply morphological dilation (binary or grayscale) to an APR image. Only considers face-side neighbors
18- (6-connectivity in 3D). If `radius > 1` the operation is repeated `radius` times.
18+ (6-connectivity in 3D). If `` radius > 1`` the operation is repeated `` radius` ` times.
1919
2020 Parameters
2121 ----------
@@ -26,14 +26,14 @@ def dilation(apr: APR,
2626 binary: bool
2727 If `True`, apply binary dilation. Otherwise, grayscale dilation is used. (default: False)
2828 radius: int
29- Radius of the operation (the 6-connective operation is iterated `radius` times). (default: 1)
29+ Radius of the operation (the 6-connective operation is iterated `` radius` ` times). (default: 1)
3030 inplace: bool
31- If `True`, the operation modifies the input `parts`. Otherwise, a copy of the input is used. (default: False)
31+ If `True`, the operation modifies the input `` parts` `. Otherwise, a copy of the input is used. (default: False)
3232
3333 Returns
3434 -------
3535 parts_copy: ByteParticles, ShortParticles, LongParticles or FloatParticles
36- Output particle values of the same type as the input `parts`.
36+ Output particle values of the same type as the input `` parts` `.
3737 """
3838 _check_input (apr , parts )
3939 parts_copy = parts if inplace else parts .copy ()
@@ -51,7 +51,7 @@ def erosion(apr: APR,
5151 inplace : bool = False ) -> ParticleData :
5252 """
5353 Apply morphological erosion (binary or grayscale) to an APR image. Only considers face-side neighbors
54- (6-connectivity in 3D). If `radius > 1` the operation is repeated `radius` times.
54+ (6-connectivity in 3D). If `` radius > 1`` the operation is repeated `` radius` ` times.
5555
5656 Parameters
5757 ----------
@@ -62,14 +62,14 @@ def erosion(apr: APR,
6262 binary: bool
6363 If `True`, apply binary erosion. Otherwise, grayscale erosion is used. (default: False)
6464 radius: int
65- Radius of the operation (the 6-connective operation is iterated `radius` times). (default: 1)
65+ Radius of the operation (the 6-connective operation is iterated `` radius` ` times). (default: 1)
6666 inplace: bool
67- If `True`, the operation modifies the input `parts`. Otherwise, a copy of the input is used. (default: False)
67+ If `True`, the operation modifies the input `` parts` `. Otherwise, a copy of the input is used. (default: False)
6868
6969 Returns
7070 -------
7171 parts_copy: ByteParticles, ShortParticles, LongParticles or FloatParticles
72- Output particle values of the same type as the input `parts`.
72+ Output particle values of the same type as the input `` parts` `.
7373 """
7474 _check_input (apr , parts )
7575 parts_copy = parts if inplace else parts .copy ()
@@ -87,7 +87,7 @@ def opening(apr: APR,
8787 inplace : bool = False ) -> ParticleData :
8888 """
8989 Apply morphological opening (erosion followed by dilation) to an APR image. Only considers face-side neighbors
90- (6-connectivity in 3D). If `radius > 1` the erosion and dilation are repeated `radius` times.
90+ (6-connectivity in 3D). If `` radius > 1`` the erosion and dilation are repeated `` radius` ` times.
9191
9292 Parameters
9393 ----------
@@ -96,16 +96,16 @@ def opening(apr: APR,
9696 parts: ByteParticles, ShortParticles, LongParticles or FloatParticles
9797 Input particle values.
9898 binary: bool
99- If `True`, binary erosion and dilation is used. Otherwise `min` and `max` operators are used. (default: False)
99+ If `True`, binary erosion and dilation is used. Otherwise `` min`` and `` max` ` operators are used. (default: False)
100100 radius: int
101- Radius of the erosion and dilation operations. The 6-connective operations are iterated `radius` times. (default: 1)
101+ Radius of the erosion and dilation operations. The 6-connective operations are iterated `` radius` ` times. (default: 1)
102102 inplace: bool
103- If `True`, the operation modifies the input `parts`. Otherwise, a copy of the input is used. (default: False)
103+ If `True`, the operation modifies the input `` parts` `. Otherwise, a copy of the input is used. (default: False)
104104
105105 Returns
106106 -------
107107 parts_copy: ByteParticles, ShortParticles, LongParticles or FloatParticles
108- Output particle values of the same type as the input `parts`.
108+ Output particle values of the same type as the input `` parts` `.
109109 """
110110 _check_input (apr , parts )
111111 parts_copy = parts if inplace else parts .copy ()
@@ -125,7 +125,7 @@ def closing(apr: APR,
125125 inplace : bool = False ) -> ParticleData :
126126 """
127127 Apply morphological closing (dilation followed by erosion) to an APR image. Only considers face-side neighbors
128- (6-connectivity in 3D). If `radius > 1` the erosion and dilation are repeated `radius` times.
128+ (6-connectivity in 3D). If `` radius > 1`` the erosion and dilation are repeated `` radius` ` times.
129129
130130 Parameters
131131 ----------
@@ -134,16 +134,16 @@ def closing(apr: APR,
134134 parts: ByteParticles, ShortParticles, LongParticles or FloatParticles
135135 Input particle values.
136136 binary: bool
137- If `True`, binary erosion and dilation is used. Otherwise `min` and `max` operators are used. (default: False)
137+ If `True`, binary erosion and dilation is used. Otherwise `` min`` and `` max` ` operators are used. (default: False)
138138 radius: int
139- Radius of the erosion and dilation operations. The 6-connective operations are iterated `radius` times. (default: 1)
139+ Radius of the erosion and dilation operations. The 6-connective operations are iterated `` radius` ` times. (default: 1)
140140 inplace: bool
141- If `True`, the operation modifies the input `parts`. Otherwise, a copy of the input is used. (default: False)
141+ If `True`, the operation modifies the input `` parts` `. Otherwise, a copy of the input is used. (default: False)
142142
143143 Returns
144144 -------
145145 parts_copy: ByteParticles, ShortParticles, LongParticles or FloatParticles
146- Output particle values of the same type as the input `parts`.
146+ Output particle values of the same type as the input `` parts` `.
147147 """
148148 _check_input (apr , parts )
149149 parts_copy = parts if inplace else parts .copy ()
@@ -177,7 +177,7 @@ def tophat(apr: APR,
177177 Returns
178178 -------
179179 out: ByteParticles, ShortParticles, LongParticles or FloatParticles
180- Output particle values of the same type as the input `parts`.
180+ Output particle values of the same type as the input `` parts` `.
181181
182182 See also
183183 --------
@@ -209,7 +209,7 @@ def bottomhat(apr: APR,
209209 Returns
210210 -------
211211 out: ByteParticles, ShortParticles, LongParticles or FloatParticles
212- Output particle values of the same type as the input `parts`.
212+ Output particle values of the same type as the input `` parts` `.
213213
214214 See also
215215 --------
@@ -227,7 +227,7 @@ def remove_small_objects(apr: APR,
227227 """
228228 Remove objects smaller than a threshold from an input label mask. Assumes that the background value is 0.
229229
230- Note: internally allocates a vector of size `labels.max()+1`. If ``labels`` contains large values, consider
230+ Note: internally allocates a vector of size `` labels.max()+1` `. If ``labels`` contains large values, consider
231231 relabeling consecutively from 0.
232232
233233 Parameters
@@ -237,9 +237,9 @@ def remove_small_objects(apr: APR,
237237 labels: ByteParticles, ShortParticles or LongParticles
238238 Input particle label mask.
239239 min_volume: int
240- Remove objects smaller in volume than `min_volume` voxels.
240+ Remove objects smaller in volume than `` min_volume` ` voxels.
241241 inplace: bool
242- If True, the input `labels` are modified in-place. Otherwise, a copy is used. (default: False)
242+ If True, the input `` labels` ` are modified in-place. Otherwise, a copy is used. (default: False)
243243
244244 Returns
245245 -------
@@ -259,7 +259,7 @@ def remove_large_objects(apr: APR,
259259 """
260260 Remove objects larger than a threshold from an input label mask. Assumes that the background value is 0.
261261
262- Note: internally allocates a vector of size `labels.max()+1`. If ``labels`` contains large values, consider
262+ Note: internally allocates a vector of size `` labels.max()+1` `. If ``labels`` contains large values, consider
263263 relabeling consecutively from 0.
264264
265265 Parameters
@@ -269,7 +269,7 @@ def remove_large_objects(apr: APR,
269269 labels: ByteParticles, ShortParticles or LongParticles
270270 Input particle label mask.
271271 max_volume: int
272- Remove objects larger in volume than `min_volume` voxels.
272+ Remove objects larger in volume than `` min_volume` ` voxels.
273273 inplace: bool
274274 If True, the input `labels` are modified in-place. Otherwise, a copy is used. (default: False)
275275
@@ -298,7 +298,7 @@ def remove_small_holes(apr: APR,
298298 labels: ByteParticles, ShortParticles or LongParticles
299299 Input particle mask.
300300 min_volume: int
301- Remove holes smaller in volume than `min_volume` voxels.
301+ Remove holes smaller in volume than `` min_volume` ` voxels.
302302 background_label: int
303303 Value of the background label (default: 0)
304304
@@ -347,7 +347,7 @@ def remove_edge_objects(apr: APR,
347347 y_edges: bool
348348 If True, checks edges in the y dimension. (default: True)
349349 inplace: bool
350- If True, the input `labels` are modified in-place. Otherwise, a copy is used. (default: False)
350+ If True, the input `` labels` ` are modified in-place. Otherwise, a copy is used. (default: False)
351351
352352 Returns
353353 -------
0 commit comments