Use difference to decide which pixels to return from 2 clips? >>
My Forum

My Forum



SearchSearch   Users   Registration   Entrance
Today: 22.08.2025 - 21:11:40
Pages:  1  

Use difference to decide which pixels to return from 2 clips?

Advertising


AuthorMessage

Emmasis

user




Statistics:
Messages: 237
Registration: 09.19.2002

basically, i am trying to work with two clips, let's call them a and b. what i want to do is (for each pixel): if a minus b is greater than a certain amount, use b for that pixel. otherwise, use a. i've already done it like this: Code:

---------------------
I embrace my desire to,feel the rhythm,to feel connected enough to step aside and weep like a widow to feel inspired, to fathom the power, to witness the beauty, to bathe in the fountain, to swing on the spiral of our divinity and still be a human.
Message # 1 13.05.21 - 12:43:56
RE: Use difference to decide which pixels to return from 2 clips?

hyperion500

user




Statistics:
Messages: 252
Registration: 01.27.2002

beaten to the punch -G

---------------------
Nemo me impune lacessit
Message # 2 13.05.21 - 12:49:44
RE: Use difference to decide which pixels to return from 2 clips?

beowoulf

user




Statistics:
Messages: 415
Registration: 08.03.2003

oh, so what is the proper way to return the cloning effect? the reason i am trying to do this, is to merge two clips without "weakening" the areas where they do not agree, as is the case with simple averaging.

---------------------
Alex
Message # 3 13.05.21 - 12:57:11
RE: Use difference to decide which pixels to return from 2 clips?

JohnH

user




Statistics:
Messages: 219
Registration: 01.02.2003

That's what I assumed that you are aiming for. Bad news is that's a difficult effect to achieve in a "proper" way. The naked pixel values don't give any hint which of both pixels should be used for the output pixel. Hey, c'mon: in frame N, you have a pixel with value "120". In frame N+1, that pixel has the value "160". Now, which to use for the output pixel? The "120" one, because it is darker? Why? The "160" one, because it is brighter? Why? It won't work that way. If at all, you'd have to compare the signal envelope, and use that one that has the bigger peak at the given location. But while that's more balanced, most probably it'll produce artifacts, too. Really, I don't see a "proper" way to achieve this without negative side-effecs.

---------------------
02 M5 LeMans Blue
Message # 4 13.05.21 - 13:05:46
RE: Use difference to decide which pixels to return from 2 clips?
Multiple 001s or 002s : Previous topicNext topic: Nero 5.5.5.6 won\'t burn wav files from LE 6.4..
Pages:  1  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants