DataTools > 2008 Program > Calendar > Intro Meeting > ImageJ Stacking Technique
NASA's Earth Observatory frequently posts a single image file that shows both a before-and-after image of the same place. Follow this technique to create two separate images from the single file so you can put them into a stack. Go to Earth Observatory's before-and-after images of springtime flooding in Argentina
  1. Read through the story to learn about the events responsible for the differences in the two images.
  2. Download the single image file that shows both images. Save it in an obvious place such as your Desktop or Downloads folder.
    Right-click on the image (Mac users press ctrl-click) and choose the option your browser offers to save the image to your own computer.
    How to download
  3. Launch ImageJ and open the file from within it.

    From the ImageJ menu, choose File then Open... then navigate (browse) to where you saved the image.

    Select File then Open
  4. From ImageJ's toolbar, choose the rectangular selection tool. Place your cursor on the image and drag a selection box over the top picture. Use the arrow keys to move the selection into the upper left corner of the image. Use the handles to adjust the selection size to include the date below the image.
    Rectangular selection of top image
  5. From ImageJ's menu bar, choose Image –> Duplicate... and accept the default name.
  6. Click the large image again to activate it. Click inside the yellow selection rectangle and drag it down over the bottom image. It's essential that the selection rectangle remains the same size.
    Drag selection rectangle down to bottom image
  7. Choose Image –> Duplicate... and accept the default name again.
  8. Once you have the two images in separate windows that are the exact same size, activate the large image again and close it.
  9. From ImageJ's menu bar, choose Image –> Stacks–> Convert Images to Stack
    Download the stacked images ( 1.1MB Apr10 07). Open the file from within ImageJ.