learnopencv
learnopencv copied to clipboard
Morph intermediate images
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
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"?
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.
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)
I certainly will. Thanks a lot.
Hans Skov-Petersen Professor i Geoinformatik
Københavns Universitet Institut for Geovidenskab og Naturforvaltning Landskabsarkitektur og Planlægning Rolighedsvej 23 1958 Frederiksberg
DIR 35 33 18 16 MOB 23 82 80 45 @.@.>
[Title: SD_Logo]
@.https://www.facebook.com/universitet @. https://www.instagram.com/university_of_copenhagen @.*** https://www.linkedin.com/company/university-of-copenhagen @.*** https://twitter.com/koebenhavns_uni @.*** https://www.futurity.org/university/university-of-copenhagen/ @.*** https://theconversation.com/institutions/university-of-copenhagen-1186 @.*** http://www.ku.dk/
Sådan beskytter vi persondatahttps://informationssikkerhed.ku.dk/persondatabeskyttelse/privatlivspolitik/
From: Markus Broghammer @.> Sent: 25. januar 2023 10:40 To: spmallick/learnopencv @.> Cc: Hans Skov-Petersen @.>; Author @.> Subject: Re: [spmallick/learnopencv] Morph intermediate images (Issue #794)
Have a look at the embedded Youtube video, at this time-position: "https://youtu.be/pqpS6BN0_7k?t=45https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fyoutu.be%2FpqpS6BN0_7k%3Ft%3D45&data=05%7C01%7Chsp%40ign.ku.dk%7C4aa2762dd8b048706bc808dafeb83334%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C638102364338617244%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wxsy0M0keRjNhBgvGaZj9%2FIJp%2FSfbMYxBCYiPiatG3k%3D&reserved=0" => "Change the morphing parameter alpha for animation" => referring to equation (2)
— Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspmallick%2Flearnopencv%2Fissues%2F794%23issuecomment-1403335210&data=05%7C01%7Chsp%40ign.ku.dk%7C4aa2762dd8b048706bc808dafeb83334%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C638102364338773465%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=98za67SwBBHP%2BQVkos2JaL%2BH8rflPCGKwGQKS0Q8pAA%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAE2XBJZSBSMM3SKOV56YTLWUDYI3ANCNFSM6AAAAAAUE4WRSI&data=05%7C01%7Chsp%40ign.ku.dk%7C4aa2762dd8b048706bc808dafeb83334%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C638102364338773465%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JnKLlG1u1KNGcHI3yJMrGns%2Bh598GLbO7otoXXNKtjI%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
Try adding a slider/trackbar (https://docs.opencv.org/3.4/da/d6a/tutorial_trackbar.html) to the test-code.
With a slider/trackbar:
great. Thanks. . I am looking forward resting.
BTW Are geoheaders maintained in jpg's and tif files?
/H
Sent from Outlook for Androidhttps://aka.ms/AAb9ysg
From: Markus Broghammer @.> Sent: Wednesday, January 25, 2023 11:27:45 AM To: spmallick/learnopencv @.> Cc: Hans Skov-Petersen @.>; Author @.> Subject: Re: [spmallick/learnopencv] Morph intermediate images (Issue #794)
With a slider/trackbar: [image]https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F29976962%2F214539582-ed2cca9f-4b0f-41a5-b7a5-3cc1ed83b47b.png&data=05%7C01%7Chsp%40ign.ku.dk%7Cb26847fd48494d337d3a08dafebecd39%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C638102392684323462%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=m7OnUJcFd%2BD6aJIsHvWuooacDhPYhW4v27%2BnYCHMTr4%3D&reserved=0 [image]https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F29976962%2F214539632-afc91945-5e3b-4b66-ace6-347841b820cb.png&data=05%7C01%7Chsp%40ign.ku.dk%7Cb26847fd48494d337d3a08dafebecd39%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C638102392684323462%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oSKSu8GIHBzA6yApjrsgklqYgm4dzLr2NADOdTFOz4k%3D&reserved=0 [image]https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F29976962%2F214539688-ed12bf63-d6bf-4057-84f1-9b73ca79f606.png&data=05%7C01%7Chsp%40ign.ku.dk%7Cb26847fd48494d337d3a08dafebecd39%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C638102392684323462%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XZNCl18M68%2Bz2W6h01z%2FAUekpuXroFDX4zHZVHvRxck%3D&reserved=0
— Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspmallick%2Flearnopencv%2Fissues%2F794%23issuecomment-1403394806&data=05%7C01%7Chsp%40ign.ku.dk%7Cb26847fd48494d337d3a08dafebecd39%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C638102392684323462%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YrpcoSRj9QA4k5fb2YGN0MKIBwYGjckrRu3E%2BiHmKXg%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAE2XBO2VVHRAWWTSQU6NO3WUD52DANCNFSM6AAAAAAUE4WRSI&data=05%7C01%7Chsp%40ign.ku.dk%7Cb26847fd48494d337d3a08dafebecd39%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C638102392684323462%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EEb19Op6ug%2BlpRvsNp55%2FPK%2BSsd3R%2Fkcoing3W2mKew%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
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).
Any open questions left? Feel free to close this issue.
Dear Markus
Thanks for keeping the line warm. I am sorry that I have not had the time to follow up and test (exams this and the coming week).
I will, and keep you posted on how it goes, and if I have more questions.
Enjoy your weekend
Cheers Hans
From: Markus Broghammer @.> Reply to: spmallick/learnopencv @.> Date: Friday, 27 January 2023 at 08.58 To: spmallick/learnopencv @.> Cc: Hans Skov-Petersen @.>, Author @.***> Subject: Re: [spmallick/learnopencv] Morph intermediate images (Issue #794)
Any open questions left? Feel free to close this issue.
— Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspmallick%2Flearnopencv%2Fissues%2F794%23issuecomment-1406141226&data=05%7C01%7Chsp%40ign.ku.dk%7C9e36c2f9dd624cce6fc308db003c48e0%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C638104031138659935%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pBbDicHHinxjKEGSIF%2BzAs%2BExqcIdM22sVftfPWUyak%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAE2XBIPTA7FP5R44AN3TM3WUN52NANCNFSM6AAAAAAUE4WRSI&data=05%7C01%7Chsp%40ign.ku.dk%7C9e36c2f9dd624cce6fc308db003c48e0%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C638104031138659935%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Zn6Ds1UW7SPV9Vzu6zAsjK7XU6P6kGP%2F7ogCwSxKFnE%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
Good luck with the exams!