"Stabilize" a series of images 40$
Posted: 2015-06-23T00:34:08-07:00
Hi,
following challenge:
in order to "stabilize" a series of n(48) images taken in a circle around a object, in a directory there is a textfile corrections.txt with n(48) lines containing XOffset;YOffset;DegreeToRotate for each image. The content of corrections.txt is manually generated correction data that aligns the center perfectly. The corrections should be applied and afterwards cropped centerd and resized to 1920x1080 like this:
for each image i need to:
1) rotate the image in the center (SRT i guess)
2) offset the result with +(-)XOffset,+(-)YOffset (repage?)
3) crop to the maximum rectangle without hackground keeping Aspect ratio (like freds turn script)
4) scale the result(s) to 1920x1080 cropped with gravity center(north,..) and save as jpg 001,002, ...
as the individual results of 3 will have different sizes step 4 will need a precalculated size of all images in the series depending on the minimum (e.g. -2.45 degree) and maximum (e.g. +8.86 degree) rotations defined. Then this (centered) minimal rectangle is used as a the source for the crop and resizing of ALL images to 1920x1080 afterwards so the scale doesn't change
feel free to ask if i was unclear, a quick response would be awesome
greets!
following challenge:
in order to "stabilize" a series of n(48) images taken in a circle around a object, in a directory there is a textfile corrections.txt with n(48) lines containing XOffset;YOffset;DegreeToRotate for each image. The content of corrections.txt is manually generated correction data that aligns the center perfectly. The corrections should be applied and afterwards cropped centerd and resized to 1920x1080 like this:
for each image i need to:
1) rotate the image in the center (SRT i guess)
2) offset the result with +(-)XOffset,+(-)YOffset (repage?)
3) crop to the maximum rectangle without hackground keeping Aspect ratio (like freds turn script)
4) scale the result(s) to 1920x1080 cropped with gravity center(north,..) and save as jpg 001,002, ...
as the individual results of 3 will have different sizes step 4 will need a precalculated size of all images in the series depending on the minimum (e.g. -2.45 degree) and maximum (e.g. +8.86 degree) rotations defined. Then this (centered) minimal rectangle is used as a the source for the crop and resizing of ALL images to 1920x1080 afterwards so the scale doesn't change
feel free to ask if i was unclear, a quick response would be awesome
greets!