Skip to content

MathWorks-Teaching-Resources/Computer-Vision-Basics

Repository files navigation

Computer Vision Basics

View on File Exchange or Open in MATLAB Online

MATLAB Versions Tested

Curriculum Module

Created with R2025a. Compatible with R2025a and later releases.

Information

This curriculum module contains interactive MATLAB® live scripts centered on the fundamentals of image segmentation.

Background

You can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside class. This module covers image segmentation techniques, covering edge detection, region-based and clustering methods, the integration of texture and color, optical flow algorithms, and practical application scenarios to enhance segmentation accuracy and effectiveness. It also includes examples.

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.

Contact Us

Solutions are available upon instructor request. Contact the MathWorks teaching resources team if you would like to request solutions, provide feedback, or if you have a question.

Prerequisites

This module assumes knowledge of first year calculus, linear algebra. There is minimal MATLAB knowledge required for these scripts, but you can use MATLAB Onramp as a resource to acquire familiarity with live scripts and MATLAB syntax.

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 ComputerVisionBasics.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™, Computer Vision Toolbox™, Signal Processing Toolbox™ and Statistics and Machine Learning Toolbox™ are used frequently as well.

Scripts

image_3.png
In this script, students will...
$\bullet$ Examine three image segmentation methods.
$\bullet$ Work through step-by-step examples of applying image segmentation.
$\bullet$ Distinguish appropriate image segmentation technique based on scenario.
Academic disciplines
$\bullet$ Robotics
$\bullet$ Computer Vision
$\bullet$ Image Processing
image_4.png
In this script, students will...
$\bullet$ Identify and describe the characteristics and sources of edges.
$\bullet$ Characterize edges in 1D and 2D.
$\bullet$ Detect edges amid noise.
Academic disciplines
$\bullet$ Computer Vision
$\bullet$ Image Processing
$\bullet$ Medical Imaging

image_5.png
In this script, students will...
$\bullet$ Evaluate edge detection methods.
$\bullet$ Apply edge detection techniques.
Academic disciplines
$\bullet$ Computer Vision
$\bullet$ Image Processing

RegionSegmentation.mlx (planned)

image_6.png
In this script, students will...
$\bullet$ Explore region segmentation techniques.
$\bullet$ Compare and contrast including histogram, k-means clustering, and graph-cut segmentation techniques.
Academic disciplines
$\bullet$ Computer Vision
$\bullet$ Image Processing

OpticalFlow.mlx (planned)

image_7.png
In this script, students will...
$\bullet$ Examine assumptions underlying optical flow theory.
$\bullet$ Implement optical flow algorithms for motion detection.
$\bullet$ Compare and contrast optical flow techniques.
Academic disciplines
$\bullet$ Computer Vision
$\bullet$ Image Processing

License

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

Related Courseware Modules

image_8.png
Available on:
OpenInFX.png
OpenInMO.png
GitHub

image_11.png
Available on:
OpenInFX.png
OpenInMO.png
GitHub

image_14.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 teaching resources team. If you want to contribute directly to this project, you can find information about how to do so in the CONTRIBUTING.md page on GitHub.

© Copyright 2025 The MathWorks, Inc.

About

This curriculum module provides an introduction to image segmentation in computer vision.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages