21
Digital Imaging and X-ray Mapping Using NIH Image GPS Division Analytical Facility Summary Images obtained on the sem can be recorded using either analog image photography via Polaroid film and camera, or by digital control of the electron beam and measurement of the image signal on a pixel-by-pixel basis and subsequent storage as a digital image. This section covers digital imaging and the instructions for acquiring digital images on this system. Introduction The Camscan Series II SEM is equipped with a Macintosh system that has digital imaging, x-ray mapping, and EDS analysis capabilities. The Link-4Pi system consists of a Link EDS detector with beryllium and thin window modes, an Oxford 2040 pulse processor, a 4Pi scanning interface unit, and the 4Pi Spectral Engine multichannel analyzer board in the Macintosh. This system can be used to acquire digital secondary-electron and backscattered-electron images, digital x-ray maps, and also to perform energy- dispersive quantitative analysis. Two programs are used to perform these operations. Digital imaging and x-ray mapping is accomplished using the National Institute of Health Image program (NIH Image) for the Macintosh, using plug-ins that interface to the 4Pi electronics. The NIH Image program is freeware and all programs, supporting documents, and other materials may be freely copied. Qualitative and quantitative EDS analysis is accomplished using the NIST program DTSA for the Macintosh, using a plug-in that interfaces to the 4Pi multichannel analyzer electronics. This section details how to acquire digital images using NIH Image. This program allows you to acquire digital secondary-electron and backscattered-electron images using the digital raster capabilities of the Macintosh and the 4Pi scanning interface unit. You can also use the NIH program to acquire digital x-ray maps from the Link EDS detector; the instructions for this procedure are in a separate section on x-ray mapping. NIH Image NIH Image is an image processing program that is available on the Macintosh (68k, PPC, and Fat versions can be downloaded), and more recently a PC version has been developed. The executable program, example macros, plug-ins and complete source code for these versions are available from the NIH Image Web site: http://rsb.info.nih.gov/nih-image/ or by anonymous FTP from: zippy.nimh.nih.gov Concept -- Digital Imaging When the electron beam of the SEM is scanned over a sample, the beam is controlled in an analog sweep fashion, and at the same time the electron beam of the display monitor is also synchronously scanned at the same rate. The image is therefore obtained by mapping the SEM electron beam signal to the display monitor (it is not a real image like that from a light microscope is). This analog scan is fast in the x direction and slow in the y direction (like a TV signal), and you view the image on a long-persistence

Digital Imaging and X-ray Mapping Using NIH Image

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Digital Imaging and X-ray Mapping Using NIH Image

Digital Imaging and X-ray Mapping Using NIH Image

GPS Division Analytical Facility

Summary

Images obtained on the sem can be recorded using either analog image photography via Polaroid film andcamera, or by digital control of the electron beam and measurement of the image signal on a pixel-by-pixelbasis and subsequent storage as a digital image. This section covers digital imaging and the instructions foracquiring digital images on this system.

Introduction

The Camscan Series II SEM is equipped with a Macintosh system that has digital imaging, x-ray mapping,and EDS analysis capabilities. The Link-4Pi system consists of a Link EDS detector with beryllium andthin window modes, an Oxford 2040 pulse processor, a 4Pi scanning interface unit, and the 4Pi SpectralEngine multichannel analyzer board in the Macintosh. This system can be used to acquire digitalsecondary-electron and backscattered-electron images, digital x-ray maps, and also to perform energy-dispersive quantitative analysis.

Two programs are used to perform these operations. Digital imaging and x-ray mapping is accomplishedusing the National Institute of Health Image program (NIH Image) for the Macintosh, using plug-ins thatinterface to the 4Pi electronics. The NIH Image program is freeware and all programs, supportingdocuments, and other materials may be freely copied. Qualitative and quantitative EDS analysis isaccomplished using the NIST program DTSA for the Macintosh, using a plug-in that interfaces to the 4Pimultichannel analyzer electronics.

This section details how to acquire digital images using NIH Image. This program allows you to acquiredigital secondary-electron and backscattered-electron images using the digital raster capabilities of theMacintosh and the 4Pi scanning interface unit. You can also use the NIH program to acquire digital x-raymaps from the Link EDS detector; the instructions for this procedure are in a separate section on x-raymapping.

NIH Image

NIH Image is an image processing program that is available on the Macintosh (68k, PPC, and Fat versionscan be downloaded), and more recently a PC version has been developed. The executable program,example macros, plug-ins and complete source code for these versions are available from the NIH ImageWeb site:

http://rsb.info.nih.gov/nih-image/

or by anonymous FTP from:

zippy.nimh.nih.gov

Concept -- Digital Imaging

When the electron beam of the SEM is scanned over a sample, the beam is controlled in an analog sweepfashion, and at the same time the electron beam of the display monitor is also synchronously scanned at thesame rate. The image is therefore obtained by mapping the SEM electron beam signal to the displaymonitor (it is not a real image like that from a light microscope is). This analog scan is fast in the xdirection and slow in the y direction (like a TV signal), and you view the image on a long-persistence

