{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "Tce3stUlHN0L" }, "source": [ "##### Copyright 2020 The TensorFlow IO Authors." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "cellView": "form", "execution": { "iopub.execute_input": "2020-11-12T02:20:05.604703Z", "iopub.status.busy": "2020-11-12T02:20:05.604038Z", "iopub.status.idle": "2020-11-12T02:20:05.606322Z", "shell.execute_reply": "2020-11-12T02:20:05.606747Z" }, "id": "tuOe1ymfHZPu" }, "outputs": [], "source": [ "#@title Licensed under the Apache License, Version 2.0 (the \"License\");\n", "# you may not use this file except in compliance with the License.\n", "# You may obtain a copy of the License at\n", "#\n", "# https://www.apache.org/licenses/LICENSE-2.0\n", "#\n", "# Unless required by applicable law or agreed to in writing, software\n", "# distributed under the License is distributed on an \"AS IS\" BASIS,\n", "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", "# See the License for the specific language governing permissions and\n", "# limitations under the License." ] }, { "cell_type": "markdown", "metadata": { "id": "qFdPvlXBOdUN" }, "source": [ "# 색 공간 변환" ] }, { "cell_type": "markdown", "metadata": { "id": "MfBg1C5NB3X0" }, "source": [ "
![]() | \n",
" ![]() | \n",
" ![]() | \n",
" ![]() | \n",
"
RGB
이미지를 `Grayscale`로 변환하여 채널을 3개에서 1개로 줄일 수 있습니다."
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"execution": {
"iopub.execute_input": "2020-11-12T02:20:16.830253Z",
"iopub.status.busy": "2020-11-12T02:20:16.829500Z",
"iopub.status.idle": "2020-11-12T02:20:17.444795Z",
"shell.execute_reply": "2020-11-12T02:20:17.445217Z"
},
"id": "eEa0Z5U26Ep3"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(213, 320, 1)