Chandra EducationChandra Education
Chandra Education Home PageInstallation PageLearning ds9 PageImages & Activities PageEvaluation Page
Learning ds9: Overview | Part 1 | Part 2 | Part 3[Contact Help] [Chandra Public Page]
o


Part 1 Section Contents
Part 1: First Look Qualitative Analysis using ds9

Learning to Use the ds9 Imaging System

Part 1: First Look Qualitative Analysis using ds9

Image Manipulation & Pixel "Value"

Doesn't changing the colors and/or contrast change the data? Not at all. Try this:
  • Change the color map with the color menu, or change the contrast by moving over the image with the right mouse button pressed. Go back to the x,y location of 4158,4398 in the "physical" line. What "value" is displayed? Again it is 92. Why is this?
  • ds9 is not changing the value of each pixel when you change colors. Rather, it is simply changing the color assigned to that given number of photons. When the grey colors are used, then ds9 assigns grey colors to pixel values ranging from 0 (black) to 255 (white)
  • When the contrast is changed, the assignment of colors is changed, not the data values. You can see the rough assignment of color to pixel value in the color bar under the image.
  • Watch what happens to the color bar while you change the contrast (right mouse button) or the whole color scheme (color menu).
  • The color bar can be roughly divided into 256 pieces, each of which is assigned a color corresponding to 256 possible pixel values. What happens if a pixel has more than 256 X-rays and therefore a value of more than 256? (see More on Scaling in the box below)
More on Scaling

Binning Pixel Values by Scaling

In order to display a large range of pixel values with a limited number of color levels (typically 256), image data must be binned according to some scaling function. A number of different functions are supported, including:


Cas A bb
Linear Scaling: The range of pixel values is divided by the number of color levels to determine the range of pixel values for each color level. The fixed range is applied to mapping all pixel values between the minimum and maximum pixel value.



Cas A
Square Root Scaling:  Imagine that you have two pixels with intensity values of 25 and 100. If these were displayed with a linear scale, the brighter one would be 4 times the intensity of the fainter one. But if you use square root scaling, the relevant values are 5 (the square root of 25) and 10 (the square root of 100). Now, the brighter pixel is just 2 times the intensity of the fainter one. So you have effectively emphasized the faint values of the image in this map!

Try experimenting with the various scaling functions, and see whether they emphasize the bright or faint features of the displayed images. This is fun!


Next: Looking at an X-ray image: Closing an Image & Summary



Last updated: 05/11/05

bar

Chandra Ed. Home Page | Installation | Learning ds9 | Activities & Images | Evaluation
Learning ds9: Overview | part 1 | part 2 | part 3
Resources: ds9 | Chanda Public Information & Education

Harvard-Smithsonian Center for Astrophysics
60 Garden Street, Cambridge, MA 02138 USA
Phone: 617.496.7941  Fax: 617.495.7356
Comments & Questions?
cxcedu@cfa.harvard.edu

This site was developed with funding from NASA under Contract NAS8-39073.