Page 2: Digital Imaging and X-ray Mapping Using NIH Image

phosphor monitor, where the image is retained for a number of seconds. This image can be photographedif the analog scan image is also projected onto a short-persistence monitor and a film sheet (Polaroid,typically) is exposed to the monitor (the short-persistence monitor is used to avoid smearing of the imageon the Polaroid photograph).

The analog scan rate determines the spatial resolution and signal-to-noise ratio. At faster (full frame)analog scan rates, less time is spent at any given location on the sample and the signal is noisy. At slowerscan rates, the system is effectively measuring the same area on the sample for a longer period of time, anda much higher signal-to-noise ratio is obtained (i.e. less noisy). This is why a slow scan is used duringPolaroid photography or situations where high resolution and/or sensitivity are desired. There is a limit towhat can be resolved on the display monitor, and it is often observed that features not visible on the displaymonitor can be seen on the Polaroid photo due to it's higher line resolution and contrast sensitivity.

The main advantage to using film recording media is that very high effective line resolution can beobtained. A digital image must be acquired at high pixel resolution (like 2000x2000 or higher) to achievethe same spatial resolution as is possible with a photograph. The effective contrast range can be quite highas well.

The main drawbacks to using film recording media are as follows. Film is not cheap. The longevity of aPolaroid print is only a few years, so it is not adequate for archival purposes. For high quality photography,it may be necessary to make several exposures to achieve the best brightness and contrast settings. Themain drawback, however, is that an analog photograph is the only record of the image. The photograph canbe digitally scanned, but the resulting image will never have a contrast range better than the originalphotograph, and there are typically scanning artifacts that render this approach undesirable.

The traditional x-ray dot map was an analog image whereby a normal scanning image was obtained and(typically) the EDS x-ray detector was used to detect x-rays for a specific element. As the analog scan wasperformed, if the EDS detector observed counts for the desired element, then a bright dot was displayed onthe monitor. If many x-rays were detected at a given spot on the sample, then many dots would bedisplayed on the monitor. Usually the image was recorded using film and a number of analog scans wereobtained to build up the image. The problem with this dot-mapping method is that actual x-ray counts werenot measured, but rather "a lot" of the element was identified by a cluster of dots on the resulting image.

The main advantages to digital image acquisition are as follows. First, the electron beam is digitallyrastered over the sample and the desired signal is measured and converted to a digital value at each pixel inthe image. Thus, a numerical measurement is obtained for the signal, which may be the number of x-raycounts detected at that pixel, or a scaled brightness value (0-255 for an 8-bit image) in the case of asecondary or backscattered-electron video image. Second, the digital image has an indefinite lifetime, andfor and can be reprocessed in a variety of ways to extract information from the image after it was acquired.

Digital Video Imaging

The NIH Image program has the capability to digitally raster the electron beam on the sem by using one oftwo plug-ins provided by 4Pi for use with the 4Pi scanning interface unit. The electron beam is digitallypositioned pixel-by-pixel (in a square matrix pattern), rather than being deflected in a simple analog scanmode. The beam increments along the x direction to acquire a row of pixels, and then incremented onepixel in the y direction and the next row of x pixels is acquired. The desired signal is measured at eachpixel position and stored to memory in the computer, and a digital image is either displayed at the end ofacquisition (sei and bei images) or after each row of pixels has been measured (x-ray maps).

The SEM ImageScan plug-in drives the 4Pi scanning interface unit and is used to acquire secondary-electron (sei) and backscattered-electron images (bei).

Digital X-ray Mapping

In addition to measuring the secondary or backscattered-electron intensity (as is the case for a digital sei orbse video image), it is also possible to count the characteristic x-rays of a set of elements in a given sample.If digital x-ray maps are being acquired, the electron beam is digitally incremented (step by step along a

Page 3: Digital Imaging and X-ray Mapping Using NIH Image

horizontal line), and the energy-dispersive x-ray detector is counted at each pixel. The x-ray countsmeasured at that pixel are then scaled to an 8-bit value (0-255) and that pixel in each x-ray map is set to theproper gray level (the x-ray intensity data may be retained by the Image program). The x-ray maps are thusbuilt up line by line on the Mac display, and must also be saved at the end of the mapping session. Sinceyou get about 1 x-ray photon per 10^6 electrons bombarding the sample, a digital sei or bei image takesseconds to obtain (i.e. there are lots of electrons), whereas to get a good x-ray map requires at least tens ofminutes and more often several hours to obtain (i.e. there are comparatively few x-rays).

The X-ray ImageScan plug-in is used to acquire digital x-ray maps. A digital x-ray map is a digital imagein which a scaled representation of the measured x-ray intensity for a selected element is stored for eachpixel in the image. For an 8-bit image there are 256 levels that are used to represent the range of measuredintensities.

