Skip to content

Activation video colors are not green-purple and are instead red-blue #1

@SkepticRaven

Description

@SkepticRaven

The activation video produced creates a red-blue color scaling. In the paper, we show purple-green scaling.

How I transformed the data (using ffmpeg):

ffmpeg -i VIDEO_out_Activations.avi -vf "geq=r='0.51r(X,Y)+0.49g(X,Y)':g='0.43g(X,Y)+0.57b(X,Y)':b='0.59r(X,Y)+0.19g(X,Y)+0.22*b(X,Y)'" -q 0 -t 10 TRANSFORMED_VIDEO.avi

While I haven't tested it, one could also modify the code to use purple-green colormaps. This won't be an exact match, but these are the following lines to change:
cm.bwr to cm.BrBG on this line
[200,0,0] to [64,0,75] and [0,0,200] to [0,72,29] on lines 83 and 85 respectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions