Go Back   DVXuser.com -- The online community for filmmaking > DSLR in Motion > Nikon D90

Nikon D90 12MP Still. 720p Motion. Talk.

Reply
 
Bookmark and Share Thread Tools Search this Thread Display Modes
Old 10-17-2008, 03:32 PM   #41
Halsu
Junior Member
 
Join Date: Oct 2008
Posts: 18
Default

Interesting -

...i'll be getting a D90 soon (mainly for stills though), so this inspired me to make my own version, using a displacement map. It has only one layer plus one tga image to deal with, instead of those sliced layers. My method looks more or less as good (as far as i can tell), but probably renders quite a bit faster (didn't test the original version).

Here's the AEP (v 7.0), in case you're interested ;-)

http://eki.pp.fi/digivideo/D90/D90FIX.zip

The same .tga file should work pretty much universally, with any app that has displacement map functionality. In AE, setting of 0.3 in vertical displacement gave decent results - this will vary between applications, of course. I tried with Vegas - it works, so i added the .veg file to the zip.



Last edited by Halsu; 10-17-2008 at 03:42 PM.
Halsu is offline   Reply With Quote
Old 10-17-2008, 08:44 PM   #42
Rubbersquare
Senior Member
 
Rubbersquare's Avatar
 
Join Date: Dec 2007
Location: Vegas
Posts: 264
Send a message via AIM to Rubbersquare
Default

is it just me, or is this a way easier solution?
combine this displacement map with the noise thing from neatvideo?
seems like you guys (lee & matt, too) would create the nikon d91x (whatever, when they "fix" their issues."
roll in an anti-jello filter and she-bang - awesomeness for <$2000 !!!
Rubbersquare is offline   Reply With Quote
Old 10-18-2008, 01:46 AM   #43
buildyo
Member
 
Join Date: Sep 2008
Posts: 66
Default

Cool, keep the ideas coming. Of course this is a much easier method but as I'm in the After Effects Club since yesterday I just tried it and I find while it looks v-e-e-e-ry good it doesn't look quite as good as Dr. Wilsons cure. As you can see there are still some tiny stairsteps. But maybe thats not important on real world images (especially when you downscale to 360p). Halsu, is it possible to fine tune the displacement map to get the same smooth edges as in the right most image?



How did you make the map? I mean the tga file. I noticed that you used an uniform 8 pixel distance and that the black line isn't always black. What happens when the displacement map pushes pixels on top of each other? Become they interpolated?

Last edited by buildyo; 10-18-2008 at 03:03 AM.
buildyo is offline   Reply With Quote
Old 10-18-2008, 01:55 AM   #44
Lee Wilson
Senior Member
 
Join Date: Aug 2008
Posts: 1,112
Default

Quote:
Originally Posted by Halsu View Post
Interesting -

...i'll be getting a D90 soon (mainly for stills though), so this inspired me to make my own version, using a displacement map. It has only one layer plus one tga image to deal with, instead of those sliced layers. My method looks more or less as good (as far as i can tell), but probably renders quite a bit faster (didn't test the original version).

Here's the AEP (v 7.0), in case you're interested ;-)

http://eki.pp.fi/digivideo/D90/D90FIX.zip

The same .tga file should work pretty much universally, with any app that has displacement map functionality. In AE, setting of 0.3 in vertical displacement gave decent results - this will vary between applications, of course. I tried with Vegas - it works, so i added the .veg file to the zip.


Brilliant !

It doesn't give quite a good result as actually going in there and chopping every single step out - but it is 80-90% as good and for a whole lot less effort and more transferable to other software.

Genius !
Lee Wilson is offline   Reply With Quote
Old 10-18-2008, 05:57 AM   #45
taubkin
Senior Member
 
taubkin's Avatar
 
Join Date: Mar 2004
Location: São Paulo, Brasil
Posts: 2,426
Send a message via MSN to taubkin
Default