In the setup mode you select the elements that you wish to map, and the program uses default energy limitsto define a "region of interest" or ROI. You may select your own region limits, and you may specify otherregions that are to be used to perform background correction. The dwell time per pixel is also set, and thisdetermines the length of the mapping run. Typically one spends tens of minutes to hours collecting digitalx-ray maps -- it is not really a fast operation. When the mapping run is started, the electron beam isdigitally positioned to the first pixel, and both the electron image signal is measured (sei or bei) and theEDS detector is counted. If x-ray counts are observed in the ROI's that were setup, then they arebackground corrected by simply subtracting out those counts from the background ROI's (if used, otherwiseno background correction is made -- remember this!), and the resulting number is stored in the computermemory for that pixel location.

Page 4: Digital Imaging and X-ray Mapping Using NIH Image

Policy Issues

You are allowed to store the images that you collect during your session on the instrument, but you need toremove all of the images at the conclusion of your session. There is no permanent storage of images on thecomputer. You should come to your session with either the necessary information so that you can copyyour images via FTP or the Macintosh chooser to your computer, or with sufficient storage media tocompletely copy all your images.

You are expected to remove your image files yourself.

NIH Image is Freeware

Because the NIH Image program is freeware, you are encouraged to obtain a copy for your own use. Acurrent distribution version is available on the Macintosh, as well as the distribution version of the manualsand other tutorials.

Directory Structure

This is the directory structure on the Macintosh called daf-sem.gps.caltech.edu:

SEM1 (This is the hard drive name)sem user area (This is the main folder for all sem users)

DTSA (This is the main folder for the DTSA EDS program)<DTSA Subfolders>

NIH Image (This is the main folder for the NIH Image Program)NIH Image <program version number> (This is NIH Image).DAF Images (Demo and other images for DAF use).Temporary Storage Only (Temporary storage for your images)Distribution(Distribution NIH Software)Docs (NIH Manuals and other documentation)Kernels (Deconvolution kernals)Look-up Tables (Look up tables for image color)Macros (NIH Image macros)Plug-ins (NIH Image plug-ins, 4Pi plug-ins)<Other folders>

sem user areaThe folder sem user area is where all programs and appropriate files are kept for digital imaging (NIHImage) and EDS analysis (DTSA). The DTSA program is discussed in the section on energy-dispersiveanalysis. When you connect to daf-sem.gps.caltech.edu from the network, this is the folder that you haveaccess to.

DTSAThe folder DTSA contains the program DTSA (Desktop Spectrum Analyzer) and all the appropriatesubfolders. This program is used to acquire EDS (energy-dispersive spectrometer) spectra using the LinkEDS detector.

NIH ImageThe NIH Image program is located in the NIH Image folder. The program version number and theplatform target are part of the name, i.e. NIH Image 1.60/PPC is version 1.60 for the powerpc Macintosh.

.DAF ImagesThe folder .DAF Images contains calibration images, demo images, and other research images files usedby the Division Analytical Facility. Do not store image files there.

.Temporary Storage OnlyThe folder .Temporary Storage Only is, as the name implies, for temporary storage of your digital imagesduring your session on the sem. You must remove your images at the conclusion of your session; there isno permanent storage space on this computer.

Page 5: Digital Imaging and X-ray Mapping Using NIH Image

DistributionThe Distribution folder contains compressed versions of the NIH Image program and the documentationmanuals. You may copy these compressed archives to your computer over the network, but please do notuncompress them on this computer. Alternatively, you may obtain the most recent versions of the programand documentation from the NIH Image web site or anonymous FTP site:

http://rsb.info.hih.gov/nih-image/ (The web address)zippy.nimh.nih.gov (The FTP address)

DocsThe Docs folder contains the NIH Image manuals, as well as other instructional materials. You may copythese as well.

KernelsThe Kernels folder contains convolution kernels for use with the Process>Convolve menu selection on thecurrent image selection. See the manual for further information about image processing.

Look-up TablesNIH Image has a number of color and grayscale image look-up tables built in to the program (and accessedusing the Options>Color Tables menu). The Look-up Tables folder contains additional look-up tables forcolorizing the image. These are accessed using the File>Open menu and operate on the current image.

MacrosThe Macros folder contains NIH Image macros, which are text files written in a Pascal-like language thatcan be used to automate procedures in the Image program. These macros are loaded using theSpecial>Load Macros menu. See the manual for further information.

Plug-insThe Plug-ins folder contains the 4Pi driver plug-ins that are used to drive the scanning interface unit andacquire digital images, and also contains other plug-ins that are used for image processing.

Page 6: Digital Imaging and X-ray Mapping Using NIH Image

How to Acquire Digital Video Images

Make a Temporary Folder

1. First, you need to make a folder for temporary storage of your images. All images must be saved to thisfolder within the folder “.Temporary Storage Only”. Please name your folder with your last name followedby your first initial (“Carpenter P”, for example). The correct location of your temporary folder is showbelow:

SEM1 (This is the hard drive name)sem user area (This is the main folder for all sem users)

DTSA (This is the main folder for the DTSA EDS program)<DTSA Subfolders>

NIH Image (This is the main folder for the NIH Image Program)NIH Image <program version number> (This is NIH Image).DAF Images (Demo and other images for DAF use).Temporary Storage Only (Temporary storage for your images)

