ImagingPath.imageSize
- raytracing.ImagingPath.imageSize(self, useObject=False)
The actual formal definition of image size is the object field of view multiplied by magnification. This value is independent from the height of the object. However, if the FOV is infinite, this may not be what the user is expecting. In this case a warning is printed and we offer the possibility to use objectHeight from the class.
- Parameters:
useObject (bool default False) – Whether or not we use the finite objectHeight provided in the class instead of the field of view to calculate the image size.
- Returns:
imageSize – the size of the image
- Return type:
float
Examples
>>> from raytracing import * >>> path = ImagingPath() # define an imaging path >>> # use append() to add elements to the imaging path >>> path.append(Space(d=10)) >>> path.append(Lens(f=10,diameter=10,label="f=10")) >>> path.append(Space(d=30)) >>> path.append(Lens(f=20,diameter=15,label="f=20")) >>> path.append(Space(d=20)) >>> print('size of the image :', path.imageSize()) size of the image : 9.999998574656525