Visual Media Processing Using MATLAB Beginner's Guide
eBook - ePub

Visual Media Processing Using MATLAB Beginner's Guide

  1. 326 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Visual Media Processing Using MATLAB Beginner's Guide

About this book

In Detail

Whether you want to enhance your holiday photographs or make a professional banner image for your website, you need a software tool that offers you quick and easy ways to accomplish it. All-in-one tools tend to be rare, and Matlab is one of the best available.

This book is a practical guide full of step-by-step examples and exercises that will enable you to use Matlab as a powerful, complete, and versatile alternative to traditional image and video processing software.

You will start off by learning the very basics of grayscale image manipulation in Matlab to master how to analyze 3-dimensional images and videos using the same tool. The methods you learn here are explained and expanded upon so that you gradually reach a more advanced level in Matlab image and video processing.

You will be guided through the steps of opening, transforming, and saving images, later to be mixed with advanced masking techniques both in grayscale and in color. More advanced examples of artistic image processing are also provided, like creating panoramic photographs or HDR images. The second part of the book covers video processing techniques and guides you through the processes of creating time-lapse videos from still images, and acquiring, filtering, and saving videos in Matlab.

You will learn how to use many useful functions and tools that transform Matlab from a scientific software to a powerful and complete solution for your everyday image and video processing needs.

Approach

Written in a friendly, Beginner's Guide format, showing the user how to use the digital media aspects of Matlab (image, video, sound) in a practical, tutorial-based style.

Who this book is for

This is great for novice programmers in any language who would like to use Matlab as a tool for their image and video processing needs, and also comes in handy for photographers or video editors with even less programming experience wanting to find an all-in-one tool for their tasks.

Trusted byΒ 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Visual Media Processing Using MATLAB Beginner's Guide


Table of Contents

Visual Media Processing Using MATLAB Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Time for action – heading
What just happened?
Pop quiz – heading
Have a go hero – heading
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Basic Image Manipulations
Getting acquainted with the MATLAB environment
Default subwindows of the environment
The Command Window
The Current Folder window
The Details window
The Workspace window
The ribbon
The HOME tab
The PLOTS tab
The APPS tab
The editor
The EDITOR window
Importing and displaying an image
Importing and displaying an image using the command line
Time for action – importing and displaying an image
What just happened?
Importing and displaying an image using imtool
Time for action – using imtool to extract useful information
What just happened?
Applying geometric transformations
Performing image rotation
Time for action – rotating an image and displaying the result
What just happened?
Performing image mirroring
Time for action – mirroring an image and displaying the result
What just happened?
Have a go hero – using flipdim and comparing the results
Resizing an image
Cropping an image
Saving an image
Time for action – cropping and resizing an image, then saving it as BMP
What just happened?
Have a go hero – tailoring an image to suit your needs
Pop quiz – image processing in MATLAB
Summary
2. Working with Pixels In Grayscale Images
Accessing image pixels and changing their values
Changing the pixel values of a square area using loops
Changing the pixel values of a square area using indexing
Writing and using scripts
Time for action – whiten an area and blacken another
What just happened?
Thresholding an image
Image thresholding using for loops
Image thresholding using indexing
Image thresholding using im2bw
Image thresholding using an automatic threshold
Calculating and displaying histograms with imhist
Histogram equalization for contrast enhancement
Contrasting enhancement using imadjust
Contrasting enhancement using imcontrast
Adaptive histogram equalization using adapthisteq
Custom functions for complex tasks
Time for action – using imtool to pinpoint differences
What just happened?
Have a go hero – writing a function to enhance an image area
Restoring old photographs
Time for action – restoring your ancestors' photographs
What just happened?
Pop quiz – contrasting enhancement methods
Summary
3. Morphological Operations and Object Analysis
The importance of binary images
Time for action – understanding the value of thresholding
What just happened?
Enlarging and shrinking a region of interest
Time for action – using dilation and erosion to refine ROIs
What just happened?
Choosing a structuring element
Using strel to generate structuring elements
Altering structuring elements from strel to suit our needs
Time for action – ROI refinement using strel
What just happened?
Have a go hero – write a function to for local dilation/erosion
More morphological operations
Manually defining a non-rectangular ROI
Using roipoly to make a mask
Using imfreehand to make a mask
Time for action – making a custom object eraser function
What just happened?
Analyzing objects in an image
Detecting edges in an image
Detecting corners in an image
Detecting circles in an image
Pop quiz – object analysis pros and cons
Summary
4. Working with Color Images
An introduction to color image processing
Basic color image manipulations
Setting a rectangular area to a specified color
Time for action – repainting two areas in a color image
What just happened?
Thresholding color images
Time for action – isolating the red pixels in an image
What just happened?
Achieving color masking
Time for action – color isolation
What just happened?
The importance of different color spaces
Time for action – color space transformation
What just happened?
CIE-L*a*b* for more efficient color masking
Time for action – color isolation using CIE-L*a*b*
What just happened?
Have a go hero – writing a function for region color isolation
Fixing illumination issues in RGB color images
Fixing illumination issues in CIE-L*a*b*
A practical example – red eye reduction
Time for action – writing a function for red eye reduction
What just happened?
Taking advantage of eye circularity
Time for action – automating our function for red eye reduction
What just happened?
Pop quiz – working with color
Summary
5. 2-Dimensional Image Filtering
An introduction to image filtering
Processing neighborhoods of pixels
The basics of convolution
The ugly mathematical truth
Time for action – applying averaging filters in images
What just happened?
Alternatives to convolution
Using imfilter
Creating filters with fspecial
Different ways to blur an image
Time for action – how much blurring is enough
What just happened?
Time to make art using blurring
Time for action – creating the bokeh effect in an image
What just happened?
Have a go hero – add a motion effect in your image
Removing noise using blurring
Time for action – trying to remove different types of noise
What just happened?
The importance of the median filter
Time for action – removing salt & pepper with medfilt2
What just happened?
Have a go hero – denoising real images
Bringing back the details
Time for action – enhancing the edges in our images
What just happened?
Brighten up the lights
Time for action – brighten up the lights in our soldier picture
Pop quiz – image filtering in 2-dimensions
Summary
6. Mixing Images for Science or Art
The importance of mixing or combining images
Using multispectral imaging
Loading and manipulating the multispectral images
Time for action – visible spectrum from a multiband image of Rio
What just happened?
Time for action – working with invisible spectrums
What just happened?
Creating composite images
Using imfuse to create a composite image
Using imshowpair to inspect a composite image
Time for action – cloning the seagull
What just happened?
Have a go hero – playing Warhol with your pictures
One step beyond – blending selected image regions
...

Table of contents

  1. Visual Media Processing Using MATLAB Beginner's Guide

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere β€” even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Visual Media Processing Using MATLAB Beginner's Guide by George Siogkas in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.