Carpenter P (This is my folder for temporary storage)Yourlastname First (This is your folder for temporary storage)

2. Please take note of the following:a. Images may be stored within your folder until the end of your session; you will have until the nextmorning to remove all of your images. Remember that permanent or long-term storage of image files is notavailable on this computer.

b. If you do not store your images in the correct folder location, you may not have access to them if you tryto remove them via an FTP or chooser connection from a remote computer (you only have access to thefolder “sem user area”, not the entire hard drive).

c. If you are going to transfer your image files over the network, you should do this at the end of yoursession from the sem computer. This may take up to tens of minutes and you should plan your timeaccordingly. If you wait to copy the files from a remote computer, you risk having someone reboot theMacintosh while you are connected.

Launch or Select the NIH Image Program

1. Pull down the menu from the upper right hand corner of the Macintosh screen (under the Macintoshicon). If NIH Image is there, select it to make the Image program active. If NIH Image is not on thatmenu, double-click on the icon named NIH Image alias, located at the bottom of the screen on the desktop.This will startup the Image program. (And from here on it is assumed that you know how to run aMacintosh...)

There are manuals to help you use the NIH Image program. These are located near the SEM or on theshelves to your right. Remember that distribution copies of the program and the manuals are available onthis computer and via FTP or the NIH Image web page.

Page 7: Digital Imaging and X-ray Mapping Using NIH Image

Setup the Camscan for Digital Imaging

It is assumed that you have a sample in the Camscan SEM, and that the filament has been saturated, thecolumn aligned, and the sample properly focused. If you have not done this, follow the appropriatesections of the manual to do so.

If you plan to do x-ray mapping, the EDS detector should be inserted to the “analysis” position of 6 cm. Ifthis has not been done, refer back to the initial startup settings.

On the Camscan console do all the following:

1. The digital image will be acquired from the left-hand screen on the sem. Use the Image Selector toselect the image you want on the left hand screen (use the left bank of selector buttons to select the imageyou want, either sei or bei).

2. Locate a feature that has a good contrast boundary (in both the x and y directions) to use for focusingand stigmation. You are about to optimize the focus and stigmation in the same way that you do beforephotography.

3. Set the Scan Speed to Rapid Scan (orange button in Scan Speed).

4. Set Magnification and Zoom to at least 2x the magnification that you plan to acquire your digital image;alternatively, set the magnification to as high as is practical, so that you are able to optimize the focus andstigmation. In any case, you should use a magnification of 10,000x or higher to set the focus andstigmation.

5. Set Fine Focus and the X and Y Stigmators to achieve the sharpest possible image -- this will requireiterative adjustment of each control (set focus, set stigmation, recheck focus, etc.). If there is noimprovement in the image, you are either at too low a magnification, or you are not using a feature withadequate contrast. If the image shows excessive diagonal stretching as you rotate the Fine Focus throughthe focus position, you have not adjusted the X and Y Stigmators properly. There is usually some lateralshifting of the image as you go through the focus position, but there should be very minimal diagonalstretching.

6. Set the Scan Speed back to TV rate (bottom green button) so that you can see the whole raster area.

7. Reduce the Magnification and Zoom controls to approximately the magnification you want for thedigital image acquisition. This will need to be adjusted since the Camscan has a rectangular raster display,whereas the Macintosh will be acquiring using a square raster.

8. Adjust the stage X and Y motors to center the image and display the desired features.

9. Set the Scan Speed to S2 (the slowest scan speed; at the top of the scan speed buttons). This setting isused for proper brightness and contrast calibration of the digital image.

10. Set the Split-Scan Mode to SP. This will enable external digital beam control via the blue EXT button.

11. Set the blue EXT button in. This allows the 4Pi electronics to externally control the beam raster on theCamscan (but only when the orange [X] button is pressed in). If you forget to press EXT you will only getthe brightness on the Mac, but no scan information.

NOTE: When the EXT button is in, the Image Shift controls are disabled, and you will not be able to movethe cursor on the screen.

12. Set the orange [X] point-beam button in. This now enables the digital raster using the 4Pi electronics.

This completes the setup on the Camscan for digital imaging.

Page 8: Digital Imaging and X-ray Mapping Using NIH Image

Setup NIH Image for Preview using SEMImageScan Plug-in

You need to do this section before acquiring video (i.e. secondary or backscattered-electron images) or x-ray maps. This is to properly set up the brightness and contrast, pixel dwell time (if applicable), and pixelresolution that will be used for the digital image acquisition.

1. NIH Image should be the currently active program on the Macintosh. On the Macintosh, select underthe File menu down to Acquire > Sem ImageScan (this is where the plug-in is accessed):

File..Acquire > SemImageScan.PPC

(If there is no Acquire menu selection under the File menu, then you are either in the Finder or in anotherprogram. Select NIH Image and repeat this step).

Selecting the plug-in does two things. First, the 4Pi scanning interface unit is engaged, and you may hear adistinct click when it starts beam control. Secondly, a preview window is brought up in NIH Image, toallow you to preview the image prior to acquisition.

This is what the preview window looks like:

2. Adjust the brightness and contrast for either the secondary-electron or backscattered-electron image.Try to set the overall brightness to a medium gray, and try to avoid too high contrast where pixels in thepreview image are fully white or black.

3. Adjust the X and Y stage motors to further center the image if needed.

4. Adjust the Magnification and Zoom controls on the Camscan to set the magnification properly.

Page 9: Digital Imaging and X-ray Mapping Using NIH Image

5. If you need to see a sweeping line profile of the scan area, click on “Setup Channels/Scans”. This willbring up the following screen:

Note that some of the settings on this screen are different from what you will see -- do not change thesettings to match this example screen.

The line profile at the top is a migrating horizontal line profile that samples the entire image scan area. They-axis position of the profile is a function of the brightness setting, with the bottom of the box representingblack (usually this is a value of 0), and the top of the box representing white (usually this is a value of 255).The amplitude of the signal is a function of the contrast setting on the Camscan. Adjust the brightness andcontrast controls to keep the profile within the upper and lower bounds and at approximately the 50% level,on average. However, read the following “Important Information Section” for more informationconcerning the dynamic range of the digital image.

6. After you have adjusted the brightness and contrast, and changed the Channel Dwell time (if necessary),click on OK to return to the preview window.

7. The default image resolution is 512 x 512 pixels. If you need to change this, select a different resolutionfrom the pop-up menu. If you use a different resolution, please set it back to 512 for the next user.

Acquiring the Digital Video Image

1. This is the easy part, since you have adjusted all the parameters already. When you are satisfied withthe preview image, click on OK and the image will be acquired, with a progress status bar showing howlong you have to go.

Page 10: Digital Imaging and X-ray Mapping Using NIH Image

Important Information Section on Digital Video Imaging

Important Note Concerning Brightness and Contrast Levels

It is important to properly sample the brightness range in the image that you want to document. In general,you want the entire brightness range of your scanning image to fit in the line profile (i.e. all brightnessvalues are in the range 0-255), without any pixel values outside of this range. Any values outside this rangewill be assigned to the first and last bins in the image (0-1 and 254-255), and brightness information fromthese pixels will be lost. However, if you want to acquire an image that samples a narrow brightness range,but uses a high contrast, then you need to identify the feature in the image that you want to sample (andobserve it’s brightness and contrast values on the line profile), and set the brightness and contrast settingsfor this feature to utilize the 0-255 range, with all other features outside this range. This procedure istypically used if you wish to acquire a backscattered-electron image of one phase in a multi-phase sample,and accentuate the contrast in that one phase of interest. All the other phases will have either too low or toohigh brightness, but ideally the sampled phase will be just right.

Important Note Concerning Dwell Time

All other things being equal, the more time spent scanning over a feature usually results in a better signal-to-noise ratio for that feature in the image. This is why a slow scan is used for image photography, as thespatial and signal contrast is enhanced at a slower scan rate. When acquiring a digital image, you havecontrol over the “Channel Dwell” time, which is the time spent at each pixel location reading the signal, inmicroseconds. The relationship between this setting, and the time required to acquire images of differentpixel resolution is shown below:

SizeAcq. Time(dwell = 1)

Acq. Time(dwell = 10)

Acq. Time(dwell = 100)

256 × 256 < 2 sec ≈ 2 sec ≈ 8 sec

512 × 512 ≈ 4 sec ≈ 6 sec ≈ 29 sec

1024 × 1024 ≈ 13 sec ≈ 22 sec ≈ 116 sec

The suggested value for Channel Dwell is 32 usec. I do not recommend using a smaller value, and if youdecide to use a longer value, please set it back to 32 for the next user. There is only a moderateimprovement in image quality after increasing the dwell time beyond a certain value. For example, it isbetter to enhance backscattered-electron contrast by increasing the probe current and using a moderatevalue of the dwell time (i.e. a richer signal to begin with), rather than using a low probe current andspending longer times acquiring the image (i.e. a signal not as rich, and compensating with longer dwelltime). This is also an issue related to low-voltage microscopy, where the image is inherently noisy, and canbe improved to a point by manipulation of the probe current.

Page 11: Digital Imaging and X-ray Mapping Using NIH Image

Selecting the Digital Image Pixel Resolution

The preview window image is always acquired at the same pixel resolution, namely, 256 pixels. Youshould consider the relationship between the resolution that is in effect on the sem, and the pixel resolutionthat you are using to acquire the digital image. Ideally, the pixel resolution should be set to be equal to thearea sampled by the signal you are using for the image. Remember that even though the nominal beamdiameter is a few nanometers, that due to electron scattering, the secondary electron volume is tens ofnanometers, and the backscattered-electron volume is several hundred nanometers. The x-ray volume is onthe order of a micron or two. See Goldstein et al. if you do not understand this.

