Last active
February 10, 2018 18:44
-
-
Save gaborvecsei/639d3cbfba61e93b98bb5ffe2c48f4e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 17, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import numpy as np\n", | |
"import cv2\n", | |
"%matplotlib inline\n", | |
"import matplotlib.pyplot as plt" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 46, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"tmp_image = np.zeros((500, 500, 3), dtype=np.uint8)\n", | |
"tmp_image = cv2.rectangle(tmp_image, (0, 0), (500, 500), (255, 255, 0), -1)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 47, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"sub_image = np.zeros((25, 25, 3), dtype=np.uint8)\n", | |
"sub_image = cv2.circle(sub_image, (12, 12), 11, (255, 0, 0), -1)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 48, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<matplotlib.image.AxesImage at 0x254b09f8d30>" | |
] | |
}, | |
"execution_count": 48, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAP8AAAD8CAYAAAC4nHJkAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAACpNJREFUeJzt3U/o3Hedx/Hna7t60R5SSkOsrdWl\nyMoeopSysLLEg5L1knoo6Cni4efBLgoeDF4qLMJeVveyL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pJ/Hnugfei/gb8DDgMXgf8Y\nd5x3S/J+4MfA16rqz2PPswxjxX8euGvH5Q8CF0aaZaaqujCcXgaeYHu3ZdNdSnIIYDi9PPI8u6qq\nS1X1dlW9A3yPDXqMk7yH7fB/UFU/GTZP6vG9nrHifxa4N8mHk7wX+DxweqRZdpXkfUluvXoe+Axw\ndvfftRFOA8eH88eBJ0ecZaarIQ0+x4Y8xkkCfB84V1Xf2fGfJvX4Xs9oB/kMb+X8J3ALcLKqvj3K\nIDMk+Qjbqz1s/yvIH27arEkeA46w/a/NLgEPAz8FHgfuBl4HHqyqjXiR7QbzHmH7KX8BrwFfvrpP\nPaYknwR+A7wIvDNs/ibb+/0b+fjOyyP8pKY8wk9qyvilpoxfasr4paaMX2rK+KWmjF9qyvilpv4f\nrd6JGq7nixwAAAAASUVORK5CYII=\n", | |
"text/plain": [ | |
"<matplotlib.figure.Figure at 0x254b0a8d128>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"plt.imshow(sub_image)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 49, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"tmp_image[100:125, 100:125, :] = sub_image" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 50, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<matplotlib.image.AxesImage at 0x254b1d64278>" | |
] | |
}, | |
"execution_count": 50, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQsAAAD8CAYAAABgtYFHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAADbtJREFUeJzt223I3Xd9x/H3Z0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qfglckmQdkwV+bzlNP1PrNcl7gWNV9UCSdzb6mYXfwpKvtJ5r2kcWq2W150yvVk1yDpOg+FJV\nfX2UZ7rnqnoOuJfJ+fK6JCf+4Zrbz4u9jv2vA55ZoRYvB96X5EngFianIjfNaK/A8q+0nnZY3A9s\nHVeYz2VyYWj/lHuaz8yuVs3kEOJm4FBVfXrOrpnrOcn6cURBklcD7wIOAfcA175Mrye+w7XA3TVO\nsJdbVd1QVZuqaguT3+XdVfWBWewVVmil9UpegHmZizJXM7mC/wPgr2agn68w+R+y/8ckfXcxOfc8\nADwxns8fcwP8/ej9u8C2KfT7e0wOHx8BHhqPq2exZ+B3gAdHr48Cfz3qbwK+zWTV7z8D5436q8b2\n4bH/TVP6TbyTl+6GzGSvo6+Hx+OxE3+XlvJ34ApOSS3TPg2RtEoYFpJaDAtJLYaFpBbDQlKLYSGp\nxbCQ1GJYSGr5f3G5xN1SrqIUAAAAAElFTkSuQmCC\n", | |
"text/plain": [ | |
"<matplotlib.figure.Figure at 0x254b098be10>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"plt.imshow(tmp_image)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 51, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"nonzero = np.nonzero(sub_image.sum(axis=2))" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 52, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"tmp_image[100:125,100:125,:][nonzero]=sub_image[nonzero]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 53, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<matplotlib.image.AxesImage at 0x254b0ab8940>" | |
] | |
}, | |
"execution_count": 53, | |
"metadata": {}, | |
"output_type": "execute_result" | |
}, | |
{ | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQsAAAD8CAYAAABgtYFHA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vGX6yZ7HV87nxh\nsWS/g2mfhrzcas9Z82urVYGFVqtOxTj0fRuTf7FnsudxWP8Qk3U5dzE5snyuql6Yp58Xex37nwcu\nWKlegZuAjwO/GtsXMLu9wksrrR8YK6RhCX8H3RWcy6W12nOGzUz/SV4DfA34aFX9dNzqnnfqPLUV\n67mqfglckmQdkwV+bzlNP1PrNcl7gWNV9UCSdzb6mYXfwpKvtJ5r2kcWq2W150yvVk1yDpOg+FJV\nfX2UZ7rnqnoOuJfJ+fK6JCf+4Zrbz4u9jv2vA55ZoRYvB96X5EngFianIjfNaK/A8q+0nnZY3A9s\nHVeYz2VyYWj/lHuaz8yuVs3kEOJm4FBVfXrOrpnrOcn6cURBklcD7wIOAfcA175Mrye+w7XA3TVO\nsJdbVd1QVZuqaguT3+XdVfWBWewVVmil9UpegHmZizJXM7mC/wPgr2agn68w+R+y/8ckfXcxOfc8\nADwxns8fcwP8/ej9u8C2KfT7e0wOHx8BHhqPq2exZ+B3gAdHr48Cfz3qbwK+zWTV7z8D5436q8b2\n4bH/TVP6TbyTl+6GzGSvo6+Hx+OxE3+XlvJ34ApOSS3TPg2RtEoYFpJaDAtJLYaFpBbDQlKLYSGp\nxbCQ1GJYSGr5f3G5xN1SrqIUAAAAAElFTkSuQmCC\n", | |
"text/plain": [ | |
"<matplotlib.figure.Figure at 0x254b0986ac8>" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"plt.imshow(tmp_image)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [] | |
} | |
], | |
"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", | |
"version": "3.6.2" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment