rows of sweetpotato beds in a field

Research Protocol

Measuring Canopy Cover with ImageJ 

Sweetpotato: Measuring Canopy Cover with ImageJ

Authors: Jessica Weaver1, Laura Schulz1, Jordan White1, Berton Miginigad2, Carol Miles1 
Affiliation: 1Washington State University Northwestern Washington Research and Extension Center, Mount Vernon; 2College of Micronesia, Federal States of Micronesia
https://vegetables.wsu.edu/sweetpotato/
December 2025 

Introduction 

Canopy cover is an important measure of sweetpotato plant growth and development. Canopy cover can be measured throughout the growing season by taking photos of the plants and analyzing them using ImageJ, a software freely available and relatively easy to use. Greater canopy cover may indicate a sweetpotato cultivar can better outcompete weeds. Canopy cover tends to increase throughout the growing season, then decrease slightly near the end of the growing season due to older leaves naturally dying. The ImageJ analysis works well for plots with black plastic mulch, and the color threshold settings described below are for black plastic mulch. For bare soil plots, more complex adjustments to the color threshold settings may be required.

Supplies 

  • Ruler – for setting the scale in ImageJ 
  • Meter stick – for ensuring photos are taken at the same height each time 
  • White board with marker, or white paper – for writing the plot number being photographed 
  • Cell phone – for taking photos 
  • Computer with ImageJ software – to measure canopy cover of photos, available for free at imagej 

Experimental plot set up

Shortly after planting sweetpotatoes, place two flags to mark the data area in each plot – these plants will be photographed for canopy cover data. Collect canopy cover data from the same size area in the center of each plot; this will be 125 cm row-length when the camera is 1 m above the plot. For example, this will be 6 plants in an experiment with 20 cm (8 inch) spacing, 5 plants for 25 cm (10 inch) spacing, and 4 plants for 30 cm (12 inch) spacing.   

In the field 

  1. Pull all weeds in the data collection area, including in the planting holes if grown with mulch, and throughout the row if growing in bare soil. 
  2. Place a label, such as a whiteboard or piece of white paper, with the date and plot number on the edge of the row or bed so it is in the photo, but not in the data collection area.   
  3. Place a ruler next to the center plant in the data collection area. This will be used to calibrate the ImageJ software. This only needs to be done for the first photo.
  4. Use a meter or yard stick to set the distance above the soil for each photo and place the phone at this height. Remove the meter stick, hold phone stationary and take a photo from 1 meter above the soil (Figure 1). 
A row of sweetpotato plants on a mulched bed and a wooden ruler next to the plants
Figure 1. Photo of sweetpotato bed in the field with a ruler for scale in the bed next to the plants and a labeled white board outside the data area, to indicate date of measurement and plot number. White flags indicate data will be collected from these plants.

On the computer 

  1. Rename all photos so they have identifying file names. Use the naming convention “YYYY.MM.DD_[Trial Name] _[Plot Number]”. For example, “2025.07.15_Variety_L05”.  
  2. Crop all photos to the edges of the black plastic mulch or edges of the bed, if mulch is not used (Figure 2). Optionally, flags can be used to demarcate data collection area.
close-up of A row of sweetpotato plants on a mulched bed and a wooden ruler next to the plants
Figure 2. Photo of sweetpotato bed, cropped to the data collection area: between the flags and along the edges of the mulch. 

ImageJ analysis

  1. Open ImageJ. Make sure ImageJ is set up correctly; you only need to do this for the first photo in each session. To set up; 
    • Go to “Edit” –> “Options” –> “Colors” and set the foreground color as white and the background color as black (Figure 3).  
    • Go to “Analyze” –> “Set Measurements” and make sure only the following are selected: Area, Area Fraction, Limit to Threshold (Figure 4).
Screenshot of image analysis in the ImageJ software showing the edit, option, and color buttons and the foreground, background, and selection color settings on a blue background
Figure 3. Screenshot of image analysis in the ImageJ software showing the edit, option, and color buttons. The foreground is set to white, background is set to black, and selection is set to yellow.
Screenshot of image analysis in the ImageJ software showing the analyze and set measurements buttons and required settings on a blue background
Figure 4. Screenshot of image analysis in the ImageJ software showing the analyze and set measurements buttons. The measurement settings for area, area fraction, and limit to threshold are selected.
  1. Open your first photo in ImageJ by clicking on “File” –> “Open” and select the photo you want to start with.  
  2. Using this photo, set the scale; you only need to do this for the first photo in each session.
    • Set the scale by clicking on the straight-line icon along the top bar, then clicking and dragging to make a line along the edge of the ruler. 
    • You may need to zoom in (Image –> Zoom –> In) to make sure you are drawing the line exactly along a known area of the ruler (e.g. 30 cm). 
    • Click on “Analyze” –> “Set Scale” and for known distance, type in the length you drew the line across (e.g. 30) and under unit put “cm”. Make sure “Global” is checked (Figure 5). Click “OK”. 