The important points are as follows. A digital image acquired at low magnification really should use adefocused beam so that the pixel size adequately covers the sample (i.e. the pixel size is large relative to thesignal volume being sampled). Acquiring at a higher pixel resolution is warranted in this case, and furtherresolution can be obtained via digital magnification in NIH Image (with the magnifying lens tool).However, a digital image acquired at high magnification, where the pixel resolution is too high simplyresults in overscanning the image and collection of redundant data.

The solution to this problem is to acquire an image at the magnification you wish to use, and properly setthe spatial calibration as outlined below. Then compare the pixel size to the spatial calibration of theimage; if you have many pixels that seem to show the same blurry feature, you are acquiring at too high apixel resolution, and if you have too few pixels that seem to contain features that are clearly resolved on theCamscan, then you are acquiring at too low of a pixel resolution.

Page 12: Digital Imaging and X-ray Mapping Using NIH Image

Setting the Spatial Calibration of Your Image

You now have a digital image. Currently there is no spatial calibration that is obtained from the Camscansem (that is, the image you have acquired has pixels of unknown spatial size). You need to set the spatialcalibration as follows.

1. Return to the normal imaging mode on the sem by deselecting the orange [X] button, and selecting theTV-rate scan speed. Estimate the size of a prominent feature in your image by comparison to the scalemarker on the sem display (if there is no scale bar then the red button on the sem keyboard to the right ofthe console should be pressed in). Let’s say that you have a feature that is 10 microns in size as estimatedin this way.

2. In NIH Image, select the tool that is used to set scale, as illustrated below:

Set Scale Tool

3. On your digital image, use this set scale tool to draw a straight line from one side to the other across thefeature that you know the size of from the Camscan. The length of this line will be used to tell NIH Imagethe known distance in an image that needs to be spatially calibrated.

Page 13: Digital Imaging and X-ray Mapping Using NIH Image

4. From the Analyze menu, select Set Scale, and the following window appears:

5. Use the pop-up menu to change the units to micrometers, since that is the size read off of the sem scalebar. Enter the known distance in the edit field labeled “Known Distance”. In our example, this would be10. Now click the OK button.

The image is now spatially calibrated, as indicated by the presence of a black diamond next to the title ofthe image window. The info window at the lower left should now display x and y pixel coordinateinformation in microns rather than pixels.

Important Point Concerning Spatial Calibration

It is very important to understand that NIH Image will use this spatial calibration for all subsequent imagesuntil you change the spatial calibration as shown above. That is, Image assumes that all subsequent imagesare acquired at the same magnification until you indicate otherwise. This means that you should thinkabout what magnification to use, and if you acquire at one magnification, you only need to set the scaleonce. However, if you acquire each image at a different magnification, then you will need to set the scalefor each image prior to saving it. It is also a very good idea to include the magnification in the saved nameof the image.

If you need further information about spatial calibration, see the NIH Image manual.

Page 14: Digital Imaging and X-ray Mapping Using NIH Image

Saving the Image

You now have a properly calibrated digital image that has not been saved. Save the image to yourtemporary folder (and nowhere else). The first time you save you will have to locate the folder. Rememberthe directory structure is:

SEM1 (This is the hard drive name)sem user area (This is the main folder for all sem users)

DTSA (This is the main folder for the DTSA EDS program)<DTSA Subfolders>

NIH Image (This is the main folder for the NIH Image Program)NIH Image <program version number> (This is NIH Image).DAF Images (Demo and other images for DAF use).Temporary Storage Only (Temporary storage for your images)

Carpenter P (This is my folder for temporary storage)Yourlastname First (This is your folder for temporary storage)

1. From the File menu, select Save As. This will open a save dialog box.

2. You should save the image with as much information in the file name as possible, including themagnification, image signal type, and the pixel resolution. An example name might be "Area1 2700x BSE512" or something similar. The default image type is a TIFF file, which can be read on both the Macintoshand the PC. Once you have saved to your temporary folder, NIH Image will keep that as the defaultdirectory.

3. Click on OK to save your image.

Page 15: Digital Imaging and X-ray Mapping Using NIH Image

How to Switch Between Camscan Imaging and Digital Imaging

From here you will probably collect more digital images. If you are acquiring a number of digital imagesduring your run, you want a quick way to switch back and forth between the Camscan imaging (fastscanning and useful for moving around on your sample), and the Macintosh digital imaging mode (slowscanning for good spatial resolution and signal-to-noise ratio).

You should leave the EXT button pressed in, and the Split-Scan Mode set to SP the whole time. When youwant the Camscan image, deselect the orange [X] button (out), and set the Scan Speed to TV rate or rapidscan for focusing. When you want to acquire a digital image, optimize as explained above, then set ScanSpeed to S2 and press in the orange [X] button. The orange [X] button can be used to toggle between theCamscan and Mac in this way.

Page 16: Digital Imaging and X-ray Mapping Using NIH Image

How to Acquire Digital X-ray Maps

Setting up for x-ray mapping involves many of the same steps that you use for normal digital videoimaging:

Make a Temporary FolderLaunch or Select the NIH Image ProgramSetup the Camscan for Digital Imaging

