C# console application: generates heatmaps from eye-tracking data (JSON) and image files (BMP). Creates "instantaneous" or global heatmaps, and videos (with addons).
- Reads eye-tracking data in JSON format (see samples).
- Generates intensity heatmap using Gaussian smoothing (kernel) function.
- Combines background image with heatmap using alpha compositing.
- Optionally generates video using ffmpeg and mp4fpsmod tools.
- Ensure the eye-tracking data and image files are in the correct format and folder organisation. Or: modify the read-in code. See sample provided
- Install ffmpeg and fpsmp4mod and add them to your system path (optional; for video):
- Select the function:
- "generate instantaneous heatmaps" creates heatmap images (png) for individual frames. After they are generated there is the option to create a video.
- "generate global heatmaps" creates a single heatmap image (png) for eye-tracking data over a given range.
- Select the folder containing the image frames.
- Enter the start and end frames to read, in ms:
- For instantaneous heatmaps, this is the range of frames to generate (png) images for; or the timespan of the video.
- For global heatmaps, the start time defines the specific image to draw the heatmap over. The end frame defines the period of time over which eye-tracking points are generated.