What setting did you use for findhomography

Assignment Help Computer Engineering
Reference no: EM131098094

E27: Computer Vision Spring 2016 - HOMEWORK 2

Planar image stitching.

Obtain two or more separate images of a planar (or near-planar) scene and stitch them together by finding the perspective transformation(s) that map corresponding points to each other. For instance, you could try mapping the first image onto the image plane of the second image below to try to get a front-on view of the entire whiteboard:

You can find a small selection of images to stitch together (including the whiteboard images above) on the course website. Of course, you can also take your own images - just make sure you're photographing a planar object!

Here are the steps you will want to follow:

a. Identify a set of n corresponding points in two or more images. I suggest using a MultiPointWidget from cvk2 to help you manage your point sets. Note that this widget is capable of both saving and loading sets of points, so while developing and testing your program, you will be spared the need to click on all of the points from scratch on each run of the program. Check out cvkdemo.py from the starter code for details.

b. Find the transformation(s) that map each set of n points onto the image plane of one particular image. Although you could implement the homogeneous least-squares technique that we discussed in class, OpenCV has already done it for you with the findHomography function.

Note that findHomography expects the point sets you supply to have the shape (n, 1, 2), and to have 32-bit floating-point format. If your list of coordinates is in the numpy array named p, you can put it into the correct format with the code p.astype(numpy.float32).reshape((-1, 1, 2)). See the numpy documentation for more details about data types and array shapes.

c. Use the OpenCV warpPerspective function to compose the images together into a single scene. Look at the transrot.py and t_homog.py sample programs for example usage. Please make sure that the merged image is sufficiently large to show all of the content from both input images, and be aware that you may need to add some extra translation in order to fit everything into the merged image (see t_homog.py).

d. Use the OpenCV imwrite function to save your merged image.

What to turn in:

You should turn in the following:

  • Full source code for your program.
  • Images before and after stitching.
  • Text files specifying the points for each "before" image. Each text file should consist of n lines, where each line specifies an x and y coordinate separated by a space. This format is the one generated by the MultiPointWidget mentioned above.
  • A short (1/2 - 2 page) PDF write-up describing your approach. Do the images align well? If not, why? Does adding more points to the set improve alignment? What setting did you use for findHomography? Is there a particular setting that worked better than the others?

Attachment:- Homography Images.zip

Reference no: EM131098094

Questions Cloud

Reference to relevant academic and practitioner literature : With reference to relevant academic and practitioner literature write a report on the latest debate on gender pay gap. Use real­ life examples to enrich your report.
Describe challenges inherent in implementing kind of changes : Identify the types of organizational values and norms that are likely to be found in the low-cost Art Depot stores prior to their acquisition by Creative Colors. Then, identify the types of organizational values and norms that would encourage empl..
Textbook prices across the three different outlets : At 0.01 level of significance, can we conclude that there is a difference in textbook prices across the three different outlets? Show all the steps of the hypothesis testing.
Describe the significance of an information system : Question 2.2.  What are the differences between the international marketing research process and the domestic research process. Please explain with examples.
What setting did you use for findhomography : write-up describing your approach. Do the images align well? If not, why? Does adding more points to the set improve alignment? What setting did you use for findHomography? Is there a particular setting that worked better than the others
Briefly describe the key issue in adolescent sleep research : Briefly describe the key issue in adolescent sleep research you selected. Then suggest one solution that may remedy the issue you selected. How does your learning this week relate to your own sleep experiences?
What evidence do you see in your own life : What evidence do you see in your own life that confirms stages inMaslow's hierarchy? Does your own experience suggest an innate tendency towardself-actualization?
Discuss the nature of the obstacles you might encounter : Discuss the nature of the obstacles you might encounter at the divisional, functional and individual levels as you attempt to introduce revolutionary change to redesign work processes across functional boundaries. What type of support might you al..
Focus on one human-made cause and one natural cause : Then, share two key learnings from this course related to your Discussion thread topic and explain why they are important. Finally, describe one action item you might pursue to help with the Earth's preservation and why.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Creating the c program

Write down a program which accepts a name for example, chocolate bluberries price per pound, and number of the pounds sold in average month .

  Write down the definitions for a double-stack structure

Write down the definitions for  a double-stack structure

  A java application that can hold five doubles in a array

Write down a Java application that can hold five doubles in an array, and display the doubles from first to last, and then display the doubles from last to first. Use the following logic for BubbleSort to sort and display the array in sequence.

  Write a function playexpert

Write a function playExpert(marbles) that given a number of marbles returns the number of marbles that the computer will take following the expert mode rules.

  Create a structure student containing character array

Create a structure STUDENT containing character array firstName[30], character array lastName[30], integer SID, integer array with 4 scores.

  What are the business rules

What is 1 tier, 2 tiers and 3 tiers and N tiers in database architecture? could you offer an example on each tier.

  Define current and emerging nonvolatile ram technologies

List and explain current and emerging nonvolatile RAM technologies. What advantages are potentially offered by the emerging technologies as compared to current flash RAM technology?

  Questionconverting a networka recent university graduate

questionconverting a networka recent university graduate gets a job as network administrator for a mid-size company

  What percentage of the books is green

What percentage of the books is green and what is the 90% confidence interval for the percentage of green books?

  You are the communications coordinator for a national drug

you are the communications coordinator for a national drug manufacturer. recently there have been reports of

  Create a program to read this list of prices

Wrtie down a program to read this list of prices and the sales table and calculate total dollar sales for each salesperson and the total dollar sales for all salespersons.

  The calling statement should then print out

Using conditional operator and the cal_days_in_month (CAL_GREGORIAN, int month, int year) function, find out  the number of days in the current month and output to the browser whether it is a normal month or a leap month (29 days).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd