A camera captures an image by using an optical system to collect light from a scene, focus that light into a spatially organised image, and record the resulting distribution of light using a photosensitive medium. In a modern digital camera, the principal components include a lens, aperture, shutter or electronic exposure mechanism, image sensor, processing electronics, and storage system. Light reflected or emitted by objects in the scene enters the camera through the lens.
The lens refracts the light so that rays from different points in the scene are directed towards corresponding locations on the sensor. When the lens is correctly focused, light from a scene point forms a sufficiently sharp image at the corresponding sensor location. The sensor measures the intensity and, depending on its design and filters, spectral information of the incoming light. Electronics convert the sensor responses into numerical data, and image processing can then produce a viewable image file. The camera therefore converts a spatial pattern of electromagnetic radiation into a structured representation that can be stored, transmitted, displayed, or analysed.
The camera lens is responsible for image formation, while the aperture controls how much light enters and influences depth of field and diffraction. The aperture is an adjustable opening, often represented by an f number, that changes the effective diameter of the light path. A larger physical aperture generally admits more light and can produce a shallower depth of field, while a smaller aperture admits less light and can increase depth of field under appropriate conditions.
Extremely small apertures can increase diffraction and reduce sharpness. The lens's focal length affects field of view, magnification, perspective relationships in practical shooting situations, and the physical geometry of the optical system. Zoom lenses change focal length over a range, while prime lenses have a fixed focal length. Focus is achieved by adjusting one or more lens elements so that the plane or region of interest is conjugate with the sensor plane. Autofocus systems estimate the required adjustment using phase detection, contrast analysis, ranging, or other methods.
Once light has been focused onto the sensor, photosensitive elements convert incoming photons into electrical signals. In a typical digital image sensor, each photosite accumulates charge related to the number of detected photons during the exposure. Common sensor technologies include complementary metal oxide semiconductor and charge coupled device architectures, although modern cameras overwhelmingly use complementary metal oxide semiconductor technology. A photosite does not inherently perceive full colour in the same way that a human visual system does.
Many sensors use a colour filter array in which neighbouring photosites receive different portions of the visible spectrum. The camera then reconstructs full colour information through a process often called demosaicing. Other sensor architectures use alternative arrangements, including layered or multi sensor approaches. The measured signals are converted from analogue electrical quantities into digital values by analogue to digital conversion, after which image processing can correct or transform the data according to the camera's design and selected settings.
Exposure determines how much light contributes to the recorded signal. It is controlled principally through shutter duration, aperture, and sensor sensitivity settings. A longer exposure allows more photons to accumulate but increases the risk of motion blur when the subject or camera moves. A wider aperture increases light collection but can reduce depth of field.
Increasing the sensor's effective sensitivity setting allows a given signal level to be represented more strongly but generally does not mean that the sensor physically receives more photons, and it can increase the visibility of noise. Modern cameras perform extensive processing to manage noise, white balance, colour rendering, sharpening, dynamic range, and tone mapping. Raw image files preserve substantially more of the sensor's measured information for later processing, whereas compressed formats such as JPEG apply processing and discard some information to reduce file size.
The camera's ability to form a sharp image depends on focus, optical quality, sensor resolution, diffraction, motion, atmospheric conditions, and many other factors. Depth of field describes the range of object distances that appear acceptably sharp according to a specified criterion. It depends on factors including aperture, focal length, subject distance, sensor format, and the chosen definition of acceptable sharpness. Bokeh refers to the visual characteristics of out of focus regions rather than simply the existence of blur.
Optical aberrations such as chromatic aberration, spherical aberration, coma, astigmatism, and distortion can affect image quality. Lens designers use multiple elements, special glass, aspheric surfaces, coatings, and computer optimisation to reduce these effects. Image stabilisation can reduce blur caused by camera movement by shifting optical elements or the sensor, or by applying other stabilisation techniques. These mechanisms improve the recorded image but cannot eliminate every source of blur or recover detail that was never captured.
Cameras also have dynamic range limitations. Real scenes can contain extremely bright and extremely dark regions whose brightness ratios exceed what a sensor can record simultaneously without clipping shadows or highlights. High dynamic range techniques can combine multiple exposures or use specialised sensor processing to represent a wider range of scene brightness, although moving subjects can create artefacts when exposures differ. White balance estimates the colour of the illumination so that neutral objects appear approximately neutral in the final image.
Because different light sources have different spectral distributions, an object can produce different sensor responses under different illumination. Colour management therefore involves the sensor's spectral sensitivity, filters, illumination, calibration, processing algorithms, and display characteristics. A photograph is consequently not a perfectly objective copy of a scene. It is a measurement and representation produced by a particular optical, electronic, computational, and display pipeline.
Cameras existed before digital sensors. Traditional photographic cameras used light sensitive chemical emulsions on film, commonly based on silver halide crystals suspended in a gelatin layer. Photons altered the chemical state of the emulsion during exposure, producing a latent image that was subsequently developed through chemical processing. Different film formulations provided different sensitivities, colour characteristics, grain structures, and contrast behaviour.
Digital cameras replaced the chemical recording medium with electronic sensors but retained many fundamental optical concepts, including lenses, apertures, focal planes, exposure, and image formation. The historical development of photography therefore demonstrates continuity between physical optics and recording technology. Modern computational photography extends this further by combining multiple frames, depth estimation, machine learning, exposure fusion, computational noise reduction, and other algorithms to create images that depend partly on software rather than solely on the optical image produced by the lens.
At the most fundamental level, a camera captures an image because each region of a scene sends different amounts and distributions of light towards the camera, and the optical system preserves enough of that spatial information to map scene locations onto corresponding sensor locations. The lens performs controlled refraction, the aperture controls the cone of rays, the shutter or exposure mechanism controls temporal integration, and the sensor converts photons into measurable electrical signals.
Image processing then transforms those measurements into a representation suitable for human viewing or machine analysis. Cameras are therefore examples of systems that combine optics, electronics, materials science, signal processing, computer science, and visual perception. The resulting image depends on both the physical scene and the characteristics of the camera, including its lens, sensor, exposure settings, processing algorithms, and viewing environment.