diff --git a/Python/02_Pythonic_Image.ipynb b/Python/02_Pythonic_Image.ipynb index 7fa5bcbb..54e3af38 100644 --- a/Python/02_Pythonic_Image.ipynb +++ b/Python/02_Pythonic_Image.ipynb @@ -78,12 +78,11 @@ "\n", "If you are familiar with numpy, sliced index then this should be cake for the SimpleITK image. The Python standard slice interface for 1-D object:\n", "\n", - "\n", - " \t\n", - " \t\n", - " \t\n", - " \t\n", - "
OperationResult
d[i]i-th item of d, starting index 0
d[i:j]slice of d from i to j
d[i:j:k]slice of d from i to j with step k
\n", + "| Operation | Result |\n", + "|------------|---------|\n", + "| d[i] | i-th item of d, starting index 0 |\n", + "| d[i:j] | slice of d from i to j |\n", + "| d[i:j:k] | slice of d from i to j with step k |\n", "\n", "With this convenient syntax many basic tasks can be easily done." ] @@ -243,15 +242,15 @@ "\n", "As these operators basically call ITK filter, which just use raw C++ operators, care must be taken to prevent overflow, and divide by zero etc.\n", "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
Operators
+
-
*
/
//
**
\n" + "\n", + "| Operators |\n", + "|---|\n", + "| + |\n", + "| - |\n", + "| * |\n", + "| / |\n", + "| // |\n", + "| ** |" ] }, { @@ -296,13 +295,14 @@ "source": [ "### Bitwise Logic Operators\n", "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
Operators
&
|
^
~
" + "\n", + "\n", + "| Operators |\n", + "|---|\n", + "| & |\n", + "| \\||\n", + "| ^ |\n", + "| ~ |\n" ] }, { @@ -320,19 +320,24 @@ "metadata": {}, "source": [ "## Comparative Operators\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
Operators
>
>=
<
<=
==
\n", + "\n", + "| Operators |\n", + "|---|\n", + "| > |\n", + "| >= |\n", + "| < |\n", + "| <= |\n", + "| == |\n", "\n", "These comparative operators follow the same convention as the reset of SimpleITK for binary images. They have the pixel type of ``sitkUInt8`` with values of 0 and 1. \n", " " ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [] + }, { "cell_type": "code", "execution_count": null,