Skip to content

Commit

Permalink
fix: Feedback addressed by Archer - Shortened printed RGB arrays in t…
Browse files Browse the repository at this point in the history
…utorial by displaying only the first 3 rows and columns
  • Loading branch information
Arc-Celt committed Feb 3, 2025
1 parent d8708d7 commit b8ba6c6
Show file tree
Hide file tree
Showing 7 changed files with 1,866 additions and 2,057 deletions.
50 changes: 6 additions & 44 deletions docs/first_things_first.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,63 +161,25 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Image as numpy array (range [0, 1]):\n",
"First 3 rows and 3 columns of the image as numpy array (range [0, 255]):\n",
"[[[147 97 86]\n",
" [147 97 86]\n",
" [147 97 86]\n",
" ...\n",
" [ 48 50 47]\n",
" [ 48 48 46]\n",
" [ 48 48 46]]\n",
" [147 97 86]]\n",
"\n",
" [[147 97 86]\n",
" [147 97 86]\n",
" [147 97 86]\n",
" ...\n",
" [ 51 53 50]\n",
" [ 51 51 49]\n",
" [ 51 51 49]]\n",
" [147 97 86]]\n",
"\n",
" [[147 97 86]\n",
" [147 97 86]\n",
" [147 97 86]\n",
" ...\n",
" [ 50 52 49]\n",
" [ 50 50 48]\n",
" [ 50 50 48]]\n",
"\n",
" ...\n",
"\n",
" [[197 194 187]\n",
" [195 192 185]\n",
" [195 192 185]\n",
" ...\n",
" [164 163 158]\n",
" [165 164 159]\n",
" [165 164 159]]\n",
"\n",
" [[197 194 187]\n",
" [195 192 185]\n",
" [194 191 184]\n",
" ...\n",
" [164 163 158]\n",
" [167 166 161]\n",
" [167 166 161]]\n",
"\n",
" [[ 1 0 0]\n",
" [ 1 0 0]\n",
" [ 1 0 0]\n",
" ...\n",
" [ 3 2 0]\n",
" [ 1 0 0]\n",
" [ 1 0 0]]]\n"
" [147 97 86]]]\n"
]
}
],
"source": [
"# Convert to numpy array and check the range\n",
"image_disk_np = np.array(image_disk)\n",
"print(f'Image as numpy array (range [0, 1]):\\n{image_disk_np}')"
"print(f'First 3 rows and 3 columns of the image as numpy array (range [0, 255]):\\n{image_disk_np[:3, :3]}')"
]
},
{
Expand Down Expand Up @@ -343,7 +305,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "524ind",
"language": "python",
"name": "python3"
},
Expand Down
71 changes: 17 additions & 54 deletions docs/image_framing.ipynb

Large diffs are not rendered by default.

846 changes: 423 additions & 423 deletions docs/image_modulation.ipynb

Large diffs are not rendered by default.

325 changes: 162 additions & 163 deletions docs/image_pca_compression.ipynb

Large diffs are not rendered by default.

799 changes: 379 additions & 420 deletions docs/image_pooling.ipynb

Large diffs are not rendered by default.

1,125 changes: 544 additions & 581 deletions docs/image_reposition.ipynb

Large diffs are not rendered by default.

707 changes: 335 additions & 372 deletions docs/image_seam_carving.ipynb

Large diffs are not rendered by default.

0 comments on commit b8ba6c6

Please sign in to comment.