View Single Post
Old 17th March 2005, 12:19   #18  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,391
Manao: Good moaning, erh, morning ...

Quote:
Originally posted by redfordxx
Well, honestly, I didn't expect the solution is so complicated...
(I mean the idea is nice. Probably more CPU time demanding than I thought...)
A specialised plugin could do the job in a fraction of the time. We just don't have such a one.
Basically, BilinearResize would do the very same thing. But if it were coded so as to average every 2*2 pixels (as you need here), then the resizer would shift the frame around during downsizing+upsizing combos. For a resizer, that's of course not acceptable.

Quote:
Kernel=the matrix in "", isn't it?
Yes. The string "1 2 3 4 5 6 7 8 9" in DEdgeMask normally would be written
Code:
1 2 3
4 5 6
7 8 9
BTW, in case you want to get the average out of 8*8 blocks, the simplest way is to use Tom's DCTFilter() with

DCFilter(1,0,0,0,0,0,0,0)
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote