Commit f54778ba authored by Jennifer Lorena Ortega Aguilar's avatar Jennifer Lorena Ortega Aguilar
Browse files

BPF

parent d132a31b
......@@ -25,7 +25,7 @@
"#imagename = \"Data/crateres.jpg\"\n",
"#imagename = \"Data/Perseverance_ZR0_0074.png\" -codigo adicional para recorte de bordes negros.\n",
"#imagename = \"Data/mastcamz_2_prints.jpg\"\n",
"imagename = \"Data/Data_Mars_Mars8.png\"\n",
"imagename = \"Data_Mars/Mars8.png\"\n",
" \n",
"# read the image data using PIL\n",
"image = Image.open(imagename)"
......
......@@ -561,6 +561,21 @@
"plt.show()\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Cráteres\n",
"path = 'Data_Mars/crateres.jpg'\n",
"seg.gra_umbral(path)\n",
"umbral = 70\n",
"img10 = seg.segmentar(path, seg.thresh_inv(path, umbral), 0.10)\n",
"plt.imshow(img10[200:300, 100:200])\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
......@@ -676,7 +691,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.7.3"
}
},
"nbformat": 4,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment