Satellite Observations in Science Education

Contrast Stretch

Description:

This simple RCO provides interactive contrast stretching on an image. This can sometimes make features not easily visible in the original image stand out better.

The instructor must provide an image in a standard web format (such as .gif or .jpg).

The sample XML file provided below must be populated with appropriate data (in this case, the image file name is all that is required) and placed in the same location as the HTML file used to access and present this RCO.


Example usage:

This link will bring up a separate browser window with a page that uses this RCO.


Snapshot of sample use:

Example use of Contrast Stretch RCO


How to use

  1. Create an HTML file which will reference and load this RCO. Cut-and-paste the sample applet tag below and insert at the location in the HTML file you want to use the RCO.
  2. Create an XML file with input data based on the example below, referencing the image file you wish to stretch.
  3. Download the RCO by right-clicking the download link below and choosing "Save Link Target As..."
  4. Edit the applet tag parameters to reference your new file names, and test.


Create your XML file one of two ways:

  Sample Contrast Stretch XML file

  Generate your XML automatically with this link.


This RCO bundled as a jar file


home pageHome Comments? Contact us    This project is sponsored by NASA  NASA logo