Initial commit
This commit is contained in:
@@ -931,7 +931,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 24,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@@ -954,19 +954,21 @@
|
||||
"\n",
|
||||
"plt.figure(figsize=(15, 5))\n",
|
||||
"\n",
|
||||
"# RGB format : img[red, green, blue] -> img[:,:,0], img[:,:,1], img[:,:,2]\n",
|
||||
"\n",
|
||||
"# Red channel\n",
|
||||
"plt.subplot(1, 3, 1)\n",
|
||||
"plt.imshow(img[:, :, 0], cmap='Reds')\n",
|
||||
"plt.imshow(img[:,:,0], cmap='Reds')\n",
|
||||
"plt.title('Red Channel')\n",
|
||||
"\n",
|
||||
"# Green channel\n",
|
||||
"plt.subplot(1, 3, 2)\n",
|
||||
"plt.imshow(img[:, :, 1], cmap='Greens')\n",
|
||||
"plt.imshow(img[:,:,1], cmap='Greens')\n",
|
||||
"plt.title('Green Channel')\n",
|
||||
"\n",
|
||||
"# Blue channel\n",
|
||||
"plt.subplot(1, 3, 3)\n",
|
||||
"plt.imshow(img[:, :, 2], cmap='Blues')\n",
|
||||
"plt.imshow(img[:,:,2], cmap='Blues')\n",
|
||||
"plt.title('Blue Channel')\n",
|
||||
"\n",
|
||||
"plt.show()\n",
|
||||
|
||||
Reference in New Issue
Block a user