2019-12-08 03:13:45 +00:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 17,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"import cv2\n",
|
|
|
|
"import numpy as np\n",
|
|
|
|
"from matplotlib import pyplot as plt"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2019-12-08 03:13:45 +00:00
|
|
|
"source": [
|
|
|
|
"Basic opencv\n",
|
|
|
|
"=================="
|
2021-01-01 22:05:49 +00:00
|
|
|
],
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {}
|
2019-12-08 03:13:45 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 18,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "execute_result",
|
2019-12-08 03:13:45 +00:00
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"<matplotlib.image.AxesImage at 0x27d7b92d520>"
|
2019-12-08 03:13:45 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 18
|
2019-12-08 03:13:45 +00:00
|
|
|
},
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "display_data",
|
2019-12-08 03:13:45 +00:00
|
|
|
"data": {
|
2021-01-01 22:05:49 +00:00
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
|
|
|
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"251.806921pt\" version=\"1.1\" viewBox=\"0 0 367.157923 251.806921\" width=\"367.157923pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-01-01T21:54:50.342494</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.3, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 251.806921 \r\nL 367.157923 251.806921 \r\nL 367.157923 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 33.2875 227.928796 \r\nL 359.957923 227.928796 \r\nL 359.957923 10.488796 \r\nL 33.2875 10.488796 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g clip-path=\"url(#p18f04bad81)\">\r\n <image height=\"218\" id=\"imageb22ad99234\" transform=\"scale(1 -1)translate(0 -218)\" width=\"327\" x=\"33.2875\" xlink:href=\"data:image/png;base64,\r\niVBORw0KGgoAAAANSUhEUgAAAUcAAADaCAYAAAA1xoBCAAEAAElEQVR4nD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
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"img = cv2.imread('sheep.png')\n",
|
|
|
|
"\n",
|
|
|
|
"plt.imshow(img[:,:,::-1])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"# load images (matlab equiv)"
|
2019-12-08 03:13:45 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 19,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "execute_result",
|
2019-12-08 03:13:45 +00:00
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"numpy.ndarray"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 19
|
2019-12-08 03:13:45 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"type(img)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 20,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "execute_result",
|
2019-12-08 03:13:45 +00:00
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2019-12-08 22:19:30 +00:00
|
|
|
"array([82, 88, 87], dtype=uint8)"
|
2019-12-08 03:13:45 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 20
|
2019-12-08 03:13:45 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"px = img[100, 100]\n",
|
|
|
|
"px"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 21,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "execute_result",
|
2019-12-08 03:13:45 +00:00
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"<matplotlib.image.AxesImage at 0x27d7c956d00>"
|
2019-12-08 03:13:45 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 21
|
2019-12-08 03:13:45 +00:00
|
|
|
},
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "display_data",
|
2019-12-08 03:13:45 +00:00
|
|
|
"data": {
|
2021-01-01 22:05:49 +00:00
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
|
|
|
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"251.806921pt\" version=\"1.1\" viewBox=\"0 0 367.157923 251.806921\" width=\"367.157923pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-01-01T21:54:51.422495</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.3, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 251.806921 \r\nL 367.157923 251.806921 \r\nL 367.157923 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 33.2875 227.928796 \r\nL 359.957923 227.928796 \r\nL 359.957923 10.488796 \r\nL 33.2875 10.488796 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g clip-path=\"url(#pb4be0598a4)\">\r\n <image height=\"218\" id=\"imagefb52dc5c3d\" transform=\"scale(1 -1)translate(0 -218)\" width=\"327\" x=\"33.2875\" xlink:href=\"data:image/png;base64,\r\niVBORw0KGgoAAAANSUhEUgAAAUcAAADaCAYAAAA1xoBCAAEAAElEQVR4nOz9SbNlSZadia2jp7/t66118zY8IyIjE4lERxAgqgAKC5xxQBEOySH/AMeccsgfQBEKhTUhB2QJSkiWSIFAMVlgIhtkZBcZ4eHhjbm5da+//elVOfj2fS9qhoQUUmxgR8TF3c3eu/ccPapL11577a2R/uL/FvS//99Ju9dSIunJMynJpJdvpDBIk5FUt9LBsfRnv5AeTqW6kfJcilOpqvl/V0iPD6XrldQM0mwubbdSt5PmMylPpaqSbitJkXQ4kzIvXd9K4xPpaCxNJ5Iy6fsX0pMzKUqkl2+lLkgHki476SyXJnNpcS0dnUm3F9Kulx4+leYT6d/+sfToUJodSEUpbVdSNUipk7Y76Z/+z6SXt9JPfkdypRSPpMOR5CKpG6Qgqa2lppLa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l2Tf73vbyxq7rgC0C3Vbq8nWRGz52Wifi+D7Th1KmBoGiZMXnbfl/7J+ouE9mgBkme1qU1P2SB6L1VELirGySlzof/r1X5jDcvsyEAwNIKI/VgMWcpl4AZi4JjkC8gh30mWYRLOFJ24rGyBGAxIBR0gFuLWwJMEBFBCVGa5dboIij7YIBWwCKtNuAsq9BYZDBa4OBKm6d65+9DiNgRZ4wDbipGcEgQm5CiupGKYCWqEp/QywhS4aQaAmTUNjqg+j9LcgdwFDoIC9m6X2GWlQkOaRy4YYpYkaAPgmTyYgqz77n9qUlXSSMJJwCHL4Ak59uZYYi5kcqvYlo1vyprTR72/j6JRbLrx9Y7SLfDEx2PypvWonrK96ZrVh5bwNvb3XY9upbZ+PbdV+gUqlPScYmPsDrR0jCiAZ7x560jXPOualMKjvyTjlbJZINkAcbEx9zmUdZSAOQDsploK0fe3fWphl7Um1M1IwjtaGmDnuyGU9S5MXleeOT2ufgNeVDWn+1nZp/404xezdZfu1X8Yy//q++51y6Zu07mB+i7G6l/rn63EoryMBubPnfPb1nIA3TBsbCjjFBmim7JRzdSjSNpsZq/0aAOfppCm
|
2019-12-08 03:13:45 +00:00
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
2021-01-01 22:05:49 +00:00
|
|
|
}
|
2019-12-08 03:13:45 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"img[100:300, 100:200] = [255, 0, 0]\n",
|
|
|
|
"img[:, :, 2] = 0\n",
|
|
|
|
"plt.imshow(img[:,:,::-1])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"# set pixels red"
|
2019-12-08 03:13:45 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 22,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"output_type": "stream",
|
2021-01-01 22:05:49 +00:00
|
|
|
"name": "stdout",
|
2019-12-08 03:13:45 +00:00
|
|
|
"text": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"(213, 320, 3)\nuint8\n"
|
2019-12-08 03:13:45 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"print(img.shape)\n",
|
|
|
|
"print(img.dtype)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 23,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "execute_result",
|
2019-12-08 03:13:45 +00:00
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"(array([[0, 0, 0, ..., 0, 0, 0],\n",
|
|
|
|
" [0, 0, 0, ..., 0, 0, 0],\n",
|
|
|
|
" [0, 0, 0, ..., 0, 0, 0],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [0, 0, 0, ..., 0, 0, 0],\n",
|
|
|
|
" [0, 0, 0, ..., 0, 0, 0],\n",
|
|
|
|
" [0, 0, 0, ..., 0, 0, 0]], dtype=uint8),\n",
|
|
|
|
" array([[103, 103, 104, ..., 104, 103, 102],\n",
|
|
|
|
" [103, 102, 104, ..., 104, 105, 102],\n",
|
|
|
|
" [101, 101, 103, ..., 105, 103, 102],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [104, 102, 86, ..., 116, 87, 86],\n",
|
|
|
|
" [117, 90, 79, ..., 83, 71, 100],\n",
|
|
|
|
" [210, 97, 87, ..., 84, 108, 101]], dtype=uint8),\n",
|
|
|
|
" array([[ 53, 53, 53, ..., 49, 52, 49],\n",
|
|
|
|
" [ 51, 50, 52, ..., 46, 46, 45],\n",
|
|
|
|
" [ 50, 48, 52, ..., 49, 49, 47],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [ 51, 42, 19, ..., 57, 35, 35],\n",
|
|
|
|
" [ 77, 37, 19, ..., 30, 28, 43],\n",
|
|
|
|
" [173, 52, 26, ..., 27, 56, 46]], dtype=uint8))"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 23
|
2019-12-08 03:13:45 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"b, g, r = cv2.split(img)\n",
|
|
|
|
"r, g, b"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"# fairly expensive"
|
2019-12-08 03:13:45 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 24,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"img = cv2.merge((b, g, r))"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 25,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"BLUE = [255, 0, 0]\n",
|
|
|
|
"constant = cv2.copyMakeBorder(img, 10, 10, 10, 10, cv2.BORDER_CONSTANT, value=BLUE)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 26,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "execute_result",
|
2019-12-08 03:13:45 +00:00
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"array([[255]], dtype=uint8)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 26
|
2019-12-08 03:13:45 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"x = np.uint8([250])\n",
|
|
|
|
"y = np.uint8([10])\n",
|
|
|
|
"cv2.add(x, y)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"# use numpy integers"
|
2019-12-08 03:13:45 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 27,
|
2019-12-08 03:13:45 +00:00
|
|
|
"metadata": {},
|
2019-12-08 22:19:30 +00:00
|
|
|
"outputs": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "execute_result",
|
2019-12-08 22:19:30 +00:00
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"<matplotlib.image.AxesImage at 0x27d7c9b6d30>"
|
2019-12-08 22:19:30 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 27
|
2019-12-08 22:19:30 +00:00
|
|
|
},
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "display_data",
|
2019-12-08 22:19:30 +00:00
|
|
|
"data": {
|
2021-01-01 22:05:49 +00:00
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
|
|
|
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"251.773744pt\" version=\"1.1\" viewBox=\"0 0 257.9275 251.773744\" width=\"257.9275pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-01-01T21:54:52.553495</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.3, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 251.773744 \r\nL 257.9275 251.773744 \r\nL 257.9275 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 33.2875 227.895619 \r\nL 250.7275 227.895619 \r\nL 250.7275 10.455619 \r\nL 33.2875 10.455619 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g clip-path=\"url(#p07fb0d614e)\">\r\n <image height=\"218\" id=\"imaged35cb42c1f\" transform=\"scale(1 -1)translate(0 -218)\" width=\"218\" x=\"33.2875\" xlink:href=\"data:image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|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
2021-01-01 22:05:49 +00:00
|
|
|
}
|
2019-12-08 22:19:30 +00:00
|
|
|
}
|
|
|
|
],
|
2019-12-08 03:13:45 +00:00
|
|
|
"source": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"blended = cv2.addWeighted(img[0:200, 0:200], 0.8, img[0:200, 0:200], 0.2, 0)\n",
|
|
|
|
"plt.imshow(blended)"
|
2019-12-08 22:19:30 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 28,
|
2019-12-08 22:19:30 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "execute_result",
|
2019-12-08 22:19:30 +00:00
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"<matplotlib.image.AxesImage at 0x27d7ca0fca0>"
|
2019-12-08 22:19:30 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 28
|
2019-12-08 22:19:30 +00:00
|
|
|
},
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "display_data",
|
2019-12-08 22:19:30 +00:00
|
|
|
"data": {
|
2021-01-01 22:05:49 +00:00
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
|
|
|
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"251.806921pt\" version=\"1.1\" viewBox=\"0 0 367.157923 251.806921\" width=\"367.157923pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-01-01T21:54:53.215494</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.3, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 251.806921 \r\nL 367.157923 251.806921 \r\nL 367.157923 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 33.2875 227.928796 \r\nL 359.957923 227.928796 \r\nL 359.957923 10.488796 \r\nL 33.2875 10.488796 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g clip-path=\"url(#p8faa9b0714)\">\r\n <image height=\"218\" id=\"image30eaf3f4fa\" transform=\"scale(1 -1)translate(0 -218)\" width=\"327\" x=\"33.2875\" xlink:href=\"data:image/png;base64,\r\niVBORw0KGgoAAAANSUhEUgAAAUcAAADaCAYAAAA1xoBCAAEAAElEQVR4nGT9R69t25kliI1pltv+2OvvMzSPjCAjmZFZWZGFkgpKhVIQqiGpUdUQ1NJPKKipn1Coltr6AVIBEiAJVXKRKSArshjpIoOefPa+d93x2y43jRrjm3NfQgQIko/3nrP3WnN+ZnxjjE/9F//uP4v//H//F6gfAnypsPlIIx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2VFACM1vE8Iqj1Te++5ybsVQftlABQpHPeu7IcejznFA/bjHGKO1DDvkuZ96odXed2ypj0VPmLusmCSgjOtjQTSSL/Z6o10mH3ywh3l0zsLNQSA2af3NBej+IXURdI7k8IhYi5Zm5fzMxEAGXDjnOZgrqSdqWBM/ZwCqh9AN/8rFQI1KJBJsGa+2MMQP4qT7FmYr7i+HOCtIpE7oAhasdI+R+Az0eaFjUwoTVMxcaPAYF5EtedDSsIiay+aMagytJP6IU146QZJhOYPMGLueyZyBtNICIzkNgj9VgMwJ0YTRJnvT+ZY7OdIEBEI1JtBW5Ja1WgJUrtCYOV+CibQAvj33hWDRKNsCz++f0+7lp+nQI8d+uGVQkvtkWHu1KF2PVnLDG36MYhIbS+tVQSjqaabuijBac+UFSC/JygTfSWrzg7zLDU1qYHnNv0ASF4KD2Gij8BJ9jvRsx/6nmmHSFtpHpJmXar9WEYW1CLLi7AGeT6A6RqPaCeOx7TgfBjUNFsju8QEH+XvpAtBKDgHM2DSu8W4Rn76NAYVrNAcl1DDfS7FMaQAmfjj93zRgv6BwcUm5j3F3LNbJd/rs+Ui3T6jcb3i+lKAdwLcHFzRIVUrTcIQCZaSc58pw99qf8xqeCZLv0y8Ew0kgWICZxhp0wmwnZTKan+BYbhXxb+lJZABP/lT0zgm4LYXXEqMmhhcumLEdwNQhUBZIsqkMAxzO/QNorYg2tzTNAUD7Y1X9lECSjITBWOPGDQBdwJawcQ6+aKFCTkSsGkcIq1Q0saI+YW7ZGoGSy0z+5AjuakJsCYNVnlCVogYS3a/pblOHJb
|
2019-12-08 22:19:30 +00:00
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
2021-01-01 22:05:49 +00:00
|
|
|
}
|
2019-12-08 22:19:30 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"img = cv2.imread('sheep.png')\n",
|
2021-01-01 22:05:49 +00:00
|
|
|
"img = cv2.normalize(img.astype('float'), None, alpha=0, beta=1, norm_type=cv2.NORM_MINMAX, dtype=cv2.CV_32F)\n",
|
|
|
|
"grayscale = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\n",
|
|
|
|
"plt.imshow(grayscale)"
|
2019-12-08 22:19:30 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 29,
|
2019-12-08 22:19:30 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "execute_result",
|
2019-12-08 22:19:30 +00:00
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"<matplotlib.image.AxesImage at 0x27d7ca6f9d0>"
|
2019-12-08 22:19:30 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 29
|
2019-12-08 22:19:30 +00:00
|
|
|
},
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "display_data",
|
2019-12-08 22:19:30 +00:00
|
|
|
"data": {
|
2021-01-01 22:05:49 +00:00
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
|
|
|
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"146.041406pt\" version=\"1.1\" viewBox=\"0 0 375.2875 146.041406\" width=\"375.2875pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-01-01T21:54:53.848494</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.3, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 146.041406 \r\nL 375.2875 146.041406 \r\nL 375.2875 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 33.2875 122.163281 \r\nL 368.0875 122.163281 \r\nL 368.0875 10.737656 \r\nL 33.2875 10.737656 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g clip-path=\"url(#p9684320f6a)\">\r\n <image height=\"112\" id=\"image68bc75dbe7\" transform=\"scale(1 -1)translate(0 -112)\" width=\"335\" x=\"33.2875\" xlink:href=\"data:image/png;base64,\r\niVBORw0KGgoAAAANSUhEUgAAAU8AAABwCAYAAACelvI+AAEAAElEQVR4nET9ya5lW5aeiX2zXtUuzjlW3NKLCIYHkwxGksxMJkU1CApIJdSRoIbU1VvoBfQseoUUBEgCEhBTyqQQpMiIoHtU7n7dza7ZqXa1qlmrsQxUzxoG28fOXmvMMf/x/f8Q//v/0/+x/g9/+e84HN+x3CaQkeoX1lRojKOQqAm0VpSwMK2BoduDypQKMQW+efc1X719x8enHyFUxuApJeNajZCGkgTOWqZxpR8sOSecbfmf/+JP+ed//09pTIfShmWZuYyeya/4caRrNM+Pn3i9XRjLhASM0czLyn/45Z/zm49/B1qBlOx2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wh1u+1+L1pVggSMfXDRELo1aoRoGNaBtIQaZ54Gl5RoNQqFCsU87XZWvX7+hOun0pwN7MiIv8b4D8EAvB/MLM/+LHfL1C0EdOGcVhTWqVSoRWoAnoqcQMSxW9GMyqFKgoBRCtiRsOxaDUFtAeWUxbSsVq8Ami13AV0zKGSEyYM9ODiDwNC/97+XmJCNdFrMHLx16pavTy2hhAwyWCGnkqr2rBwuu09OKo6Rlf98Cr4IaECQRpNFn/tfvr7x/ffEfrBJn0BG+JlnxilnMpnhwAynpVJSGgIKImll4vRFJNAEy/vDWOpXkWEOFDNOlwWevaiNApNlaF/v1kDdZihWvVsuvcFlE+hJjHzsluU1uC4HAktMUYv6Rt0uKl4qW1GOWXCBM84oWcyvSoLQiBQMVSVGIPDHiZog2qlbzgPKNUypWbPKvv7aaViVvqzc6hAEAqNGISUtoj5Qd2sIq3cBR40QUhoEtQ8my54oPEDF7BG/Qw+rCjtDq/1w1qpveLzxEOsb3gLmHWcua9jozocI37frGfshICG0ddpbR4MaoFWPdu3AigmDTNPJsT8XkHyQ0Gs3+fm67816PvlBGBFVa90pVcup36EQbX2x+Ch0zo06QdtK1Rz6MShlgo0YvAqK+pANQ9oUh2SaaJ9PXjwm6s5NBYHSsmYeYYexaGUKhV
|
2019-12-08 22:19:30 +00:00
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
2021-01-01 22:05:49 +00:00
|
|
|
}
|
2019-12-08 22:19:30 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"img = cv2.imread('sheep.png')\n",
|
2021-01-01 22:05:49 +00:00
|
|
|
"x = np.concatenate((img, img), axis=1)\n",
|
2019-12-08 22:19:30 +00:00
|
|
|
"plt.imshow(x)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 30,
|
2019-12-08 22:19:30 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "execute_result",
|
2019-12-08 22:19:30 +00:00
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2021-01-01 22:05:49 +00:00
|
|
|
"<matplotlib.image.AxesImage at 0x27d7b64ed30>"
|
2019-12-08 22:19:30 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2021-01-01 22:05:49 +00:00
|
|
|
"execution_count": 30
|
2019-12-08 22:19:30 +00:00
|
|
|
},
|
|
|
|
{
|
2021-01-01 22:05:49 +00:00
|
|
|
"output_type": "display_data",
|
2019-12-08 22:19:30 +00:00
|
|
|
"data": {
|
2021-01-01 22:05:49 +00:00
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
|
|
|
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n<svg height=\"252.062132pt\" version=\"1.1\" viewBox=\"0 0 203.822711 252.062132\" width=\"203.822711pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <metadata>\r\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\r\n <cc:Work>\r\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\r\n <dc:date>2021-01-01T21:54:54.482494</dc:date>\r\n <dc:format>image/svg+xml</dc:format>\r\n <dc:creator>\r\n <cc:Agent>\r\n <dc:title>Matplotlib v3.3.3, https://matplotlib.org/</dc:title>\r\n </cc:Agent>\r\n </dc:creator>\r\n </cc:Work>\r\n </rdf:RDF>\r\n </metadata>\r\n <defs>\r\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\r\n </defs>\r\n <g id=\"figure_1\">\r\n <g id=\"patch_1\">\r\n <path d=\"M 0 252.062132 \r\nL 203.822711 252.062132 \r\nL 203.822711 0 \r\nL 0 0 \r\nz\r\n\" style=\"fill:none;\"/>\r\n </g>\r\n <g id=\"axes_1\">\r\n <g id=\"patch_2\">\r\n <path d=\"M 33.2875 228.184007 \r\nL 196.622711 228.184007 \r\nL 196.622711 10.744007 \r\nL 33.2875 10.744007 \r\nz\r\n\" style=\"fill:#ffffff;\"/>\r\n </g>\r\n <g clip-path=\"url(#p77fe757cb4)\">\r\n <image height=\"218\" id=\"image44f321afaf\" transform=\"scale(1 -1)translate(0 -218)\" width=\"164\" x=\"33.2875\" xlink:href=\"data:image/png;base64,\r\niVBORw0KGgoAAAANSUhEUgAAAKQAAADaCAYAAAAonenwAAEAAElEQVR4nDz9ybJt2ZrfCf1GPYtV7b3POe5+3W8RNyIUKENCEkIm0kzIDAOa0MCgnw/BC/AmvAGY0aIBmMASZEqUloRQZEihuHELL06xq1XMOUc9sjF2ZN9tne1zrTnG9/1L8b/9P/zv27/+q3/H8fSe9XJDqkTeVmITzHYgloioEkGhRE+qgt28I6YNaQwtZf7o17+mlYwPke22cdk2doeJUhKgmcY9l9cz4zxCy0hl+LNvfsn/4h/9Mx52D2jryDHxcllYY2K5vDKPjsvLIx8fv7C0BQCjFVsI/Pv/8Jf87ff/iWY0CDgc3/Gzn/2cl/MTvha0c6jJMYuBkBKDG/B+Y54Ham18Oa/sjwMxRQyOlhJCKXIDWuF49zU5eD48vKdWQcorZfU8nj+TNGhpkUaynRfG/YTTDj2M3A2Oj5dnRNWEulCrQFTYK8XhNLNcIz4HbktADxpdAvPujpATa4koXdFCsy2ewzDz8fkTbtqjWyVnMFZRS8WTUUKyc4ZrrpQSMFWxm0acnmhKs9zOKEAbRWqNh3nC+0AVMA2Ojx8/oo1FuwnvN6g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XSbUdqYru6OIWtuHeq22lhr+vE2Y1QcOrBbYHQVgsEnKVB2+KVJtv7seWDgA8evxWmWiviA6K2UL1GqiSDZoOlBq1tKdeWUuZmObr3keA94j1KgdpoLdO2nbk5j/POEK9ix5ZsyBuI1S7OClShWWrlArrtxA1D2wKBaHsEiqFdHns/stVUzlm94l3c7pulu0EgiGctiSUXPFuK5x7vtceSMbfVRQYZV4XcGq2mbfE7w6q21MvJI5gAVTOtFdvQitVUbgNNpFn6LQLO2fNBnQE2YpCzIjT1SLOUWb0jUHGt0hSi2zYmHN53lrlg98WASANeSmsEH9CtlHSf/WCx3VY3WE9E7BgvzYraDeLsfI8PAe8dpdQNOjWk2TnbjS2Vw+oD74l4VBu1bLuT25Ax5/BE26lENkhathpJqIIhLI/Lwjn
|
2019-12-08 22:19:30 +00:00
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
2021-01-01 22:05:49 +00:00
|
|
|
}
|
2019-12-08 22:19:30 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"img = cv2.imread('sheep.png')\n",
|
2021-01-01 22:05:49 +00:00
|
|
|
"x = np.concatenate((img, img), axis=0)\n",
|
|
|
|
"plt.imshow(x)"
|
2019-12-08 03:13:45 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
|
|
|
"display_name": "Python 3",
|
|
|
|
"language": "python",
|
|
|
|
"name": "python3"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
|
|
|
"version": 3
|
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
"pygments_lexer": "ipython3",
|
2021-01-01 22:05:49 +00:00
|
|
|
"version": "3.8.4-final"
|
2019-12-08 03:13:45 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 4
|
2021-01-01 22:05:49 +00:00
|
|
|
}
|