1 / 12

3.11.13

3.11.13. It's a palindrome!. Announcements. March USACO 2nd to last round last day to take it if busy, can start late too because of CAHSEE tomorrow. Harker Programming Invitational (3/16) Cool prizes! This Saturday. Announcements (registration). Stanford ProCo (5/19) Cool prizes!

Télécharger la présentation

3.11.13

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 3.11.13 It's a palindrome!

  2. Announcements • March USACO • 2nd to last round • last day to take it • if busy, can start late too because of CAHSEE tomorrow. • Harker Programming Invitational (3/16) • Cool prizes! • This Saturday

  3. Announcements (registration) • Stanford ProCo (5/19) • Cool prizes! • Signups are in progress • 6 team max per school • Google Codejam • Somewhat similar to USACO • Series of qualification rounds • Rounds get rapidly more difficult • Registration begins tomorrow

  4. Image Blending

  5. Example Source Target

  6. Image Manipulation • Images are made of pixels • Colors are formed using red, green, and blue subpixels • Brightness • Calculated most simply as sum of red, green, and blue channels • Gradient • Calculated from neighboring pixels • Take differences in brightness • Is a vector: • Magnitude • Direction

  7. Example (cont.) Gradient Final

  8. General Idea • To seemingly blend a pixel into another image, its neighboring pixel values must be known • Need to consider how pixels change with respect to their neighbors • Gradient • Alter the boundary pixels of the foreground image to be equal to corresponding pixels of the background image • Need to make an improved version of the foreground image that blends with the background image

  9. cont. • Copies regions from a source image to a target image • If one of the neighbors is a boundary pixel, its value is fixed • Keep the transition smooth • Preserve the gradient of the foreground image pixels • The sum of the differences between a pixel and its neighbors • If one of the neighbors is out of bounds of the selection, it is excluded • Done for all pixels within the improved foreground

  10. cont. • Assume there are n pixels in foreground • Need to solve for every pixels • System of linear equations in n variables • n by n matrix • N is very large • Note that the matrix is very sparse • Can use Gauss Jordan Elimination (RREF) • too slow • Use conjugate gradient

  11. Demo Time!

  12. PotW Have fun at Harker Proco~

More Related