[Bf-committers] Sensor Size

Lars Krueger lars_e_krueger at gmx.de
Tue Jun 14 18:26:18 CEST 2011


> @Lars
> 
> Hi again!
> 
> > Yes, it does: The sensor size that is currently fixed at 32 units.
> Otherwise we already have all the data:
> > - image size (nx,ny) are required for the size of the output image
> > - focal length (f) is a property of the camera
> 
> This patch only adds a variable sensor size, and changes the focal/fov
> accordingly. So to me it looks like adding the variable sensor size
> (dx/dy) is the first step to implement focal length units in pixels.
> Or am I missing the point?

Input info should be all there now. Depending on how the rest of the projection code is implemented you're either done or have to change all computations that use the focal length.

Simple test: make a test scene, double the image size and leave everything else constant. The object in the image should be half as wide/high as before because all you pixels increased in size.

-- 
Dr. Lars Krueger


Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de


More information about the Bf-committers mailing list