Typo on last example, RGB intensity (0, 59, 120) was (0.0, 0.0, 1.0)
Esse commit está contido em:
@@ -109,17 +109,17 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"R intensity at x=3, y=3 is 0.0\n",
|
||||
"G intensity at x=3, y=3 is 0.0\n",
|
||||
"B intensity at x=3, y=3 is 1.0\n"
|
||||
"R intensity at x=3, y=3 is 0\n",
|
||||
"G intensity at x=3, y=3 is 59\n",
|
||||
"B intensity at x=3, y=3 is 120\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"latest_pixel = zoomed_eye_split[3, 3]\n",
|
||||
"print(\"R intensity at x=3, y=3 is\",round(latest_pixel[0]))\n",
|
||||
"print(\"G intensity at x=3, y=3 is\",round(latest_pixel[1]))\n",
|
||||
"print(\"B intensity at x=3, y=3 is\",round(latest_pixel[2]))"
|
||||
"print(\"R intensity at x=3, y=3 is\",round(256 * latest_pixel[0]))\n",
|
||||
"print(\"G intensity at x=3, y=3 is\",round(256 * latest_pixel[1]))\n",
|
||||
"print(\"B intensity at x=3, y=3 is\",round(256 * latest_pixel[2]))"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário