|
@@ -1,5 +1,13 @@
|
|
|
{
|
|
|
"cells": [
|
|
|
+ {
|
|
|
+ "cell_type": "raw",
|
|
|
+ "id": "8eade5c1-3035-49a6-9146-159ded4a7153",
|
|
|
+ "metadata": {},
|
|
|
+ "source": [
|
|
|
+ "#1.图像与矩阵"
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
"execution_count": 1,
|
|
@@ -15,40 +23,6 @@
|
|
|
"cv2.imwrite(\"1.jpg\",img_numpy)"
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
- "cell_type": "raw",
|
|
|
- "id": "8eade5c1-3035-49a6-9146-159ded4a7153",
|
|
|
- "metadata": {},
|
|
|
- "source": [
|
|
|
- "turn"
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- "cell_type": "markdown",
|
|
|
- "id": "a20cdc0f-aaa7-4e18-8e6f-10d209d034a8",
|
|
|
- "metadata": {},
|
|
|
- "source": [
|
|
|
- "img = cv2.imread(gpu.bmp)"
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- "cell_type": "markdown",
|
|
|
- "id": "c3e56a96-866b-409e-b618-8ffa72179774",
|
|
|
- "metadata": {},
|
|
|
- "source": [
|
|
|
- "img = cv2.imread(gpu.bmp)\n",
|
|
|
- "img"
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- "cell_type": "markdown",
|
|
|
- "id": "760f9698-e6e7-48c4-929d-71c3e58f266c",
|
|
|
- "metadata": {},
|
|
|
- "source": [
|
|
|
- "img = cv2.imread(gpu.bmp)\n",
|
|
|
- "/cv2"
|
|
|
- ]
|
|
|
- },
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
"execution_count": 15,
|
|
@@ -119,6 +93,16 @@
|
|
|
"plt.gca().set_xticks([]) #坐标轴\n"
|
|
|
]
|
|
|
},
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": null,
|
|
|
+ "id": "b630739e-79c0-46de-bc2a-441d2b43f9e5",
|
|
|
+ "metadata": {},
|
|
|
+ "outputs": [],
|
|
|
+ "source": [
|
|
|
+ "#2.图像的性质"
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
"execution_count": 27,
|