I wanted to try to reconstruct a 3D model of Hilda from the images shared by Giant Ant.
Photogrammetry seemed the easiest way.
First step was to get all the frames from the GIF. The easiest way is to use FFMPEG, the swiss army knife for video.
ffmpeg -i hilda.gif imageout%04d.png
This created 120 PNG files, one for each frame.
Now we need to crop the single poses. We can do some rough measurments with every editing software and come up with the approximate area of interest.
Now we can crop all the frames with ImageMagick and categorize them.
for f in *.png
do
convert $f -crop 250x233+0+0 a/i-$f
convert $f -crop 250x233+0+220 a/j-$f
convert $f -crop 250x233+0+440 a/k-$f
convert $f -crop 160x233+260+0 b/i-$f
convert $f -crop 160x233+260+220 b/k-$f
convert $f -crop 160x233+260+440 b/k-$f
convert $f -crop 250x233+440+0 c/i-$f
convert $f -crop 250x233+440+220 c/j-$f
convert $f -crop 250x233+440+440 c/k-$f
done
Now we open up Meshroom and load the first batch.
And after some minutes of spinning fan… the sad news.
Yeah, the image is too low quality for a successful render.
And on that bombshell, goodnight.