Screenshot of image analysis in the ImageJ software. The straight-line icon is circled, and a straight line in yellow has been applied along the center of the ruler in the photo.
Figure 5. Screenshot of image analysis in the ImageJ software. The straight-line icon is circled, and a straight line in yellow has been applied along the center of the ruler in the photo.
  1. Click on “Image” –> “Adjust” –> “Color Threshold”. You will want to adjust the sliders until only the sweetpotato plants are covered in red (Figure 6). 
Screenshots of image analysis in the ImageJ software showing the image, adjust, and color threshold buttons (left) and the threshold color panel for the image: sweetpotato plants on a mulched bed (right).
Figure 6. Screenshots of image analysis in the ImageJ software showing the image, adjust, and color threshold buttons (left) and the threshold color panel (right).
  1. Increase the first slider under “Hue” until the ruler is no longer shaded with the ImageJ red. Then decrease the second bar under “Hue” most of the way until much of the background is no longer shaded red, but not so much that the leaves become less shaded (Figure 7).
Screenshot of image analysis in the ImageJ software. The “Hue” sliders are circled and adjusted to exclude the ruler and black mulch for the image: sweetpotato plants on a mulched bed
Figure 7. Screenshot of image analysis in the ImageJ software. The “Hue” sliders are circled and adjusted to exclude the ruler and black mulch.
  1. Increase the first bar under “Saturation” until the remaining highlights on the mulch in the background are no longer included, but not so much that the highlights on the leaves are excluded (Figure 8). 
Screenshot of image analysis in the ImageJ software. The first “Saturation” slider is circled and adjusted slightly to exclude the highlights on the mulch, for the image: sweetpotato plants on a mulched bed
Figure 8. Screenshot of image analysis in the ImageJ software. The first “Saturation” slider is circled and adjusted slightly to exclude the highlights on the mulch.
  1. Decrease the first bar under “Brightness” until the leaves are almost completely shaded, but not so much that the soil in the holes or shadows of the leaves are shaded (Figure 9).
    • For bare soil photos: Click “Process” –> “Binary” –> “Convert to Mask”. Use the paint brush tool to exclude weeds or unnecessary particles.
Screenshot of image analysis in the ImageJ software. The first “Brightness” slider is circled and is adjusted to include the leaves of the sweetpotato plant, for the image: sweetpotato plants on a mulched bed
Figure 9. Screenshot of image analysis in the ImageJ software. The first “Brightness” slider is circled and is adjusted to include the leaves of the sweetpotato plant.
  1. Click on “Analyze” –> “Analyze particles”.
    • Set the size to “1–1000” for very small plants or “1–Infinity” for larger plants. 
    • Check “clear results” and “summarize”.   
    • If there are any remaining areas touching the edges of the photo that are shaded but shouldn’t be, check ‘Exclude edges”. However, if any plants are touching the edge of the photo, make sure “exclude edges” is not checked so that those plants will be included.  
    • Click “include holes” if there are spots in the middle of the leaves that are not shaded but should be.  
    • Make sure “masks” is selected next to “Show”. Then click “OK” (Figure 10).   
Screenshot of image analysis in the ImageJ software. The analyze tab is open and analyze particles is selected. The analyze particles window is open, size is set to 1-infinity, circularity is 0.00-1.00, Show is set to masks, clear results and summarize are selected. For the image: sweetpotato plants on a mulched bed
Figure 10. Screenshot of image analysis in the ImageJ software showing the analyze, analyze particles buttons and the settings selected in the analyze particles panel.
  1. A shaded image of the included areas will pop up. Make sure there are no extra spots shaded and the shading is accurately covering the plants. If these issues occur, go back and continue adjusting the threshold color settings or the Analyze particle settings. For example, to get rid of small spots that shouldn’t be shaded, try increasing the lower bound of the size range. A summary box will pop up that shows the total and % Area (Figure 11). 
Screenshot of image analysis in the ImageJ software showing mask of the image being analyzed and a summary that lists the slice, count, total area, average size and percent area, for the image: sweetpotato plants on a mulched bed
Figure 11. Screenshot of image analysis in the ImageJ software showing mask of the image being analyzed and a summary that lists the slice, count, total area, average size and percent area.
  1. Do not close the summary box. All your measurements will show up in this box and they can be conveniently downloaded as an excel file under “File” –> “Save as”.
  2. Open the next photo and repeat steps 10–16.
logos for the united stated department of agriculture (left) and the national institute of food and agriculture (right)

The information in this publication is based upon work that is supported by the U.S. Department of Agriculture, National Institute of Food and Agriculture, under award number G200-25-WB305 through the Western Sustainable Agriculture Research and Education Program under project number WPDP25-003, and Hatch Project WNP0010 Accession 7005372. Any opinions, findings, conclusions, or recommendations expressed in this publication are those of the author(s) and should not be construed to represent any official USDA or U.S. Government determination or policy, and are not meant to endorse any businesses or detract from any not listed.

logo for Western Sustainable Agriculture Research and Education