Register  |  FAQ  |  Search  |  Memberlist  |  Usergroups  |  Log in 
Reply to topic
  
richardrosenman
Site Admin

Joined: 23 Oct 2005
Posts: 145
Location: Canada
Reply with quote
You are attempting to load a DOF PRO settings file (.INI) and pointing it to a jpeg. The settings file stores your settings for DOF PRO (ie. you aperture, brightness, etc.)

You should be attempting to load a depth map under the "Depth" parameters, where it has the dropbox beside "Mode". Select "Depth Map and then click on "load" below that to specify the jpeg or bmp.

-Richard

block306 wrote:
richardrosenman wrote:
Hi Thomas;

The reason you are not getting DOF PRO to work is because you are loading the RGB image as your depth map. This is not what a depth map should be.

The depth map is a greyscale image that defines objects in distances from the camera. Objects that are closer will be whiter and objects that are further will be darker. This will then allow DOF PRO to detect how much defocus to apply and where to do so.

Martin will most likely suggest you try the following. Using your RGB image, do a selection around the woman and paint her flat white (255,255,255). Then invert your selection and paint the rest of the image black (0,0,0). Save that image and load it into DOF PRO as your depth map, while still using your RGB image as the image to process. Now apply blur. You will see that no blur is applied to your subject and the background is defocused. Now set the F-Depth slider to 0 instead of 255 and your subject defocuses and the background become focused. This is a crude, but simple example of what a depth map should be.

Martin, feel free to add...

-Richard


I have attempted to create a depth map file as suggested here. I did everything and saved the file as a .jpg. The sw could not load it as it is looking for a .ini file. Then I came back here & see that you suggested a .bmp file & I saved as that; again the sw is not able to load this. What's the story?? Thanks.

_________________
Richard Rosenman
DOF PRO Developer
Digital Animation Director
http://www.dofpro.com
http://www.mblpro.com
http://www.cgsphere.com
http://www.hatchstudios.net
http://www.lumierefilter.com
http://www.richardrosenman.com
View user's profile Send private message Visit poster's website
  
Lungfixer


Joined: 23 Oct 2008
Posts: 3
Reply with quote
richardrosenman wrote:
Hi Thomas;

[SNIP]Using your RGB image, do a selection around the woman and paint her flat white (255,255,255). Then invert your selection and paint the rest of the image black (0,0,0). Save that image and load it into DOF PRO as your depth map, while still using your RGB image as the image to process. Now apply blur. You will see that no blur is applied to your subject and the background is defocused. Now set the F-Depth slider to 0 instead of 255 and your subject defocuses and the background become focused. [SNIP]



Please tell me there is a program that AUTOMATICALLY creates a depth map. The whole reason I downloaded DOF Pro was to avoid the tedious task of making selections around detailed objects, inverting the selection, then applying a gaussian blur to the background. Its especially difficult around and in-between subject's hair.
View user's profile Send private message
  
richardrosenman
Site Admin

Joined: 23 Oct 2005
Posts: 145
Location: Canada
Reply with quote
It's theoretically impossible for a program to automatically generate a depth map from a 2D image / photograph because there is no 3D information existing there.

If you are creating images from a 3D program, it's a whole other story. Depth Maps are simple as pie.

If you are creating one for a photo, you have to either do it by hand or use DOF PRO's built-in gradients. These are sufficient for generalized DOF but if you're talking about separating hair to be in the foreground vs. the rest in the background and out of focus, you will most likely have to create the depth map by hand.

-Richard

_________________
Richard Rosenman
DOF PRO Developer
Digital Animation Director
http://www.dofpro.com
http://www.mblpro.com
http://www.cgsphere.com
http://www.hatchstudios.net
http://www.lumierefilter.com
http://www.richardrosenman.com
View user's profile Send private message Visit poster's website
  
Lungfixer


Joined: 23 Oct 2008
Posts: 3
Reply with quote
Damn...I was afraid you were going to say that. I was hoping your software was the answer to my worsening carpal tunnel syndrom. LOL

I use a DOF calculator while shooting in the field, so the majority of my photos already have the desired bokeh without having to apply it in PP. Unfortunately, some lighting conditions do not allow the ideal aperture for short DOF capture...and when NOT shooting human subjects (or object "straight-on"), the built-in gradients in DOF-Pro are SWEET!! I've seen the example photos, and I'm very impressed.

What you said about depth maps from 2D images makes perfect sense. I just remember reading somewhere about a process (called "geometically coherent image interpretation") which uses a complex algorithm to render a 3D representation from a 2D image. I'm not certain if it will differentiate multiple objects in a photograph, but if it could it seems to me that it would also be able to allow for much easier creation of depth maps...at least allowing someone to avoid tracing objects by hand (mouse).

I guess for now, whether I apply blur using CS3 or DOF Pro, it appears I'm going to need to invest in a graphic tablet if I want to avoid tracing subjects with a mouse (which is tantamount to drawing with a bar of soap).

Thanks for the quick reply.
View user's profile Send private message
  
richardrosenman
Site Admin

Joined: 23 Oct 2005
Posts: 145
Location: Canada
Reply with quote
Hi Lungfixer;

Tablets are indispensible, if you ask me. I personally use a Wacom Intuos 3 13x10 at work, a Wacom Cintiq 21UX at home, and a mini Wacom 4x5. I used one about 8 yeas ago and I never went back.

All tablets are great but a word of advice: Stick with Wacom. They have been producing tablets for over a decade and without question make the best there is.

-Richard

_________________
Richard Rosenman
DOF PRO Developer
Digital Animation Director
http://www.dofpro.com
http://www.mblpro.com
http://www.cgsphere.com
http://www.hatchstudios.net
http://www.lumierefilter.com
http://www.richardrosenman.com
View user's profile Send private message Visit poster's website
  
Lungfixer


Joined: 23 Oct 2008
Posts: 3
Reply with quote
I've been considering an Intuos3 for some time, but my concern that the learning curve would initially slow my workflow has kept me from investing in one. I lost my assistant a while back and if I get behind on my projects I'll NEVER catch up.

Thanks for the advice.

-Dave
View user's profile Send private message
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 4 Hours  
Page 2 of 2  

  
  
 Reply to topic