Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
16th March 2005, 19:34 | #1 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Averaging pixels (by downsizing image?) - solved
*********************EDIT:
If you happen to need average pixel like this, look directly at posts 17th March 2005 00:29 27th March 2005 21:47 There is also a function ShrinkBy2 in SSETools plugin which "sounds" like it could work, but I didn't check and AFAIK no docs are available. ********************** Hi, I want to make average of each block of 4x4 pixels (in YV12) on mod4 sized clip. I thought a way is via downsizing. More exactly, when I have block like this (numbers are colors) 0011 0011 4433 4433 I want to get 2222 2222 2222 2222 etc. Via downsizing it would be 22 22 and then PointResize back to original size. But I never achieved it. I tried different resizers.. these aliasing or sharpening or whatever effects cause sometimes result like this: 0000 0000 0000 0000 into 11 11 when there was some value in nearby block. Similar for 8x8. Thanx R. Last edited by redfordxx; 1st April 2005 at 13:58. |
16th March 2005, 22:01 | #3 | Link | |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
average of colors of the four relevant pixels of original clip, which were merged by downsizing. |
|
16th March 2005, 23:12 | #5 | Link | |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
YV12 The same priciple as for Y sould work for U,V --- only doublesized |
|
16th March 2005, 23:58 | #7 | Link | |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
Look (I'm testing it only in one channel, so don't be scared by the color) the second one is with higher contrast, to see the difference. Just try swithing the images fast. You will easily find blocks on the second pic, where the same block on first image is 100% clear. E.g. top left one and the one below... |
|
17th March 2005, 01:05 | #9 | Link |
Simply me
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
|
Just to fully clarify - do you want this
A B W X C D Y Z J K P Q L M R S made into E E V V E E V V I I N N I I N N Where E is Average(A,B,C,D), V= Average(W,X,Y,Z) etc or something else regards Simon
__________________
http://www.geocities.com/siwalters_uk/fnews.html |
Thread Tools | Search this Thread |
Display Modes | |
|
|