Greetings. I have a program that incorporates ImageMagick to do a perspective transformation on a single image. I give it the requisite coordinates and it works extraordinarily well.
Now, I need to move to the next level. I have a series of images, let's call it a movie, on which I would like to do a perspective transformation of each frame. The coordinates will be the same for each frame as the camera and the reference points are fixed. As it takes some time to compute the transformation matrix, I was wondering if there was a built-in way to calculate the matrix on the first frame, then retain the matrix and use it on each successive frame to improve efficiency. I see from the documentation (http://www.imagemagick.org/script/command-line-options.php#distort) that I can use the -verbose setting to get the internal coefficients and an -fx equivalent. However, I am not sure this -fx equivalent would actually save on computation time. Could anyone enlighten me as to the most efficient way of doing this identical perspective transformation on a series of images? Is calculating the transformation matrix even a significant amount of time? Thank you very much, Mike _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
