Function Repository Resource:

CanineVision

Source Notebook

See images through a dog's eyes

Contributed by: Michael Sollami

ResourceFunction["CanineVision"][image]

shows how a canine would see the given image.

Details and Options

The input need not be an Image.
If the given expression is not an image, it is first passed to Rasterize.
A dog’s vision is equivalent to a human with red-green color blindness, according to Wikipedia.

Examples

Basic Examples (3) 

View an image with dog vision:

In[1]:=
{#, ResourceFunction["CanineVision"]@#} &@
 ResourceFunction["RandomPhoto"][400]
Out[1]=

Compare human and canine vision in a split-view:

In[2]:=
img = ResourceFunction["GetUnsplashImage"]["backyard", 500];
ResourceFunction["ImageSplitCompare"][img, ResourceFunction["CanineVision"]@img]
Out[2]=

Create a flip-view (toggled by clicking) of human and dog views of a Graphics object:

In[3]:=
i = Plot[Evaluate[Table[BesselJ[n, x], {n, 4}]], {x, 0, 10}, Filling -> Axis, Background -> White];
FlipView[MapThread[
  Labeled[Image[#1, ImageSize -> Medium], #2] &, {{i, ResourceFunction["CanineVision"]@i}, {"Human", "Dog"}}]]
Out[4]=

Publisher

Michael Sollami

Version History

  • 1.0.0 – 15 April 2020

Related Resources

License Information