Kazunori Asada
About "Eye Age Simulator - Web Edition"
This is an experience tool that shows how aging and cataract change the way the eye sees. It applies a calculation of the eye's optics (yellowing of the lens, blur, and glare and haze from opacities) to an image (a sample, the camera or your own image) and shows it next to the original image and a normal eye. It cannot be used for diagnosis or treatment. The numbers are literature-based estimates, and how things look differs between people. Version 0.9.
How to Use
- OriginalNormal eyeCataract eyeViews
- Original, Normal eye at the set age, and Cataract eye. All three are on by default. The three buttons are independent; each chosen view becomes a panel (at least one stays on).
- Nuclear 50% ▼Cortical 25% ▼PSC 25% ▼Cataract type and progress
- Pressing the body of a type button turns that type on or off; the button always shows its progress in %, and a type that is off is dimmed but keeps its %. Pressing the ▼ opens a popup with the progress slider (0 to 100%); the popup closes when you press outside it or when the window width (or screen orientation) changes. Moving two fingers up or down (on a trackpad, two-finger scrolling) also changes the progress of the type you last adjusted. More than one type can be on. The initial values are Nuclear 50% (on), Cortical 25% (on), PSC 25% (off).
- Age slider (20 to 90)
- Sets the age in steps of 5. Normal eye and Cataract eye use the same age. Older age means more lens yellowing and light scatter.
- Dark pupilDark pupil
- In the dark the pupil opens, and glare and haze from the opacity get stronger. On fixes the pupil at 7 mm; off is automatic from the brightness of the image. It is on by default.
- Chromatic adaptationChromatic adaptation
- With long-standing cataract, the brain adapts to the yellowing and notices it less. On is after adapting (the default); off is before adapting.
Image source
- The album button opens a list: Samples, Camera, My image. Samples are grouped by scene and change automatically about every 8 seconds; touching the screen stops it, and the play/stop button resumes. Swipe left or right for the previous or next sample (while zoomed in, it moves the image). The scene name is shown at the bottom left. The camera button switches to the next camera. The next time the page opens, it starts with the samples.
Save
- Saves the image on screen (all panels) as a JPEG.
- Research
- Opens the research panel, where the physical values can be entered directly by area (age, eye conditions, cataract, image, calculation). It also saves and loads all values as JSON (including the choice of views) and sets the random seed. When the research values differ from those of the general settings, "Using research values" is shown at the top right of the image; "Reset to general values" brings them back.
Settings
- Embed text in saved images, the language, the color space, Reset all to default, the application information and related software. The last state is remembered automatically.
Zoom
- Zoom with the slider, pinch or the trackpad pinch. While zoomed in, drag to move the image. Double-click (double-tap) returns zoom and position to the start.
A web browser which supports WebGL 2 is required. The web camera only works when WebRTC is supported and the page is opened over HTTPS. Images are processed only in your browser and are not sent anywhere.
HDR photos and ordinary photos: the glare of a cataract depends on the true strength of strong lights, which an ordinary photo records only as "white". A photo with a gain map (HDR; Android Ultra HDR or ISO 21496-1) lets this app calculate the glare of headlights and street lamps according to their strength. Other photos and the camera video are treated as ordinary photos, with weaker glare. 44 of the 50 samples are HDR. "HDR" next to the scene name at the bottom left shows that the image is an HDR image.
Licenses
The sample photos are cropped from HDRIs (CC0) of Poly Haven (polyhaven.com) and ambientCG (ambientcg.com). CC0 is a public-domain dedication; credit is not required, but the sources and the authors are listed below, with thanks. The reading pages are self-made, using text from Natsume Soseki's public-domain novel "I Am a Cat". The photo of the oncoming headlights is "Headlights of a car running on a night road" (Yukillow) from Pakutaso (pakutaso.com, https://www.pakutaso.com/en/20200244059post-25672.html). It is used under the Pakutaso terms of use (free for commercial and non-commercial use, modification allowed, no credit required); it is not CC0. Physical values have been added to the headlight pixels.
- Greg Zaal: Moonlit woods, Clear hillside, high sun, Station platform at night, Lounge with window light, Wooden lounge, Night city square, Park at night, Lake and hillside glare, Water surface glare, Kitchen, Washroom, Underground passage
- Sergej Majboroda: Tree-lined road in daylight, Cafe, Room with a brick wall, Snowy night, Park, backlit (sun in frame), Cinema screen, Overcast winter field
- Self-made pages: Book page, Newspaper, Medicine leaflet, Smartphone screen, Timetable board, Menu
- Oliksiy Yakovlyev: Hospital room, Hospital ward, Snowy park, bright snow, Snowy forest path
- ambientCG: Tunnel exit, bright light, Wet foggy road, Night alley, cobblestones, Living room with TV
- Dimitrios Savva, Jarod Guest: Street in daylight, Field at dusk, Store shelves
- Savva Zakharov: Room with lockers, Park path in dappled light, Corridor
- Greg Zaal, Rico Cilliers: Plaza at night, Parking garage, dark with bright openings
- Greg Zaal, Jenelle van Heerden: Cobblestone street at night
- Yukillow(ぱくたそ): Oncoming headlights
- Grzegorz Wronkowski: Evening street
- Dario Barresi, Jenelle van Heerden: Bedroom
- Greg Zaal, Dimitrios Savva: Sunset
- Alexander Scholten: Winter lake
- Philip Modin: Railway cutting in dappled light
- Dario Barresi: Staircase
- Adrian Kubasa: Bathroom
Kazunori Asada
「眼の年齢シミュレータ - Web Edition」について
加齢と白内障による眼の見え方を体験するツールです。画像(サンプル・カメラ・自分の画像)に、眼の光学(水晶体の黄ばみ・ぼけ・濁りによる散乱とまぶしさ)を計算して反映し、元の画像や正常眼と並べて表示します。診断・治療の目的には使用できません。数値は文献の目安で、見え方には個人差があります。バージョン 0.9 です。
使用方法
- 元の画像指定年齢の正常眼白内障眼表示
- 元の画像・指定した年齢の正常眼・白内障眼です。初期値は 3 つともオンです。3 つは独立に押せ、押した物が区画になります(最後の 1 つは解除できません)。
- 核 50% ▼皮質 25% ▼後嚢下 25% ▼白内障の型と進み具合
- ボタンの文字の部分を押すと、その型のオン・オフが替わります。ボタンには進み具合の % を常に表示し、オフの型は薄くなりますが % は残ります。「▼」を押すと、進み具合(0〜100%)のスライダーがポップアップで表示されます。ポップアップは、外を押すか、窓の幅(画面の向き)が変わると閉じます。2 本指の上下(トラックパッドは 2 本指の上下スクロール)でも、最後に「▼」で操作した型の進み具合を動かせます。複数の型を同時にオンにできます。初期値は、核 50%(オン)・皮質 25%(オン)・後嚢下 25%(オフ)です。
- 年齢のスライダー(20〜90 歳)
- 5 歳刻みで年齢を決めます。「指定年齢の正常眼」と「白内障眼」が同じ年齢を使用します。年齢が高いほど、水晶体の黄ばみと光の散乱が増えます。
- 暗所散瞳暗所散瞳
- 暗い所では瞳孔が開き、濁りによるまぶしさと霞が強くなります。オンで瞳孔を 7 mm に固定し、オフは画像の明るさから自動で決めます。初期値はオンです。
- 色順応色順応
- 長く白内障だと、脳が黄ばみに慣れて気づきにくくなります。オンは慣れた後(既定)、オフは慣れる前の見え方です。
イメージソース
- アルバムのボタンで、サンプル・カメラ・自分の画像の一覧を表示します。サンプルは場面ごとにまとまっていて、約 8 秒ごとに自動で切り替わります。画面に触れると止まり、再生・停止のボタンで再開できます。左右のスワイプで前後のサンプルに移ります(拡大中は画像の移動)。画面の左下に場面の名前を表示します。カメラのボタンで、次のカメラに替わります。次に開いた時は、サンプルから始まります。
保存
- 画面に表示されている画像(全ての区画)を JPEG で保存します。
- 研究
- 研究向けの設定の板を開きます。物理の値を、区分(年齢・眼の条件・白内障・画像・計算)ごとに直接入力できます。値の一式を JSON で保存・読み込み(表示の選択を含む)でき、乱数の種も決められます。研究向けの値が一般向けの設定から計算した値と違う時は、画像の右上に「研究向けの値を使用中」と表示されます。「一般向けの値に戻す」で戻ります。
設定
- 保存画像への文字の埋め込み、言語、色空間、すべてを初期値に戻す、アプリケーション情報、関連ソフトウェアを開きます。最後の状態は自動で覚えます。
ズーム
- スライダー、ピンチ、トラックパッドのピンチで拡大します。拡大中は、ドラッグで画像を動かせます。ダブルクリック(ダブルタップ)で、ズームと位置が元に戻ります。
WebGL 2 をサポートしているウェブブラウザーが必要です。ウェブカメラは、WebRTC をサポートし、ページを HTTPS で開いた時だけ動作します。画像はブラウザーの中だけで処理し、外へ送りません。
HDR の写真と普通の写真: 白内障のまぶしさは強い光の本当の強さで決まりますが、普通の写真は、その光を「白」としか記録しません。ゲインマップ付きの HDR の写真(Android の Ultra HDR、ISO 21496-1)なら、ヘッドライトや街灯のまぶしさを、強さに合わせて計算します。それ以外の写真とカメラの映像は、普通の写真として扱い、まぶしさは弱くなります。サンプルは、50 枚のうち 44 枚が HDR です。左下の場面の名前の横に「HDR」と表示されている画像は、HDR の画像です。
ライセンス
サンプルの写真は、Poly Haven(polyhaven.com)と ambientCG(ambientcg.com)の HDRI(CC0)から切り取っています。CC0 は著作権を放棄した画像で、表示は不要ですが、作者への感謝として、出典と作者の一覧を下に載せます。読む物の紙面は自作で、本文に青空文庫の夏目漱石『吾輩は猫である』(著作権切れ)を使用しています。対向車のヘッドライトの写真は、ぱくたそ(pakutaso.com)の「夜道を走る車のヘッドライト」(Yukillow、https://www.pakutaso.com/en/20200244059post-25672.html)です。ぱくたその利用規約(商用・非商用とも無料、加工可、クレジット不要)による素材で、CC0 ではありません。ヘッドライトの画素に、物理の値を加算してあります。
- Greg Zaal: 月夜の林、晴れた丘(太陽が高い)、夜の駅のホーム、居間(窓の光)、木の部屋、夜の街(広場の街灯)、夜の公園、湖と丘の照り返し、水面の照り返し、台所、洗面所、地下通路
- Sergej Majboroda: 昼の並木道、カフェ、レンガの壁の部屋、雪の夜、公園(逆光・太陽が写る)、映画館(スクリーン)、曇りの冬の野原
- 自作の紙面: 本のページ、新聞、薬の説明書、スマートフォンの画面、時刻表・案内板、メニュー
- Oliksiy Yakovlyev: 病院の診察室、病院の病室、雪の公園(雪面のまぶしさ)、雪の林道
- ambientCG: トンネルの出口(明るい光)、濡れた霧の道、夜の路地(石畳)、居間(テレビ)
- Dimitrios Savva, Jarod Guest: 昼の街並み、夕暮れの野原、店の棚
- Savva Zakharov: ロッカーのある部屋、公園の木漏れ日、廊下
- Greg Zaal, Rico Cilliers: 夜の広場、駐車場(暗い所と明るい出口)
- Greg Zaal, Jenelle van Heerden: 夜の石畳の道
- Yukillow(ぱくたそ): 対向車のヘッドライト
- Grzegorz Wronkowski: 夕暮れの街
- Dario Barresi, Jenelle van Heerden: 寝室
- Greg Zaal, Dimitrios Savva: 夕日
- Alexander Scholten: 冬の湖
- Philip Modin: 線路の切り通し(木漏れ日)
- Dario Barresi: 階段(段差)
- Adrian Kubasa: 浴室