Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a)The first task is to build a Gaussian pyramid for an input image. Create a routine pyramid = MakePyramid(image, minsize) that creates a pyramid of

a)The first task is to build a Gaussian pyramid for an input image. Create a routine pyramid = MakePyramid(image, minsize) that creates a pyramid of images. It returns the original image as well as a sequence of images of reduced size, using a scale factor of 0.75 from one level to the next. The pyramid should stop when any further reduction in size will make a dimension of the image smaller than minsize. You can use the Matlab routineimresize(image, 0.75, 'bicubic') to reduce the image size at each step (bicubic interpolation avoids all aliasing problems).

b)In order to find instances of a template in a pyramid, write a function FindTemplate(pyramid, template, threshold). It finds all locations of the template in the pyramid at which the normalized cross correlation is above the given threshold. You can use Matlabs normxcorr2 function.

c)In order to draw detected locations, write a Matlab function ShowFaces. It generates and displays boxes using lines. You can use the Matlabs line function to draw lines (i.e., line([10 10], [20 100], 'color', 'r')).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions