Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color patch image generator #9

Open
hdznrrd opened this issue Feb 19, 2014 · 2 comments
Open

Color patch image generator #9

hdznrrd opened this issue Feb 19, 2014 · 2 comments
Assignees

Comments

@hdznrrd
Copy link
Member

hdznrrd commented Feb 19, 2014

Create color patch images from histogram data to easily and visually evaluate intermediate data results

@hdznrrd hdznrrd added this to the imageprocessing milestone Feb 19, 2014
@hdznrrd hdznrrd self-assigned this Feb 19, 2014
@hdznrrd hdznrrd added the Task label Feb 19, 2014
@hdznrrd
Copy link
Member Author

hdznrrd commented Feb 19, 2014

Histogram data to color patch image.
Currently only works with fixed size images. Uses convert itself to do on the fly color quantization (-colors)

histbin_to_magickdraw.pl converts imagemagick histogram output to width-relative color patch draw commands which can be fed into convert again.

sh -c "convert -size 1280x50 xc:black $(convert  frames/01616.png -colors 16 -define histogram:unique-colors=true -format %c histogram:info:-|sort -rn|../histbin_to_magickdraw.pl) patch.png" && eog patch.png

@hdznrrd
Copy link
Member Author

hdznrrd commented Feb 19, 2014

Currently it produces results like this (original in background, color patch image in overlay, compositing done manually):
sneakpeek

video: http://www.youtube.com/watch?v=qig4KOK2R2g
frame: 1616
color bins: 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant