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

Morph intermediate images #794

Open
hsp opened this issue Jan 24, 2023 · 11 comments
Open

Morph intermediate images #794

hsp opened this issue Jan 24, 2023 · 11 comments

Comments

@hsp
Copy link

hsp commented Jan 24, 2023

Can you create a series of images of different stages of morphing between th etwo originak images (not only a single image as in the examples)?
I would like to create a a GIF from such a serie.
Cheers
Hans

@brmarkus
Copy link

Are you referring to the sample "https://github.com/spmallick/learnopencv/tree/master/FaceMorph" and the blog "https://learnopencv.com/face-morph-using-opencv-cpp-python/", and experimented with the referenced equation "(2)" under "https://learnopencv.com/face-morph-using-opencv-cpp-python/#id1540306373" within the section "Alpha blend warped images"?

@hsp
Copy link
Author

hsp commented Jan 24, 2023

I looked at them all, but it seem (at least to me) that they all result in a single 'final morphed image'.
I am looking for ways to reveal a series of additional, images, in between.

@brmarkus
Copy link

Have a look at the embedded Youtube video, at this time-position: "https://youtu.be/pqpS6BN0_7k?t=45"
=> "Change the morphing parameter alpha for animation"
=> referring to equation (2)

@hsp
Copy link
Author

hsp commented Jan 25, 2023 via email

@brmarkus
Copy link

Try adding a slider/trackbar (https://docs.opencv.org/3.4/da/d6a/tutorial_trackbar.html) to the test-code.

@brmarkus
Copy link

With a slider/trackbar:
image
image
image

@hsp
Copy link
Author

hsp commented Jan 25, 2023 via email

@brmarkus
Copy link

You mean e.g. EXIF data (like GPS, longitude or latitude) in JPGs of TIFF files?

After cv2.imread() you get a matrix with the "raw data" only, decompressed raw pixel data, without any metadata.

But look into e.g. "https://stackoverflow.com/questions/56699941/how-can-i-insert-exif-other-metadata-into-a-jpeg-stored-in-a-memory-buffer" for how to extract and add-back EXIF using additional packages (in Python).

@brmarkus
Copy link

Any open questions left?
Feel free to close this issue.

@hsp
Copy link
Author

hsp commented Jan 27, 2023 via email

@brmarkus
Copy link

Good luck with the exams!

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

No branches or pull requests

2 participants