Oyster image size analysis protocol
protocol
image
oyster
Protocol for analyzing size in field images of oyster outplants
I did not use AI to conduct the work detailed here and did not use AI to write this notebook post.
Overview
This protocol details size analysis of oysters from images taken in the field. This protocol is based on Noah Kreb’s protocol detailed in his lab notebook.
A similar video protocol of oyster image analysis is available here.
Requirements
Before beginning, download ImageJ/Fiji onto your computer.
Set up a data sheet
- Set up a datasheet that has the following columns (add more as needed):
- Project or site
- Date image was taken
- Initials
- Image name
- Tag ID
- Oyster
- Measurement
- Value mm
- Notes
Open an image
- Download images to analyze onto your desktop
- Open Fiji/ImageJ
- Click File > Open > select image you wish to analyze

Annotate oyster individual numbers
- Click the “multi point” tool that looks like a group of cross hairs on the tool bar
- Double click to adjust settings
- Type = “Hybrid”
- Color = “Magenta”
- Size = “XXL”
- Check “label points”
- Click “OK”
- Now navigate your cursor to the first oyster and click. You will see a point and a number added to the oyster. Repeat for all oysters in the image.
- Use the command + “+” or command + “-” button to zoom in and out of the image.
- At the end, double click the “multi point” tool button again. You will see a “counter” that displays the total number of oysters you labeled in the image.
- On your datasheet, enter the correct number of lines for the total number of oysters in the image (e.g., enter 1 through 84 in the spreadsheet if you have 84 total oysters).

Add points as an overlay
Start here if an image is already annotated!
Before moving on we need to add the points as an overlay.
- Click Image > Overlay > Add selection
- Click Edit > Selection > Select None
- Click the straight line tool to proceed to the next step
Set scale bar
- Click the straight line tool on the toolbar.
- Zoom into the scale bar/caliper.
- Draw a line between two major deviations (10 mm) or along another length that you can see on the scale bar in the image. On our field images, we use this caliper. Sometimes resolution is low - here is a line representing 10 mm.

- Click Analyze > Set Scale
- Enter Known Distance as 10 (or your custom length)
- Enter units as mm
- Zoom back out and then zoom in on Oyster #1

Measure length and width
- Now, measure the max length and width for each oyster in the image in order.
- Using the straight line tool, draw a line on the maximum length of the oyster.
- Click Command + M to measure. A measurement window will pop up with your measurement.
- Length is measured by default. If you want to see other measurements, then right click on the measurement window and select “Set Measurements”. Check the measurements you want.
- Then draw a line for the maximum width of the oyster.
- Click Command + M
- Repeat for all oysters

Width:

Length:

Record data
- Return to your spreadsheet.
- Copy all of the measurements in your measurement window
- Paste into the dataframe
- Record any notes for any problems or notes you have for the image
- Proceed to the next image!