If you have not followed the procedures outlined in these sections, do so now.

Setup NIH Image for X-ray Mapping using X-Ray ImageScan Plug-in

This section outlines the procedure for acquiring x-ray maps using the EDS detector. The setup routineused by the NIH Image plug-in allows you to select the elements to be mapped (with or withoutbackground ROI’s), and the acquisition dwell time.

1. The EDS detector should already be inserted at the analysis position (6 cm for the Link detector). If youforgot to insert it during the initial startup settings, you should insert the detector now. Do this by turningthe crank at the far left clockwise to move the detector from the “park” position of 10 cm to the “analysis”position of 6 cm. If you have a large sample in the sem, you MUST turn off the beam by pressing theSpecimen Ready button, remove the viewport cover, and visually verify that there is sufficient clearancebetween your sample and the detector snout.

2. NIH Image should be the currently active program on the Macintosh. On the Macintosh, select underthe File menu down to Acquire > Sem ImageScan (this is where the plug-in is accessed):

File..Acquire > X-Ray ImageScan.PPC

(If there is no Acquire menu selection under the File menu, then you are either in the Finder or in anotherprogram. Select NIH Image and repeat this step).

Selecting the plug-in does two things. First, the 4Pi scanning interface unit is engaged, and you may hear adistinct click when it starts beam control. Secondly, a preview window is brought up in NIH Image, toallow you to preview the image prior to acquisition.

Page 17: Digital Imaging and X-ray Mapping Using NIH Image

This is what the preview window looks like (or is similar to this):

This setup window has a periodic table display that is used to select the elements for which x-ray maps areto be acquired. Each element has a default region of interest (ROI), that is defined by a low and highenergy limit, so that any x-ray photon counted by the EDS detector that falls within that ROI is counted as,say, a Fe Ka photon. During the mapping run, any x-ray count falling within the ROI energy range will becounted as an x-ray photon for that element, and all such photons counted while the beam is at a given pixelposition in the digital image will be summed and assigned to the pixel for that element’s x-ray map.

3. Select the elements that you wish to acquire x-ray maps for. Also deselect any elements left over fromthe previous mapping setup.

4. Select the S(T)EM button if you wish to acquire a video image (i.e. secondary or backscattered electron)with the x-ray maps. The dwell time used is set in this window, not in the SEM ImageScan setup window.

5. If a special set of region-of-interest settings is to be used, load them via the Open button in the ROI’sbox. Normally you will use the previously defined energy limits for all the ROI’s in the periodic table.

6. If background correction is to be used, select the appropriate bkg button. (There may be further dialog)

7. Use the Size pop-up menu to select the pixel dimension for your maps. The 128 and 256 sizes areappropriate considering the large x-ray volume excited by the beam, and the longer count time necessaryfor x-ray mapping. You will find that 512 size results in very long acquisition times.

8. Set the dwell time by editing the Dwell (ms) edit field. You may select Live time or Real timeacquisition (live time is that time the EDS detector is actually counting, real time is the actual clock time;live time is always longer than real time). The estimated time for the map acquisition appears next toEstimated Acquire Time, please note that the fields are Days:Hours:Minutes, not hr:min:sec!!

Page 18: Digital Imaging and X-ray Mapping Using NIH Image

9. To save the x-ray maps to your temporary folder, use the Maps: Save To button to set this location up.

10. When all the parameters are set to your satisfaction, click on the Acquire button. The mapping run willnow begin.

11. The x-ray maps are acquired and displayed one line at a time (not one pixel at a time). The run can beinterrupted by pressing command-period. The run will halt at the conclusion of the current line, so it willtake some time to finish if interrupted.

When the x-ray mapping run is finished, follow the procedures in the sections:

Setting the Spatial Calibration of Your ImageSaving the Image

Page 19: Digital Imaging and X-ray Mapping Using NIH Image

Important Information Section on X-ray Mapping

Important Points Concerning X-ray Counting

First of all, for every 10^6 primary beam electrons that enter the sample, typically only ONE produces anx-ray photon. This vast difference in electron “count rate” vs. x-ray photon production is the reason thatyou are able to rapidly acquire a secondary or backscattered-electron image, because you are sampling asignal that produces a large number of “countable” electrons. This is why pixel dwell times as short as 1millisecond work well for these video images. Longer dwell times must be used for x-ray mapping, simplybecause (all other things being equal), the x-ray production “count rate” is much smaller than the equivalentelectron “count rate”.

The second point is that x-ray production is random in time, so that a finite period of time can pass beforean x-ray ionization takes place (i.e. no x-rays are produced and therefore not counted for a short period oftime). The implications of this are as follows. An x-ray map for Si Ka acquired on a silicon wafer (pureSi) should produce Si Ka x-ray counts at every pixel in the map. If too short a pixel dwell time is used,there will be a large number of pixels in the Si map that have zero counts. This is also related to theoverhead required to start and stop the entire counting and beam positioning algorithm via software andhardware. As the pixel dwell time is increased to larger and larger values, one should get a map that has amore even distribution of x-ray counts in all the pixels (in fact, the x-ray map image histogram of ahomogeneous material should show a count variation due solely to x-ray counting statistics).

