Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Simulate what an animal sees
ResourceFunction["SimulateAnimalVision"][animal, image] simulates to the human eye how the given animal would see image. | |
ResourceFunction["SimulateAnimalVision"][animal] represents an operator form that can be applied to an image. |
"Distance" | Automatic | view distance from eye to image on screen |
"HumanPupilDiameter" | Automatic | diameter of human pupil |
"PhysicalImageSize" | Automatic | physical size of image on screen |
"ScreenResolution" | Automatic | resolution of screen |
"SetFinalBackgroundWhiteQ" | False | whether to apply final filter for white background |
"SnellenRatio" | Automatic | Snellen ratio as measured for visual acuity |
Simulate how a dog would see an image 1 meter away:
In[1]:= |
Out[1]= |
Simulate how various animals would see this image:
In[2]:= |
Out[2]= |
The "Distance" option defines the distance from screen to eye. Mice are very short sighted:
In[3]:= |
Out[3]= |
The normal human pupil size in adults varies from 2 to 4 millimeters in diameter in bright light to 4 to 8 millimeters in the dark:
In[4]:= |
Out[4]= |
Get a test image:
In[5]:= |
Out[5]= |
Simulate protanopia color blindness:
In[6]:= |
Out[6]= |
One can perceive an overall blue "tint" in normal vision. To eliminate this tint, use "SetFinalBackgroundWhiteQ"→True:
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License