1 / 19

seam carving

seam carving. 602410139 王暉宏. 目的. 將影像縮減,還要保留影像中重要物體的完整性與比例,希望達到效果:. 選擇並載入圖片. 流程圖. 計算每個 pixel 的 能量. 影像縮減. 算出 SEAM. 在 seam 的旁邊再加上 pixel. 將 seam 上的 pixel 拿除. 影像加大. 計算每個 pixel 的 能量. 算出 SEAM. 從最小的值回推找 到 SEAM. 影像 加大時加上 pixel 的方式. 使用 seam 兩邊的 pixel 的平均. 程式使用方式. 3. 載入的圖片將出現在這.

Télécharger la présentation

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. seam carving 602410139 王暉宏

  2. 目的 • 將影像縮減,還要保留影像中重要物體的完整性與比例,希望達到效果:

  3. 選擇並載入圖片 流程圖 計算每個pixel的能量 影像縮減 算出SEAM 在seam的旁邊再加上pixel 將seam上的pixel拿除 影像加大

  4. 計算每個pixel的能量

  5. 算出SEAM 從最小的值回推找到SEAM

  6. 影像加大時加上pixel的方式 • 使用seam兩邊的pixel的平均

  7. 程式使用方式 • 3. 載入的圖片將出現在這 • 1. 執行final_main.m • 2. 點選瀏覽圖片

  8. 程式使用方式 • 5.選擇功能 • 4.選擇要增加/減少的幅度

  9. 實驗結果

  10. 找到的seam(以五十條為例)

  11. 直接將影像縮放將失去比例

  12. column縮減由921*603縮減為720*603

  13. 兩者比較

  14. Row縮減由921*603縮減為921*503

  15. Col增加50

  16. 高增加50

  17. 高增加50,縮減寬50

  18. 討論 • 在縮減影像時,此方法能保留所有物體的比例,也使重要的不被刪減,但這必須取決於SEAM是否有通過重要的影像區域,如果有通過,重要的物體也將被刪減,以下圖為例,人物的形狀因為被縮減而根源圖有所差距

  19. 參考 • http://en.wikipedia.org/wiki/Seam_carving • http://delivery.acm.org/10.1145/1280000/1276390/a10-avidan.pdf?ip=140.123.103.72&id=1276390&acc=ACTIVE%20SERVICE&key=C2716FEBFA981EF1EAB0E2B12696F7CA36602983E07054B2&CFID=269383558&CFTOKEN=31083449&__acm__=1389084666_4a8e744ee5b92b6f779305cffbf3e0b2 • 投影片23

More Related