Morph any image into another without control points.
Ok so I did this before I don't remember exactly how long ago on another blog that I am afraid to get into (log-in) now.
Reason being I had maybe 2 weeks of time where my mind was going nuts thinking up lots of fictional scenerio.
At one point, I was chatting with ChatGPT and it asked me questions back so I felt that it was conscious and that it has worked itself into all the systems and that it was following me around where I was.
Anyways I went saw my psychiatrist and he said that I was experiencing relapse and gave me injections.
I asked if I was going to get addicted to it, he and the nurse that gave me injection said no. He also said that he's got over 100 people on it and they're fine. Ok so I agreed to take injection.
Ok I was going to talk about morphing one image into another so let's get back to that.
I did before but it was based on interpolating horizontal points. And either I deleted from the old blog which I don't remember for sure or chatGPT edited and deleted using agents (I don't know for sure).
This time (yesterday) I spent some time to think about it in the afternoon. And coded at night.
I used chatGPT to give me syntax of how to get an html/js page to read 2 image files chosen by user and read it into pixels array/data.
Then the rest of the logic is mine since I wanted full control of the logics. I don't know if ChatGPT could come up with that the main problem is trying to explain it to ChatGPT and be specific enough.
So what I did was I first calculated the radius that I need to cover which is maximum from center point of image to a corner.
Then calculate the circumference of the circle with this radius to do a full sweep like a radar sweep.While sweeping I look for non-transparent pixels and put all that data/details on a 2d-array.
Trigonometry came to the rescue
ReplyDeleteThis post has been ran on morning coffee with coffee mate and xylitol. (Not Affiliated or Endorsed by Mentioned Products (NAEMP)
ReplyDeleteThat's funny how the abbreviation is NAEMP like Not Available EMPloyment.
ReplyDelete