A1
BIN
A1/TD.pdf
Normal file
BIN
D3/TP/TP_SETI_Kmeans/fruits_1.jpg
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_10.jpg
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_11.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_12.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_13.jpg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_14.jpg
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_15.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_16.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_17.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_18.jpg
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_19.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_2.jpg
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_20.jpg
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_21.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_22.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_23.jpg
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_24.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_25.jpg
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_26.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_3.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_4.jpg
Normal file
After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 21 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_6.jpg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_7.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_8.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
D3/TP/TP_SETI_Kmeans/fruits_9.jpg
Normal file
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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|