pyoptools.raytrace.surface.detector module¶
Module that defines optical detector surfaces
-
class
pyoptools.raytrace.surface.detector.
ArrayDetector
¶ Bases:
pyoptools.raytrace.surface.plane.Plane
CCD like detector surface.
Description the ArrayDetector class acts similar as a real CCD device. It holds a list of the coordinates of the rays that hits it.
Example of a CCD:
>>> cs=ArrayDetector(size=(10,10))
-
get_color_histogram
()¶ Method that returns the number of ray impacts per unit of area of the detector. It simulates a color image.
Parameter:
- size
- Size of the detector in pixels. The physical size of the detector is given at the surface creation.
-
get_histogram
()¶ Method that returns the number of ray impacts per unit of area of the detector.
Parameter:
- size
- Size of the detector in pixels. The physical size of the detector is given at the surface creation.
-
size
¶
-