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.1.
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). When all the cataract types are off, the cataract eye panel is named like "Age 65, no cataract" (the image is the same as the Normal eye). Based on the literature, this app views the difference between aging and cataract as follows. The normal eye of the chosen age shows the changes said to occur with age, in which the whole lens slowly becomes yellow and scatters more light. The cataract eye adds opacities to it: nuclear cataract is represented as that change progressed strongly at the centre, and cortical and posterior subcapsular cataracts as opacities that form in part of the lens.
About the reference eye
The reference is a 20-year-old eye
The image on the screen reaches you through your own eyes. The yellowing and light scatter of your eyes are added to the image without doing anything. So "Normal eye (age)" and "Cataract eye" apply to the image only the change from the reference eye (a young eye of age 20). When a person of about 20 looks at it, it is close to how that age sees.
If you are older than 20
While the reference stays at 20, the change in your own eyes is added on top, so it looks a little stronger than it really is.
The reference age can be changed
The reference age of 20 is the initial value. You can change it from 20 to 90 with "Viewer age" in the research settings. If you set it to your own age, how ages above yours look becomes more accurate.
How an eye younger than you sees
When "Viewer age" is set to your own age, setting the age slider younger than your age cannot fully reproduce how a younger eye sees.
- Light scatter (glare and haze): The scatter of an eye younger than you cannot be simulated, because the scatter that happens inside your eyes cannot be removed on the image side. In the range younger than your age, the scatter stays the same as at your age, and it is not a correct simulation.
- Color: The difference in lens yellowing is corrected with the colors of the image. In the range younger than your age, the image is made bluer to bring it closer to the color of a younger eye.
- 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; the play/stop button starts and stops it. While the automatic change is playing, swipe the image left or right with one finger (or drag with the mouse) for the next or previous sample (left = next, right = previous; a diagonal swipe works when the movement is more sideways than up or down); the automatic change continues. Moving up or down does not move the image, and the automatic change continues. Tapping (releasing without moving), double-tapping, two-finger operations, the wheel, and so on stop the automatic change. When it is stopped, choose from the sample list. 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. While any research value is changed from its general value, "Using research values" is shown at the top right of the image, and a mark "*" is added after the names of the panels the value affects; "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, including the research values, is remembered automatically.
Zoom
- Zoom with the slider, pinch or the trackpad pinch. Drag with one finger or the mouse to move the image (when the image is larger than the screen; while the automatic change is playing, the image does not move, so tap the screen to stop the automatic change first). 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.1 です。
使用方法
- 元の画像指定年齢の正常眼白内障眼表示
- 元の画像・指定した年齢の正常眼・白内障眼です。初期値は 3 つともオンです。3 つは独立に押せ、押した物が区画になります(最後の 1 つは解除できません)。白内障の型を全部オフにした時は、白内障眼の区画の名前は「65 歳(白内障なし)」のようになります(画像は正常眼と同じです)。本アプリは、文献に基づいて、加齢と白内障の違いを次のように捉えています。指定年齢の正常眼は、年齢とともに水晶体の全体が少しずつ黄色くなり、光を散らすようになるとされる変化を表した眼です。白内障眼はそれに濁りを加えた眼で、核白内障はその変化が中心で強く進んだもの、皮質白内障と後嚢下白内障は水晶体の一部にできる濁りとして表しています。
見え方の基準について
20 歳の眼を基準にしています
画面の画像は、見ているあなた自身の眼を通って届きます。あなたの眼の黄ばみや光の散乱は、何もしなくても画像に重なります。そのため、「指定年齢の正常眼」と「白内障眼」は、基準の眼(20 歳の若い眼)からの変化分だけを画像に加えています。20 歳前後の人が見ると、その年齢の見え方に近くなります。
あなたが 20 歳より年上の場合
基準が 20 歳のままだと、あなたの眼の変化が重なるので、実際より少し強く見えます。
基準の年齢は変更できます
基準の 20 歳は初期値です。研究向けの設定の「見る人の年齢」で、20〜90 歳の間で変更できます。自分の年齢に合わせると、自分の年齢より上の見え方が、より正確になります。
自分の年齢より若い眼の見え方
「見る人の年齢」を自分の年齢に合わせた時、年齢のスライダーを自分の年齢より若くしても、若い眼の見え方は完全には再現できません。
- 光の散乱(まぶしさ・霞): 自分の年齢より若い眼の散乱は、シミュレーションできません。あなたの眼の中で起きている散乱を、画像の側で取り除く事はできないためです。自分の年齢より若い範囲では、散乱は自分の年齢の時と同じままで、正しいシミュレーションにはなりません。
- 色合い: 水晶体の黄ばみの差は、画像の色で補正しています。自分の年齢より若い範囲では、画像の青みを増して、若い眼の色合いに近づけています。
- 核 50% ▼皮質 25% ▼後嚢下 25% ▼白内障の型と進み具合
- ボタンの文字の部分を押すと、その型のオン・オフが替わります。ボタンには進み具合の % を常に表示し、オフの型は薄くなりますが % は残ります。「▼」を押すと、進み具合(0〜100%)のスライダーがポップアップで表示されます。ポップアップは、外を押すか、窓の幅(画面の向き)が変わると閉じます。2 本指の上下(トラックパッドは 2 本指の上下スクロール)でも、最後に「▼」で操作した型の進み具合を動かせます。複数の型を同時にオンにできます。初期値は、核 50%(オン)・皮質 25%(オン)・後嚢下 25%(オフ)です。
- 年齢のスライダー(20〜90 歳)
- 5 歳刻みで年齢を決めます。「指定年齢の正常眼」と「白内障眼」が同じ年齢を使用します。年齢が高いほど、水晶体の黄ばみと光の散乱が増えます。
- 暗所散瞳暗所散瞳
- 暗い所では瞳孔が開き、濁りによるまぶしさと霞が強くなります。オンで瞳孔を 7 mm に固定し、オフは画像の明るさから自動で決めます。初期値はオンです。
- 色順応色順応
- 長く白内障だと、脳が黄ばみに慣れて気づきにくくなります。オンは慣れた後(既定)、オフは慣れる前の見え方です。
イメージソース
- アルバムのボタンで、サンプル・カメラ・自分の画像の一覧を表示します。サンプルは場面ごとにまとまっていて、約 8 秒ごとに自動で切り替わります。再生・停止のボタンで、自動切り替えを再生・停止します。自動切り替えで再生している間は、画像を 1 本指(マウスのドラッグ)で左右に払うと前後のサンプルに移ります(左へ = 次、右へ = 前。斜めでも、横の動きが縦より大きければ移ります)。移った後も自動切り替えは続きます。上下に動かしても、画像は動かず、自動切り替えも続きます。画面を押す(動かさずに離す)・ダブルタップ・2 本指の操作・ホイールなどをすると、自動切り替えは止まります。停止している時は、サンプルの一覧から選びます。画面の左下に場面の名前を表示します。カメラのボタンで、次のカメラに替わります。次に開いた時は、サンプルから始まります。
保存
- 画面に表示されている画像(全ての区画)を JPEG で保存します。
- 研究
- 研究向けの設定の板を開きます。物理の値を、区分(年齢・眼の条件・白内障・画像・計算)ごとに直接入力できます。値の一式を JSON で保存・読み込み(表示の選択を含む)でき、乱数の種も決められます。研究向けの値を 1 つでも一般向けの値から変更している間は、画像の右上に「研究向けの値を使用中」と表示され、その値が効く区画の名前の後ろに印「*」が付きます。「一般向けの値に戻す」で戻ります。
設定
- 保存画像への文字の埋め込み、言語、色空間、すべてを初期値に戻す、アプリケーション情報、関連ソフトウェアを開きます。最後の状態は、研究向けの値も含めて自動で覚えます。
ズーム
- スライダー、ピンチ、トラックパッドのピンチで拡大します。1 本指・マウスのドラッグで画像を動かせます(画像が画面より大きい時。自動切り替えの再生中は画像は動かないので、画面を押して自動切り替えを止めてから動かします)。ダブルクリック(ダブルタップ)で、ズームと位置が元に戻ります。
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: 浴室