AFB TECH
October 2010
Copyright 2002 by Karl E. Wiegers. Permission is granted to use, modify, and distribute this document.
Page ii
Table of Contents
Table of Contents .......................................................................................................................... ii Revision History ............................................................................................................................ ii 1. Introduction ..............................................................................................................................1
1.1 1.2 1.3 1.4 1.5 2.1 2.2 2.3 2.4 2.5 2.6 3.1 3.2 3.3 3.4 3.5 3.6 4.1 4.2 4.3 4.4 5.1 5.2 5.3 5.4 Purpose ........................................................................................................................................ 1 Document Conventions ............................................................................................................... 1 Intended Audience and Reading Suggestions ............................................................................. 1 Project Scope ............................................................................................................................... 1 References ................................................................................................................................... 1 Product Perspective ..................................................................................................................... 2 User Classes and Characteristics ................................................................................................. 1 Operating Environment ............................................................................................................... 1 Design and Implementation Constraints ..................................................................................... 1 User Documentation .................................................................................................................... 1 Assumptions and Dependencies .................................................................................................. 1 Acquire Image Data ..................................................................................................................... 2 Measure display Contrast and Reflection.................................................................................... 4 Calculate display MTF ................................................................................................................ 4 Control Instrumentation .............................................................................................................. 5 Perform System Calibration ........................................................................................................ 6 Store Measurement Data ............................................................................................................. 7 User Interfaces ............................................................................................................................. 7 Hardware Interfaces .................................................................................................................... 8 Software Interfaces ...................................................................................................................... 8 Communications Interfaces ......................................................................................................... 9 Performance Requirements ......................................................................................................... 9 Safety Requirements .................................................................................................................... 9 Security Requirements ................................................................................................................ 9 Software Quality Attributes ........................................................................................................ 9
3. System Features........................................................................................................................2
6. Other Requirements ................................................................................................................9 Appendix A: Glossary..................................................................................................................10 Appendix B: Analysis Models .....................................................................................................11 Appendix C: Issues List ...............................................................................................................12
Revision History
Name William Reuschel Date 10/16 Reason For Changes Initial Draft Version 0.9
Page 1
1. Introduction
1.1 Purpose
This document describes the functional and nonfunctional requirements for the Optics Lab Measurement System (OLMS) to be used in the AFB TECH Optics Lab. This document contains information for release 1 of the system.
1.5 References
1. Reuschel, William. Vision and Scope Document for the Optics Lab Measurement System. users.marshall.edu/~reuschel3/docs/olms_vs.pdf 2. Kelley, E. Display Ambient-Character-Reflectance and Contrast Measurement Procedure. users.marshall.edu/~reuschel3/docs/DisplayCharacterReflectances-SOW1-1p0.pdf 3. Kelley, E. Display Reflection Measurement ProcedureReplica Mask Measurements. users.marshall.edu/~reuschel3/docs/ReplicaMaskMeasurements.pdf 4. Kelley, E. Camera Flat-Field Correction Determination. users.marshall.edu/~reuschel3/docs/CameraFFC-1p0.pdf
Page 2
2. Overall Description
2.1 Product Perspective
The Optics Lab Measurement System (OLMS) is a new software based system that replaces the current manual methods for taking display measurements using the AFB TECH Optics Lab. This system will make the measurements easier to perform and more accurate. It will coordinate and track calibration data, gather data from instrumentations, provide interfaces to guide the user through the measurement process, and store data and images. The system will run on the PC in the optics lab and interact with all of the instrumentation currently being used to take measurements. See Figure 1.
Page 1
Page 1
Page 2
3. System Features
3.1 Acquire Image Data
3.1.1 Description and Priority This feature allows the user to acquire image data to be used in later analysis. Before an image can be taken, the physical setup of the lab must be properly configured. Priority = high. 3.1.2 Stimulus/Response Sequences Stimulus: The user will request to prepare the lab for taking an image. Response: The user will be guided through the sequence of steps to physically set up the lab. This will not consist of any calibration procedures. The system will also have to signal the power supply to switch on the output. Stimulus: The user requests to take an image Response: The system will interface with the Canon EDSDK to connect with the camera. Live View images will begin streaming to a picture box, and the user will be given the option to change camera settings and then take a picture. 3.1.3 Functional Requirements Image.Prepare Image.Prepare.Darkroom Image.Prepare.Exposure The system prepares the instrumentation to take images. The following are executed at different times throughout the process. The system prompts the user to turn off the lights. The system shall test the optimal exposure setting for the camera. The highest signal should be 80% of maximum. Returns true if within acceptable range (75-85%). The system will count down from 15 minutes from when the lamp was turned on. The system will show an on screen timer. If the user attempts to perform an action involving acquiring measurement data during this time the system will warn the user that the lamp may not be warmed up, but will not stop the user from performing that action. The system shall prompt the user to open the shutter. The system will check that the illuminance is above a threshold level. This threshold level will be user configurable. The system will inform the user of the illuminance level and the threshold status. The system prompts the user to find a suitable region of the screen to measure, place a replica mask, and mount the display on the sphere. The user will be presented with diagrams explaining the physical setup.
Image.Prepare.LampWarmup
Image.Prepare.MaxIlluminance
Image.Prepare.DisplaySetup
Page 3
Image.Camera.LiveView
Image.Camera.Focus Image.Camera.ChangeSetting
Image.Camera.TakePicture
Image.Camera.ApplyCorrections
The system shall utilize the live view function of the camera. This will enable the user to see the electronic view finder of the camera through the computers display. The system shall allow the user to focus the camera. The system shall allow the user to change the shutter speed, ISO setting, f-stop, and white balance of the camera. These settings are displayed on screen. The system will make an exposure with the camera and store the image data in memory. The image will be displayed for the users review. The system will apply the background subtraction and flat field correction calibration images to the stored image.
Page 4
The system performs CR.Acquire with the different images as defined in the Optics Lab measurement procedure documents.
Page 5
Stimulus: The user requests to perform MTF analysis on an image Response: The system displays the image and allows the user to draw a rectangle around the area to be cropped. This regions dimensions must conform to a power of 2. The system passes this data to the MATLAB Engine. 3.3.3 Functional Requirements MTF.LoadImage MTF.CropImage MTF.SendData MTF.ReceiveData The system loads the image selected by the user into a picture box. The system allows the user to select a rectangular region of the image to be analyzed. This region must be fitted to be 2n x 2m pixels in dimensions. The system converts the cropped region of the image into values that can be used by the MATLAB script and then sends the values to the MATLAB engine. The system receives the data from the MATLAB engine.
Page 6
Resets OVP status. Returns true if successful. Sets the PS output to on or off. Sets the remote setting for the PS. When remote is on, the front panel controls are locked. Returns true if successful. Sets the measurement type to DC Volts or DC Amps. Returns true if successful. Sets the remote status to true or false. If remote is true, the front panel of the DMM is locked. Returns true if successful. Sets the frequency of measurement to slow or fast. Returns true or false. Returns the most recent measurement from the DMM. Returns the most recent measurement string from the luminance meter.
Page 7
Page 8
MTF Crop UI: This interface will allow the user to select a region of a test image to be cropped and sent to the MTF algorithm. The image will be displayed and the user will be able to pan and zoom. The user can select a rectangular region with both dimensions constrained to powers of 2.
4.2.3 Keithley 2000 Digital Multimeter The Keithley 2000 Digital Multimeter communicates over the RS-232c interface and implements a different set of SCPI commands. These commands are well documented in the instruments documentation. 4.2.4 Minolta LS-100 Luminance Meter The LS-100 communicates of the RS-232c interface and has a custom set of commands that are transmitted as ASCII characters. Output is in the form of ASCII strings with a predetermined format.
Page 9
4.3.3 Database The specific database technology has not been chosen yet.
6. Other Requirements
OR-1: the Software System and algorithms must meet all of the standards laid out in the measurement documentation provided to AFB Tech.
Page 10
Appendix A: Glossary
Modulation transfer function (MTF): Conceptually, MTF is the response (contrast) of the screen at different spatial frequencies. This is represented as a function where f(x) is the contrast and x is the spatial frequency. Flat-Field Correction (FFC): Background subtraction: Reflection: the correction used to account for the fall off on the edges of the frame caused by the camera. this accounts for any hot pixels in the sensor of the camera. Reflection describes the amount of light reflected from ambient sources. When applied to the contrast formula, the reflection factors can calculate the level of contrast for any given design illuminance. a surface exhibiting diffuse reflection will reflect light in 180. An example of a diffuse reflector is a white sheet of copy paper. a surface exhibiting specular reflection will reflect light in one direction. An example of this is a mirror. the live view feature of the Canon camera that allows the user stream images from the sensor. emissive displays emit light in the form of a backlight. Most color LCD displays are emissive. purely reflective displays emit no light in a darkroom. These displays are usually monochrome LCD displays.
Page 11
Page 12