Creato con Colab

This commit is contained in:
Christian
2025-03-20 10:24:35 +01:00
parent f73597c00a
commit def6fc67e8
+9 -6
View File
@@ -684,7 +684,8 @@
" return blurred"
],
"metadata": {
"id": "PoTzLauTQlHl"
"id": "PoTzLauTQlHl",
"cellView": "form"
},
"execution_count": null,
"outputs": []
@@ -763,7 +764,8 @@
"points = (from2Dto3D_vectorized_torch(depth_map, img, depth, quality)).cpu().numpy()"
],
"metadata": {
"id": "u9S_ulEFRmiI"
"id": "u9S_ulEFRmiI",
"cellView": "form"
},
"execution_count": null,
"outputs": []
@@ -781,7 +783,8 @@
"points = transform_points(points, translate=(0, 0, 0), rotate=(0, 0, 0), scale=(1,1,0.5))"
],
"metadata": {
"id": "gEjBciYYldPF"
"id": "gEjBciYYldPF",
"cellView": "form"
},
"execution_count": null,
"outputs": []
@@ -815,8 +818,8 @@
"source": [
"#@title Translation\n",
"tx=0#@param {\"type\" : \"number\"}\n",
"ty=-50#@param {\"type\" : \"number\"}\n",
"tz=0#@param {\"type\" : \"number\"}\n",
"ty=0#@param {\"type\" : \"number\"}\n",
"tz=200#@param {\"type\" : \"number\"}\n",
"\n",
"points = transform_points(points, translate=(tx, ty, tz), rotate=(0, 0, 0), scale=(1,1,1))"
],
@@ -875,7 +878,7 @@
"fov=45 #@param {\"type\" : \"number\"}\n",
"correction = True #@param{\"type\":\"boolean\"}\n",
"k_size =3 #@param{\"type\" : \"number\"}\n",
"points_cop = transform_points(points.detach().cpu().numpy().copy(), translate=translation, scale=scale)\n",
"points_cop = transform_points(points.copy(), translate=translation, scale=scale)\n",
"translation = np.array([0,0, -(height/m.sin(m.radians(fov)))])\n",
"points_cop = transform_points(points_cop, translate=translation)\n",
"\n",