logo Sign In

Post #324780

Author
negative1
Parent topic
GOUT image stabilization - Released
Link to post in topic
https://originaltrilogy.com/post/id/324780/action/topic#324780
Date created
23-Jul-2008, 8:52 PM

at this point,

i wanted to overlay the videos to see what was going on...maybe that would help....

yes it sure did!!!          there's a lot of options for overlaying, so i tried them all, and actually a few were

very cool looking..........i will actually post some video this time also, because that's the only way to really see the effect..

 

---------------------------------------------------

basic overlaying video script

--------------------------------------------------

# overlay 2 clips
# resize the GOUT to the same size, and the reset position to match
# alter the opacity for different effects..

clip1 = Mpeg2Source("M:\data\movie\dvd\star wars ep 4-gout\VTS_03_1.d2v")

clip2 = Mpeg2Source("M:\data\movie\dvd\star wars ep 4-gout\gout.d2v")

Overlay(clip1, clip2.BilinearResize(720,360), y=60, mode="blend", opacity=0.9)

ShowFrameNumber(offset=9, text_color=$ff0000)

----------------------------------------------

i needed to make sure the two videos were lined up correctly.................(after correcting for aspect ratio, positioning)..

========================

http://img92.imageshack.us/img92/3007/goutoverlay7240ws0.jpg

check.... this will be our reference frame.................

-----------------------------------------

ok,now for some fun............subtracting one clip from the other showed pixels that have changed (the darker parts stayed the same)..

mode= Subtract

Add This will add the overlay video to the base video, making the video brighter. To make this as comparable to RGB, overbright luma areas are influencing chroma and making them more white.
Subtract The opposite of Add. This will make the areas darker.

------------------------------------------

http://img530.imageshack.us/img530/8866/goutsubtract7240yv3.jpg

 

========================

mode= exclusion , very trippy....................it looks like each object gets a nice mask around it, with weird inverted colors...

Exclusion This will invert the image based on the luminosity of the overlay image. Blending with white inverts the base color values; blending with black produces no change.

------------------------------------------

http://img71.imageshack.us/img71/9508/goutexclusion7240gg1.jpg

 

=======================

mode = difference, this was the most useful to me...........to see that there were changes between the pixel values.......

Difference This will display the difference between the clip and the overlay. Note that like Subtract a difference of zero is displayed as grey, but with luma=128 instead of 126. If you want the pure difference, use mode="Subtract" or add ColorYUV(off_y=-128).
----------------------------------------

http://img61.imageshack.us/img61/3972/goutdifference7240ri5.jpg

 

i will post the videos shortly.............

 

ok, now that we know quantitatively what the image changes are, and the pixel changes.............but how can we visualize

it in another way?

 

later

-1