Chris Tuijn
Transcription
Chris Tuijn
Agfa Chris Tuijn [email protected] Tuijn Köln, May 19, 1999 Agfa Lectures - Fachhochschule Köln 1 Agfa Introduction (Agfa organization, DTP …) ● Some hardware background of input devices ● – sensors – scanners – digital cameras Image processing of digital images ● Applications ● Conclusions Tuijn ● Agfa Lectures - Fachhochschule Köln 2 Agfa ● Graphic Systems Division Conventional Pre-Press Systems ● Electronic Pre-Press Systems ● Output Systems Division ● ● Technical Imaging Medical Division ● NDT (Non Destructive Testing) ● ● Consumer Imaging Foto Division ● DTP Tuijn ● Agfa Lectures - Fachhochschule Köln 3 Agfa Focus on the home/office user ● Products: ● – CCD scanners home/office (SnapScan scanners) ● publish scanners (DuoScan scanners) ● – Digital cameras ePhoto 780, 1080, 1280, 1680 ● CL30, CL50 … Tuijn ● Agfa Lectures - Fachhochschule Köln 4 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 5 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 6 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 7 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 8 Agfa ● Software Development – Development of applications for different markets: Home ● Office ● Publish Environment ● – Applications for different input devices: Scanners ● Digital cameras Tuijn ● Agfa Lectures - Fachhochschule Köln 9 Agfa ● The application development consists of several layers: – Image processing and Color management library – Engine interfacing layer (cf. Scan Server) – Application development Common layer for different platform ● UI-dependent part (Windows, MacOS) Tuijn ● Agfa Lectures - Fachhochschule Köln 10 Agfa Communication Tuijn Application Color Image Enhancement Color Image Restoration Engine Interfacing Agfa Lectures - Fachhochschule Köln 11 Agfa ● CMS/IMS Library – CMS: Color Management System ● guarantees reliable color across different devices – IMS: Image processing component spatial image processing such as sharpening, noise removal, resolution enhancement … ● automatic color correction ● negative scanning Tuijn ● Agfa Lectures - Fachhochschule Köln 12 Agfa ● Scan Server – Multi-platform library which takes care of Engine interfacing ● Image processing and color management ● multi- and parallel processing ● – Provides an abstract a-synchronous communication channel with clients over: in-memory bus ● TCP/IP ... Tuijn ● Agfa Lectures - Fachhochschule Köln 13 Agfa ● Application Development – Multi-platform kernel, based on objectoriented design – User Interface part which is developed in the native platform specific UI libraries: MSVC++ with MFC (Microsoft Foundation Classes) ● PowerPlant on the Macintosh Tuijn ● Agfa Lectures - Fachhochschule Köln 14 Some hardware background on input devices ● Agfa Sensors – CCD’s – CMOS technology Scanners ● Digital cameras Tuijn ● Agfa Lectures - Fachhochschule Köln 15 Agfa The heart of the input devices ● Convert light-energy (photons) into electrical energy (electrons) ● Two main technologies are used today: ● Tuijn – CCD’s (charge coupled devices) – CMOS technology Agfa Lectures - Fachhochschule Köln 16 Agfa Collectors are ordered line-wise ● The collectors build up a charge after exposure and the charges are shifted line-wise using shiftregisters. ● In case of matrix CCD’s, the horizontally shifted charges are, again, shifted out vertically. ● Then, they are fed to an ADC for discretization. Tuijn ● Agfa Lectures - Fachhochschule Köln 17 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 18 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 19 Agfa Charge collection combined with electronics on the same chip. ● Two versions: ● – passive CMOS – active CMOS: ADC, amps, processing hardware on-board bigger dynamic range ● less noise ● fill factor: about 25 % ● faster processing (than CCD’s) Tuijn ● Agfa Lectures - Fachhochschule Köln 20 Agfa ● Consist of several components : – – – – light source (lamp) light-sensitive sensors optical system that conveys light to sensors electronics : ADC (analog to digital conversion) ● image processing (hardware of firm-ware) ● interfacing layer (SCSI, Fireware, USB, …) Tuijn ● Agfa Lectures - Fachhochschule Köln 21 Agfa ● There are 2 classes of scanners : – PMT-based technology (photo multipliers) ● drum scanners – CCD-based technology (charged coupled devices) flat-bed scanners ● using filter-wheel or coated CCD’s (trilinear CCD’s) Tuijn ● Agfa Lectures - Fachhochschule Köln 22 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 23 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 24 Agfa Most cameras today still use CCD technology. ● Different types of CCD’s: ● – Moving CCD’s higher resolutions ● for still objects ● – Matrix CCD’s (lower resolutions) lower resolutions ● “immediate” snap-shot Tuijn ● Agfa Lectures - Fachhochschule Köln 25 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 26 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 27 Agfa Some quality issues ● Image restoration ● Image reconstruction Tuijn ● Agfa Lectures - Fachhochschule Köln 28 Agfa ● Limitations of cameras: – sampling problems – problems related to CCD’s and CFA’s (CFA = Color Filter Array) – dynamic range problems ● User/scene related problems Tuijn – problems with illumination – high-frequency patterns in original scene Agfa Lectures - Fachhochschule Köln 29 Agfa Improve image quality ● “Reconstruct or recover an image that has been degraded by using some a priori knowledge of the degradation phenomenon” (Gonzales-Wintz) ● Color plane interpolation ● Color fringe removal ● Noise filtering ● Compression artifact removal ● Color management Tuijn ● Agfa Lectures - Fachhochschule Köln 30 Agfa Single CCD detector ● Subsampling in three color planes ● Subsequently interpolating to reconstruct three full-resolution color planes Tuijn ● Agfa Lectures - Fachhochschule Köln 31 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 32 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 33 Agfa ● Simple interpolation – Nearest neighbor – Bilinear interpolation ● ● Tuijn ● Methods using correlation of the different planes Methods based on interpolation in HSL space (smooth hue transition) Techniques based on edge detection Agfa Lectures - Fachhochschule Köln 34 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 35 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 36 Agfa Sometimes, the signal/noise ratio is causing bad images (typically in blue channel) ● Solution: ● – Mean filters ● fast, but filters out high frequency information – Median filters ● slower, better than ordinary mean filters – Adaptive mean filters: Tuijn ● filter noise very well, preserves edges Agfa Lectures - Fachhochschule Köln 37 Agfa JPEG compression works tile-based (typically on a 8x8 tiles). ● For high compression ratios, discontinuities at the tile-boundaries become visible. ● These artifacts can be removed by spatial filtering. Tuijn ● Agfa Lectures - Fachhochschule Köln 38 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 39 Agfa Color management can be regarded as a restoration, since the incoming signal is distorted (recorded through an optical system and then digitized). ● Problems: ● – unknown illumination – color appearance problems Tuijn ● Specification of the signal space using ICC profiles. Agfa Lectures - Fachhochschule Köln 40 Agfa This class of filters will improve the images and make them more pleasing. ● The deficiencies to be corrected are user and/or scene-related. ● Two families of corrections can be considered: ● – color-based corrections – spatial filters Tuijn ● resolution enhancement Agfa Lectures - Fachhochschule Köln 41 Agfa ● Often, there is a mismatch in the tonality of the original scene and the optimal digital representation – over-exposed scenes (flash-light, sun) – dark scenes Sometimes, some specific areas need tonal enhancement to show details. ● Problem with tonal corrections in general: can cause posterization (8 bpp) Tuijn ● Agfa Lectures - Fachhochschule Köln 42 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 43 Agfa ● Two types of tonal corrections can be considered: – global tonal corrections (look-up tables are applied on R, G and B) – selective tonal enhancements masking ● dodging Tuijn ● Agfa Lectures - Fachhochschule Köln 44 Agfa ● Color cast removal: – The eye adapts chromatically but a digital camera does not. – detection of the illumination (can be combined with color management) flash-light ● sun ● other standard light-sources (Tungsten, …) Tuijn ● Agfa Lectures - Fachhochschule Köln 45 Agfa ● Near neutral correction: – this correction is often realized with a selective color correction. ● Selective color corrections – detection of common areas in pictures sky ● grass ● skin-tone Tuijn ● Agfa Lectures - Fachhochschule Köln 46 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 47 Agfa Non-optimal sampling because of resolution limitations ● The human eye is sensitive to staircasing ● Solution : detect objects in scene and reconstruct edges Tuijn ● Agfa Lectures - Fachhochschule Köln 48 Agfa There are different approaches to this problem. ● Global techniques: ● – subdivide image in tiles of, say, 16x16 – model the image analytically (using regression techniques from Numerical Analysis) ● birational splines (to preserve edges) Tuijn – evaluate the pixels again Agfa Lectures - Fachhochschule Köln 49 Agfa ● Local techniques – Using neural networks ● the training sets consist of patterns occurring in small kernels – Using rule-based systems with ad-hoc heuristics gradient based assumptions ● detection of patterns (edges, corners) Tuijn ● Agfa Lectures - Fachhochschule Köln 50 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 51 Agfa Scanners ● Digital Cameras Tuijn ● Agfa Lectures - Fachhochschule Köln 52 Agfa ● Different market segments need different applications. – Home/office: ScanWise – Publish: FotoLook – Pre-press: ColorExact Tuijn ● Workflow can differ considerably. Agfa Lectures - Fachhochschule Köln 53 Agfa ● General workflow Tuijn – Crop scan – Automatic detection of the originals – Analysis of the originals + automatic correction and visualization (preview editing) – Editing facilities – Final scan (to disk, to other applications …) Agfa Lectures - Fachhochschule Köln 54 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 55 Agfa ● The user’s expectations – Optimal quality with minimal user intervention – Easy work-flow: easy manipulation of digital camera and/or software ● downloading images should be intuitive ● print services over the Internet Tuijn ● Agfa Lectures - Fachhochschule Köln 56 Agfa In the application, a photo album concept is needed. ● Also support for voice annotation becomes more and more important. ● Various file formats should be supported: ● Tuijn – JPEG, TIFF, FPX – DPOF: containing printing directives Agfa Lectures - Fachhochschule Köln 57 Tuijn Agfa Agfa Lectures - Fachhochschule Köln 58 Agfa In the future: elimination of the workstation ● New trends: ● – JetSend – Standardization of embedded OS’es ● DigitaOS, Windows CE, Embedded JAVA Tuijn – Internet Imaging standards: IIP, JINI Agfa Lectures - Fachhochschule Köln 59 Agfa All digital input devices have their limitations. ● The firmware and/or software should achieve the best quality possible (color management, image processing). ● The end-user needs a good application to interface with the input devices: ● Tuijn – suited to the needs and the market segment – easy to use, and yet sophisticated enough. Agfa Lectures - Fachhochschule Köln 60