wen2580 пре 1 година
родитељ
комит
419849194e

+ 6 - 0
.ipynb_checkpoints/Untitled-checkpoint.ipynb

@@ -0,0 +1,6 @@
+{
+ "cells": [],
+ "metadata": {},
+ "nbformat": 4,
+ "nbformat_minor": 5
+}

+ 0 - 0
.ipynb_checkpoints/commit-checkpoint.bat


+ 86 - 0
Untitled.ipynb

@@ -0,0 +1,86 @@
+{
+ "cells": [
+  {
+   "cell_type": "markdown",
+   "id": "6aaaa7eb-8f89-4824-b62e-d59861bf289d",
+   "metadata": {},
+   "source": [
+    "#1.图像与矩阵"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "id": "833e9956-f6a5-4f50-98e8-0a5a3f44db64",
+   "metadata": {},
+   "source": [
+    "import numpy \n",
+    "import cv2\n",
+    "# 生成数组\n",
+    "img_array=[[[0,255,255,50]for i in range(255)]for j in range(255)]#255*255的图像,[0,255,0,128]\n",
+    "img_numpy=numpy.array(img_array)\n",
+    "cv2.imwrite(\"1.jpg\",img_numpy)"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "id": "5b183b6f-732a-469f-82d9-ef8ca56acc8c",
+   "metadata": {},
+   "source": []
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "id": "caefe276-90b4-4bfa-9125-89dd831956d7",
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "2.图像的属性"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "id": "777a90e0-773d-4a35-9e03-74ebce15a21f",
+   "metadata": {
+    "jupyter": {
+     "source_hidden": true
+    }
+   },
+   "outputs": [],
+   "source": [
+    "3.图像的像素和通道"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "id": "710896c5-c6cf-4a4e-b54a-7a7ea9be37bc",
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "4.图像操作"
+   ]
+  }
+ ],
+ "metadata": {
+  "kernelspec": {
+   "display_name": "Python 3 (ipykernel)",
+   "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.9.13"
+  }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}

+ 4 - 0
commit.bat

@@ -0,0 +1,4 @@
+@cd E:\06Teach\00000000001yangqiang
+@git add *
+@git commit -m "×÷Òµ"
+@git push -u origin master

BIN
day2/.ipynb_checkpoints/1-checkpoint.jpg


+ 6 - 0
day2/.ipynb_checkpoints/Untitled-checkpoint.ipynb

@@ -0,0 +1,6 @@
+{
+ "cells": [],
+ "metadata": {},
+ "nbformat": 4,
+ "nbformat_minor": 5
+}

+ 6 - 0
day2/.ipynb_checkpoints/Untitled1-checkpoint.ipynb

@@ -0,0 +1,6 @@
+{
+ "cells": [],
+ "metadata": {},
+ "nbformat": 4,
+ "nbformat_minor": 5
+}

BIN
day2/.ipynb_checkpoints/gpu-checkpoint.bmp


BIN
day2/.ipynb_checkpoints/sea-checkpoint.jpg


+ 6 - 0
day2/.ipynb_checkpoints/图像处理和图像特征-checkpoint.ipynb

@@ -0,0 +1,6 @@
+{
+ "cells": [],
+ "metadata": {},
+ "nbformat": 4,
+ "nbformat_minor": 5
+}


+ 33 - 0
day2/Untitled.ipynb

@@ -0,0 +1,33 @@
+{
+ "cells": [
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "id": "e5121424-c737-4fed-b896-e10d21c28035",
+   "metadata": {},
+   "outputs": [],
+   "source": []
+  }
+ ],
+ "metadata": {
+  "kernelspec": {
+   "display_name": "Python 3 (ipykernel)",
+   "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.9.13"
+  }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}

+ 33 - 0
day2/Untitled1.ipynb

@@ -0,0 +1,33 @@
+{
+ "cells": [
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "id": "34a1245b-03af-428e-baef-167d5a266de0",
+   "metadata": {},
+   "outputs": [],
+   "source": []
+  }
+ ],
+ "metadata": {
+  "kernelspec": {
+   "display_name": "Python 3 (ipykernel)",
+   "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.9.13"
+  }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}



Разлика између датотеке није приказан због своје велике величине
+ 100 - 0
day2/图像处理和图像特征.ipynb


Разлика између датотеке није приказан због своје велике величине
+ 64 - 0
day3/.ipynb_checkpoints/day3-checkpoint.ipynb


BIN
day3/.ipynb_checkpoints/gpu-checkpoint.bmp



Разлика између датотеке није приказан због своје велике величине
+ 64 - 0
day3/day3.ipynb




+ 7 - 0
ex01.py

@@ -0,0 +1,7 @@
+import numpy # 向量与矩阵运算序(线性代数运算序) 1.19.5
+import cv2  # opencv-python opencv-contrib-python:图像处理
+#生成数组
+img_array=[[[0,225,225,50] for i in range(50)] for j in range(50)] # 255 * 255的图像,图像的像素[0,255,0,128]
+# cv2中只支持numpy的格式
+img_numpy = numpy.array(img_array)
+cv2.imwrite("1.jpg",img_numpy)

Неке датотеке нису приказане због велике количине промена