Skip to content

About

This is an interactive courseware module for use in introductory biology classrooms. This module teaches the basics of image processing using biological images including an image of plants and images of blood smears as viewed under a microscope. It includes several live scripts.

Resources

Contributing

Security policy

Stars

4 stars

Watchers

2 watching

Forks

Repository files navigation

Biological Sciences: Image Processing

View on File Exchange Open in MATLAB Online

MATLAB Versions Tested

Curriculum Module

Created with R2025a. Compatible with R2025a and later releases.

Information

In this module, we will learn how to import, preprocess, and segment biologically relevant images using MATLAB®.

Background

You can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside class. This module will teach students how to apply image processing methods to biologically relevant data. We will explore image data storage and image segmentation with plant images and then count the number of red blood cells.

The instructions inside the live scripts will guide you through the exercises and activities. Get started with each live script by running it one section at a time. To stop running the script or a section midway (for example, when an animation is in progress), use the EndIcon.png Stop button in the RUN section of the Live Editor tab in the MATLAB Toolstrip.

MATLAB Compatibility

These plain-text live scripts require MATLAB R2025a or newer. For MATLAB R2024b or older, download the legacy MLX version.

Contact Us

Contact the MathWorks Educator Content Development Team if you would like to request assistance, provide feedback, or if you have a question.

Prerequisites

Make sure you're familiar with the basics of using MATLAB by going through the MATLAB Onramp before continuing. You'll need to utilize the Image Processing Toolbox for this module. You may want to consider going through the Image Processing Onramp for further practice.

Getting Started

Accessing the Module

On MATLAB® Online™:

Use the OpenInMO.png link to download the module. You will be prompted to log in or create a MathWorks account. The project will be loaded, and you will see an app with several navigation options to get you started.

On Desktop:

Download or clone this repository. Open MATLAB, navigate to the folder containing these scripts and double-click on BiosciencesImageProcessing.prj. It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start.

Ensure you have all the required products (listed below) installed. If you need to include a product, add it using the Add-On Explorer. To install an add-on, go to the Home tab and select AddOnsIcon.png Add-Ons > Get Add-Ons.

Products

MATLAB® is used throughout. Tools from the Image Processing Toolbox™ are used frequently as well.

Scripts

flowers.jpg
In this script, students will...
$\bullet$ import, manipulate, and segment a plant image in MATLAB, and learn how images are stored
Academic disciplines
$\bullet$ Biology

FluorescentCells.jpg
In this script, students will...
$\bullet$ segment images by shape and count the number of cells on a microscope slide image of red blood cells
Academic disciplines
$\bullet$ Biology

Cells.png
In this script, students will...
$\bullet$ count the number of healthy cells in an image
Academic disciplines
$\bullet$ Biology

Instructor Resources

Instructor guides contain paired solutions and student-distribution tools.

License

The license for this module is available in the LICENSE.md.

Related Courseware Modules

Courseware
Location
Biosciences: Working With Data
Penguins.jpeg
Available on:
OpenInFX.png
OpenInMO.png
GitHub
Biosciences: Statistical Methods
Gentoo.jpeg
Available on:
OpenInFX.png
OpenInMO.png
GitHub
Biosciences: Machine Learning
Rose.jpeg
Available on:
OpenInFX.png
OpenInMO.png
GitHub
Biosciences: Genetics
DNA_helix.png
Available on:
OpenInFX.png
OpenInMO.png
GitHub

Or feel free to explore our other modular courseware content.

Educator Resources

Contribute

Looking for more? Find an issue? Have a suggestion? Please contact the MathWorks Educator Content Development Team. If you want to contribute directly to this project, you can find information about how to do so in the CONTRIBUTING.md page.

Help us Improve

Share your feedback to help us improve this module.

© Copyright 2023-2026 The MathWorks, Inc.

About

This is an interactive courseware module for use in introductory biology classrooms. This module teaches the basics of image processing using biological images including an image of plants and images of blood smears as viewed under a microscope. It includes several live scripts.

Resources

Contributing

Security policy

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages