|
173 | 173 | }
|
174 | 174 | ],
|
175 | 175 | "source": [
|
176 |
| - "image_show(morph.closing(text, selem=morph.rectangle(3,3)))" |
| 176 | + "image_show(morph.closing(text, footprint=morph.rectangle(3,3)))" |
177 | 177 | ]
|
178 | 178 | },
|
179 | 179 | {
|
|
218 | 218 | }
|
219 | 219 | ],
|
220 | 220 | "source": [
|
221 |
| - "image_show(morph.closing(text, selem=morph.rectangle(31,31)))" |
| 221 | + "image_show(morph.closing(text, footprint=morph.rectangle(31,31)))" |
222 | 222 | ]
|
223 | 223 | },
|
224 | 224 | {
|
|
263 | 263 | }
|
264 | 264 | ],
|
265 | 265 | "source": [
|
266 |
| - "bth = morph.black_tophat(text, selem=morph.rectangle(31,31))\n", |
| 266 | + "bth = morph.black_tophat(text, footprint=morph.rectangle(31,31))\n", |
267 | 267 | "image_show(bth)"
|
268 | 268 | ]
|
269 | 269 | },
|
|
366 | 366 | "elapsed = list()\n",
|
367 | 367 | "for sz in [3, 11, 31]:\n",
|
368 | 368 | " tic=time.perf_counter()\n",
|
369 |
| - " a = morph.closing(text, selem=morph.rectangle(sz,sz))\n", |
| 369 | + " a = morph.closing(text, footprint=morph.rectangle(sz,sz))\n", |
370 | 370 | " elapsed.append(time.perf_counter()-tic)\n",
|
371 | 371 | "\n",
|
372 | 372 | "print(elapsed)"
|
|
392 | 392 | "elapsed = list()\n",
|
393 | 393 | "for sz in [3, 11, 31]:\n",
|
394 | 394 | " tic=time.perf_counter()\n",
|
395 |
| - " a = morph.closing(text, selem=morph.disk(sz))\n", |
| 395 | + " a = morph.closing(text, footprint=morph.disk(sz))\n", |
396 | 396 | " elapsed.append(time.perf_counter()-tic)\n",
|
397 | 397 | "\n",
|
398 | 398 | "print(elapsed)\n",
|
|
0 commit comments