Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create a "color map" image from a video
ResourceFunction["VideoColorMap"][video] creates an “color map” of the given video. |
"Downsample" | 100 | factor by which to downsample raw pixels before clustering |
"FrameCount" | All | number of frames to use when calling VideoFrameList |
"Parallel" | True | calculate image maps for each frame in parallel |
Create a color map of a video, using 50 frames:
In[1]:= |
Out[1]= |
Create a color map of a video using all frames (which could take a long time):
In[2]:= |
A color map of a single image is a 1-pixel wide vertical image:
In[3]:= |
Out[3]= |
Visualize a color maps for single images:
In[4]:= |
Out[4]= |
Creating a color map of a video is time intensive, this can be sped up by increasing the "Downsample" factor (thus decreasing the height) or limiting the "FrameCount" (thus decreasing the width):
In[5]:= |
Out[5]= |
The process can also be sped up with the "Parallel" option:
In[6]:= |
Out[6]= |
Wolfram Language 12.1 (March 2020) or above
This work is licensed under a Creative Commons Attribution 4.0 International License