In the case of a multi-element sample that contains elements at major, minor, and trace concentrations,from the previous comments it should be clear that x-ray maps of these elements require different pixeldwell times (longer dwell times are required for elements at lower concentrations). It may be useful toselect an area at higher magnification and do a test mapping run to determine what kind of dwell time isneeded. The bottom line is that x-ray mapping of low concentration elements requires mapping runs thatare at least several hours in length.

Important Point Concerning X-ray Peak Overlap

In quantitative EDS analysis, the EDS spectrum is digitally filtered and (in the case of linear least squaresfitting) fitted relative to the standard spectral references. This fitting procedure essentially removes thecontinuum by means of a top-hat digital filter, and removes spectral peak overlaps by means of thechannel-by-channel least squares routine. It is important for you to understand that none of this fancy stuffis done when doing x-ray mapping. Any x-ray peak that is present in the region of interest of anotherelement will contribute counts that will show up in the x-ray map of that element. Typical overlaps involvethe transition elements where the K-beta line of an element directly overlaps the K-alpha line of the nexthigher atomic number element (i.e. Ti Kb on V Ka, ...Fe Kb on Co Ka etc.). The implication is that a mapfor Co acquired on pure Fe metal will show counts that are due entirely to the Fe Kb overlap at the Co Kapeak position. There are many other overlaps involving L and M family x-ray lines; it is suggested that youacquire some EDS spectra using the DTSA program if you suspect a peak overlap problem. The bottomline is that you should be aware of the possibility of overlaps in your mapping.

Important Point Concerning Dynamic Range of 8-bit X-ray Maps

NIH Image allows you to acquire images to 16-bit depth, but can only display 8-bit images (see the manualfor further info). The implication of this is that all x-ray counts must be scaled to an 8-bit number (0-255)at each pixel in the image. If more than 255 counts are obtained at a pixel, the number is divided by 2 untilit is in the 0-255 range. The worst case scenario is when you are attempting to map a sample that has a lowand high concentration of an element; the pixels containing counts from high concentrations will requirerescaling of the image and result in the loss of information in the pixels that have only a few counts for thatelement. This is because all the pixels are divided by 2 in order to rescale, and at some point integertruncation and round-off result in zero counts in a pixel that previously contained a positive number. Thesolution to this problem is to try to avoid areas of the sample that have a higher concentration of an elementthat you are trying to document a low concentration map of. These comments also apply to situationswhere you are trying to discriminate small differences in concentration of an element; if even one pixel is

Page 20: Digital Imaging and X-ray Mapping Using NIH Image

counted that has a high concentration of this element, then you lose the significant counts that previouslydiscriminated these pixels apart.

Important Point Concerning Continuum vs. Characteristic X-rays

Any element produces continuum x-rays due to slowing down of the electron by the coulombic field ofelectron shells in the target atom. The region of interest chosen for a particular element will also includecontinuum x-ray counts in addition to the characteristic x-rays that you are trying to count. There are twoimplications that you should be aware of. First, you will observe a finite number of x-ray counts whenthere is actually zero concentration of the element you are mapping -- this is simply the detection limit,meaning that the peak is at the same intensity as the background. Unless you subtract background countsvia the use of the background ROI’s shown above, you will see a background noise level in your map (thiscan be removed by image processing, by the way). The second point is much more insidious. Thecontinuum x-ray production is a function of the average atomic number of a phase, so that two adjacentphases with different average atomic number will produce different continuum x-ray intensity. If a map isacquired using a region of interest that samples a portion of the EDS spectrum that is sensitive to thedifference in continuum intensity, the map will show an apparent difference in x-ray intensity that may beinterpreted as a real concentration variation between the two phases.

Page 21: Digital Imaging and X-ray Mapping Using NIH Image

Copying Image Files to Another Computer

Images can be removed from this computer in the following ways.

1. You may copy your images from this computer to your own Macintosh using the chooser. For this towork, you must have your Macintosh on the network at Caltech, and also have file sharing enabled with theappropriate user name and password if necessary. See your Macintosh documentation if you do notunderstand what this means.

2. Use the Fetch program on this Macintosh to transfer your images via FTP to your group or departmentworkstation. You must have an account on your workstation, or anonymous FTP must be enabled on yourworkstation. If you have the shareware program Netpresenz, you can setup your Macintosh as an FTPserver, and use Fetch to copy files to your Macintosh much like using the chooser. If you are using FTP totransfer the images to another Mac, use “Automatic” transfer mode, but if you are sending the images to aPC or a UNIX computer, you may need to use “Binary” transfer mode. The “Automatic” mode copies theMacintosh resource fork and the data fork to the destination (this contains the icon, creator id, and otherinformation).

3. Copy your images to a Zip 100 meg disk (you must buy the disk). The DAF currently has a Zip 100drive for a Macintosh only.

See Lab Manager for further details if you need to use these options.