1 / 8

SEAM CARVING

Anna Zubel, MOwNiT 2011. SEAM CARVING. Gradienty poziomy i pionowy mogą być znalezione przez różnice centralne (h=1):. Energy Function: . Seams : Szew pionowy : ścieżka od góry do dołu obrazu (jeden piksel w jednym rzędzie ):

maylin
Download Presentation

SEAM CARVING

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. Anna Zubel, MOwNiT 2011 SEAM CARVING

  2. Gradienty poziomy i pionowy mogą być znalezione przez różnice centralne (h=1): Energy Function:

  3. Seams: Szew pionowy : ścieżka od góry do dołu obrazu (jeden piksel w jednym rzędzie): Szew poziomy : ścieżka od lewej do prawej obrazu (jeden piksel w jednej kolumnie):

  4. Seam Cost: suma energii jego pikseli, Optimal Seam: szew o najmniejszej energii Wyznaczanie Optymalnego Szwu: Dokonuje się za pomocą programowania dynamicznego, (na tablicy M „minimalnych energii” [ n x m ] ): First row of M equals to first row (column)of E for i > 1 and j > 1 do

  5. The SeamCarvingAlgorithm 𝑺𝑬𝑨𝑴𝑪𝑨𝑹𝑽𝑬(𝑰,𝒎’)// 𝒔𝒊𝒛𝒆(𝑰) =𝒏 ⨯ 𝒎 𝑫𝒐 (𝒎−𝒎’)𝒕𝒊𝒎𝒆𝒔 𝐸 ←𝐶𝑎𝑙𝑐𝑢𝑙𝑎𝑡𝑒 𝑒𝑛𝑒𝑟𝑔𝑦 𝑚𝑎𝑝 𝑜𝑛 𝐼 //O(nm) 𝑠 ← 𝐹𝑖𝑛𝑑 𝑜𝑝𝑡𝑖𝑚𝑎𝑙 𝑠𝑒𝑎𝑚 𝑖𝑛 𝐸 //O(nm) 𝐼 ← 𝑅𝑒𝑚𝑜𝑣𝑒 𝑠 𝑓𝑟𝑜𝑚 𝐼 //O(nm) 𝑹𝒆𝒕𝒖𝒓𝒏 𝑰 Złożoność⇨𝑶(𝒅𝒎𝒏), 𝒅=𝒎−𝒎’

  6. Usuwanie elementów: Jeżeli oznaczymy obiekt do usunięcia, jego pikselom zostanie przyporządkowana ujemna waga:

  7. Ograniczenia: jeśli obraz jest zbyt skondensowany, tj. nie zawiera "mniej ważnych" terenów układ elementów w niektórych typach obrazów (można łączyć z innymi metodami takimi jak cropping , scaling, face detector) Implementacje: Photoshop CS4 (jako metoda Content Aware Scaling) GIMP digiKam ImageMagick

  8. Źródła: • Seam Carving for Media Retargeting, Ariel Shamir, ShaiAvidan, Communications of the ACM, Volume 52, Number 1, 2009 • Seam Carving for Content-Aware Image Resizing, ShaiAvidan, Ariel Shamir, ACM Transactions on Graphics, Volume 26, Number 3, SIGGRAPH 2007 • Improved Seam Carving for Video Retargeting, Michael Rubinstein, Ariel Shamir, ShaiAvidan, ACM Transactions on Graphics, Volume 27, Number 3, SIGGRAPH 2008 • Multi-operator Media Retargeting, Michael Rubinstein, Ariel Shamir, ShaiAvidan, ACM Transactions on Graphics, Volume 28, Number 3, SIGGRAPH 2009 ACM Trans. Graph • http://www.faculty.idc.ac.il/ARIK/site/seam-carve.asp • http://www.faculty.idc.ac.il/arik/SCWeb/imret/index.html • http://www.seas.upenn.edu/~cse399b/Lectures/CSE399b-04-edge.pdf

More Related