What bugs me about all this, is: Why couldn't nikon have done this! I mean, is this really the easiest way? Get crappy video files and suffer to bring them back to life in post? Couldn't some of this (noise reduction, line interpolation) be done in hardware by the camera? Jeez...

But nice touch with the displacement map!
taubkin is offline   Reply With Quote
Old 10-18-2008, 07:45 AM   #46
Halsu
Junior Member
 
Join Date: Oct 2008
Posts: 18
Default

Quote:
Originally Posted by buildyo View Post
How did you make the map? I mean the tga file. I noticed that you used an uniform 8 pixel distance and that the black line isn't always black.
I made a 9 pixel tall gradient strip in photoshop using the standard gradient tool, then copied that in after effects, eyeballing it so that it matched the jaggies. When i tried this with the AE displacement plugin, it resulted in pretty weird bulges on each strip.

I applied a gamma correction to the displacement map, again eyeballing the correction that gave straight lines - the resulting gamma was 2.2, i recall, which probably has much to do with video's default 2.22 gamma.

The places where the black lines show as gray are places where the strips weren't exactly 9 pixels apart - i didn't make a separate 8 pixel wide strip, positioning the 9 pixel strip half pixel off looked OK with my eyeball method... true 8 pixel strips might have been better, but i was a bit tired at the time - it was 2 am local time ;-)

The results most probably could be further improved by adjusting the displacement map, i might have a go at it some time later.

Quote:
What happens when the displacement map pushes pixels on top of each other? Become they interpolated?
My aim was basically to scale each 9 pixel strip vertically (black areas in the disp map push pixels up, white areas push them down). I think the pixels that get pushed together more or less disappear, they get scaled so small while being pushed from two sides... but i am not sure of this really, it's all just guessing ;-).

Last edited by Halsu; 10-18-2008 at 08:04 AM.
Halsu is offline   Reply With Quote
Old 10-18-2008, 07:50 AM   #47
Halsu
Junior Member
 
Join Date: Oct 2008
Posts: 18
Default

Quote:
Originally Posted by taubkin View Post
What bugs me about all this, is: Why couldn't nikon have done this! I mean, is this really the easiest way? Get crappy video files and suffer to bring them back to life in post? Couldn't some of this (noise reduction, line interpolation) be done in hardware by the camera? Jeez...

But nice touch with the displacement map!
I'm pretty sure it all boils down to processing power, which boils down to price... If my dual core laptop's processors can't do it in real time, no wonder if a camera's built in one cant.
Halsu is offline   Reply With Quote
Old 10-18-2008, 08:25 AM   #48
Halsu
Junior Member
 
Join Date: Oct 2008
Posts: 18
Default

While playing around with this pixel displacement stuff, i added a warp sharp composition to the project - it pushes the pixels towards image feature edges, thus sharpening them without affecting edge contrast or adding halos. Depending on the content, it works pretty well...

http://eki.pp.fi/digivideo/D90/D90FIX-v004.zip

Halsu is offline   Reply With Quote
Old 10-18-2008, 09:01 AM   #49
buildyo
Member
 
Join Date: Sep 2008
Posts: 66
Default

Halsu, you did a great job eyeballing this!
I wrote an Illustrator script to fill the individual 7px, 8px and 9px slices with gray values according to your procedure pasted it into photoshop and saved it as a tif file. I think it's now closer to the LEEFIX but I'm biased :-) It would help if we could shift the map in finer steps than 0.1.



Right-click the link below to download my displacement map:
http://www.dvxuser6.com/uploaded/39976/1224345291.tif

Last edited by buildyo; 10-18-2008 at 11:46 AM.
buildyo is offline   Reply With Quote
Old 10-18-2008, 12:06 PM   #50
Halsu
Junior Member
 
Join Date: Oct 2008
Posts: 18
Default

Excellent!!
Halsu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:40 AM.


All Material Copyright 2009. DVXuser and Landmine Media