master
higepi 1 year ago
parent 0b4fc9e542
commit b7926f6df9

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 63,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
@ -13,7 +13,7 @@
},
{
"cell_type": "code",
"execution_count": 64,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
@ -27,7 +27,7 @@
},
{
"cell_type": "code",
"execution_count": 65,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
@ -45,7 +45,7 @@
},
{
"cell_type": "code",
"execution_count": 66,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
@ -55,7 +55,7 @@
},
{
"cell_type": "code",
"execution_count": 67,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
@ -105,7 +105,7 @@
},
{
"cell_type": "code",
"execution_count": 68,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
@ -114,7 +114,7 @@
},
{
"cell_type": "code",
"execution_count": 69,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
@ -123,7 +123,7 @@
},
{
"cell_type": "code",
"execution_count": 109,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
@ -138,7 +138,7 @@
},
{
"cell_type": "code",
"execution_count": 97,
"execution_count": 10,
"metadata": {},
"outputs": [
{
@ -160,7 +160,7 @@
},
{
"cell_type": "code",
"execution_count": 108,
"execution_count": 11,
"metadata": {},
"outputs": [
{
@ -179,19 +179,14 @@
" [0. 1. 2.]\n",
" [0. 1. 2.]\n",
" [0. 1. 2.]\n",
" [0. 1. 2.]]\n"
]
},
{
"ename": "IndexError",
"evalue": "tuple index out of range",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mIndexError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn [108], line 11\u001b[0m\n\u001b[1;32m 7\u001b[0m B \u001b[39m=\u001b[39m img_2_mat(A)\n\u001b[1;32m 9\u001b[0m \u001b[39mprint\u001b[39m(B)\n\u001b[0;32m---> 11\u001b[0m A \u001b[39m=\u001b[39m mat_2_img(B,A)\n\u001b[1;32m 13\u001b[0m \u001b[39mprint\u001b[39m(A)\n",
"Cell \u001b[0;32mIn [106], line 6\u001b[0m, in \u001b[0;36mmat_2_img\u001b[0;34m(mat, my_img)\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39mmat_2_img\u001b[39m(mat,my_img):\n\u001b[0;32m----> 6\u001b[0m img_seg \u001b[39m=\u001b[39m mat\u001b[39m.\u001b[39mreshape(my_img\u001b[39m.\u001b[39mshape[\u001b[39m0\u001b[39m], my_img\u001b[39m.\u001b[39mshape[\u001b[39m1\u001b[39m], my_img\u001b[39m.\u001b[39;49mshape[\u001b[39m3\u001b[39;49m])\n\u001b[1;32m 7\u001b[0m \u001b[39mreturn\u001b[39;00m img_seg\n",
"\u001b[0;31mIndexError\u001b[0m: tuple index out of range"
" [0. 1. 2.]]\n",
"[[[0. 1. 2.]\n",
" [0. 1. 2.]\n",
" [0. 1. 2.]]\n",
"\n",
" [[0. 1. 2.]\n",
" [0. 1. 2.]\n",
" [0. 1. 2.]]]\n"
]
}
],
@ -205,7 +200,7 @@
"B = img_2_mat(A)\n",
"\n",
"print(B)\n",
"\n",
"B[0,:] = np.array([0,0,0])\n",
"A = mat_2_img(B,A)\n",
"\n",
"print(A)"
@ -214,7 +209,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.10 64-bit",
"display_name": "Python 3.9.4 64-bit",
"language": "python",
"name": "python3"
},
@ -228,12 +223,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.9.4"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6"
"hash": "2ef431f6525756fa8a44688585fa332ef3b2e5fcfe8fe75df35bbf7028a8b511"
}
}
},

Loading…
Cancel
Save