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

Extract difference metrics from image pairs #5

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

Extract difference metrics from image pairs #5

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

Comments

@hdznrrd
Copy link
Member

hdznrrd commented Feb 19, 2014

Image differences for consecutive pairs are extract to later be used as a means to detect change in frame content and or denote scene change

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

hdznrrd commented Feb 19, 2014

Extract data

compare -metric MAE IMAGE1 IMAGE2 null: 2>&1

Extract data and keep information about input files

compare -metric MAE IMAGE1 IMAGE2 -format "%[d]/%[f] %[o]" null: 2>&1

@hdznrrd
Copy link
Member Author

hdznrrd commented Feb 19, 2014

Feed pairs parameter file to compare and creatively pack/unpack compare output so that difference metric as well input parameters are displayed on the same line

xargs -0 -I '{}' -n 1 sh -c 'compare -metric MAE $1 -format "%[d]/%[f] %[o]" null: 2>&1 | tr "\n" "\t"' -- {} < <(tr \\n \\0 <pairs) | sed "s/\t\t/\n/g"

@hdznrrd hdznrrd added this to the imageprocessing milestone Feb 19, 2014
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