I am setting up a special table to simulate the scenario in this problem in this problem, but instead of finding the geodesics, I want to create a topographical map using the contours.
Here is a picture of a sheet with steel ball bearings on it:
I am using a gray sheet so that way contrast shows up the most (ideally it would be RGBColor[.5,.5,.5]).
I am not sure how to do this using Mathematica.
In essence, this is to create a 'hybrid' computer where the square trampoline, camera, and Mathematica program will be the parts of the digital-analog computer.
UPDATE: I tried it in a darker room, painted balls, ironed the sheet (impossible to do perfectly because of material), and used heavier balls. This allows us to see closed loops.
I took Vitaliy Kaurov's answer below and made it a simple function:
topographicalMap[url_, colorMode_] :=
Module[{image, resizedImage},
(* Import and convert the image to grayscale *)
image = ColorConvert[CloudImport[url], "Grayscale"];
(* Resize image for speed *)
resizedImage = ImageData[ImageResize[image, 50]];
(* Generate the topographical map based on colorMode *)
If[colorMode,
(* If colorMode is True, use a colored contour plot *)
Rasterize[ ListContourPlot[resizedImage, Contours -> 7, ColorFunction -> "Rainbow", Frame->False]],
(* Else, use a black and white contour plot *)
Rasterize[ ListContourPlot[resizedImage, Contours -> 7, ContourShading -> None,Frame->False]]
]
]
The whole purpose of this is to just demonstrate a concept for a hobby research project. It did not have to be perfect. I just wanted to share this better photo.





