PageSourceSearch

https://omnifile.co/b4d8966b-876115e4c8f38f3ecce7.js

js omnifile.co collected 2026-10-09 22:05:10 UTC 414,120 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkomnifile=self.webpackChunkomnifile||[]).push([[3140],{3263:function(e,r,n){n.d(r,{m:function(){return t}});var a=n(4848);const t={en:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Background removal"})," separates a subject from its surroundings so you can place it on transparency, swap the scene, or composite it into a new design. Under the hood you’re estimating an"," ",(0,a.jsx)("em",{children:"alpha matte"}),"—a per-pixel opacity from 0 to 1—and then ",(0,a.jsx)("em",{children:"alpha-compositing"})," the foreground over something else. This is the math from ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," and the cause of familiar pitfalls like “fringes” and"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"straight vs. premultiplied alpha"}),". For practical guidance on premultiplication and linear color, see"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"Microsoft’s Win2D notes"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"}),", and"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"Lomont’s write-up on linear blending"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"The main ways people remove backgrounds"}),(0,a.jsx)("h3",{children:"1) Chroma key (“green/blue screen”)"}),(0,a.jsxs)("p",{children:["If you can control capture, paint the backdrop a solid color (often green) and ",(0,a.jsx)("em",{children:"key"})," that hue away. It’s fast, battle-tested in film and broadcast, and ideal for video. The trade-offs are lighting and wardrobe: colored light spills onto edges (especially hair), so you’ll use ",(0,a.jsx)("em",{children:"despill"})," tools to neutralize contamination. Good primers include ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"Nuke’s docs"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"}),", and a hands-on"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion demo"}),"."]}),(0,a.jsx)("h3",{children:"2) Interactive segmentation (classic CV)"}),(0,a.jsxs)("p",{children:["For single images with messy backgrounds, ",(0,a.jsx)("em",{children:"interactive"})," algorithms need a few user hints—e.g., a loose rectangle or scribbles—and converge to a crisp mask. The canonical method is"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"book chapter"}),"), which learns color models for foreground/background and uses graph cuts iteratively to separate them. You’ll see similar ideas in ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"GIMP’s Foreground Select"})," based on"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"ImageJ plugin"}),")."]}),(0,a.jsx)("h3",{children:"3) Image matting (fine-grained alpha)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"Matting"})," solves fractional transparency at wispy boundaries (hair, fur, smoke, glass). Classic"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"closed-form matting"})," ","takes a ",(0,a.jsx)("em",{children:"trimap"}
1)," (definitely-fore/definitely-back/unknown) and solves a linear system for alpha with strong edge fidelity. Modern"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"deep image matting"})," ","trains neural nets on the ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," dataset (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"MMEditing docs"}),"), and is evaluated with metrics like"," ","SAD, MSE, Gradient, and Connectivity (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"benchmark explainer"}),")."]}),(0,a.jsx)("h3",{children:"4) Deep learning cutouts (no trimap)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (salient-object detection) is a strong general “remove background” engine"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," targets real-time portrait matting (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) Matting"})," jointly predicts foreground, background, and alpha to reduce color halos"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," assumes a background plate and yields strand-level mattes in real time at up to 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"project page"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"repo"}),")."]})]}),(0,a.jsxs)("p",{children:["Related segmentation work is also useful:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," refines boundaries with an encoder–decoder and atrous convolutions"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," gives per-instance masks"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); and"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," is a"," ",(0,a.jsx)("em",{children:"promptable"})," foundation model that zero-shots masks on unfamiliar images."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"What popular tools do"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Remove Backgroun
1d quick action"})," runs “Select Subject → layer mask” under the hood"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"confirmed here"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-subject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"tutorial"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Foreground Select"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": 1-click"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Background Remover"})," for images and short video."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": web app + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," for automation."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Apple devices"}),": system-level “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Lift Subject"}),"” in Photos/Safari/Quick Look"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"cutouts on iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Workflow tips for cleaner cutouts"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Shoot smart."})," Good lighting and strong subject–background contrast help every method. With green/blue screens, plan for"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"despill"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"guide"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Start broad, refine narrow."})," Run an automatic selection (Select Subject,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), then refine edges with brushes or matting (e.g.,"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"closed-form"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Mind semi-transparency."})," Glass, veils, motion blur, flyaway hair need true alpha (not just a hard mask). Methods that also recover"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," minimize halos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Know your alpha."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Straight vs. premultiplied"})," produce different edge behavior; export/composite consistently (see"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"overview"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Pick the right output."})," For “no background,” deliver a raster with a clean alpha (e.g., PNG/WebP) or keep layered files with masks if further edits are expected. The key is the"," ",(0,a.jsx)("em",{children:"quality of the alpha"})," you computed—rooted in ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Quality & evaluation"}),(0,a.jsxs)("p",{children:["Academic work reports ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradient"}),", and ",(0,a.jsx)("em",{children:"Connectivity"})," errors on"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". If you’re picking a model, look for those metrics"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"metric defs"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting metrics section"}),"). For portraits/video, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," and"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Background Matting V2"})," are strong; for general “salient object” images,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," is a solid baseline; for tough transparency,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," can be cleaner."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Common edge cases (and fixes)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Hair & fur:"})," favor matting (trimap or portrait matting like"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") and inspect on a checkerboard."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Fine structures (bike spokes, fishing line):"})," use high-res inputs and a boundary-aware segmenter such as"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," as a pre-step before matting."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"See-through stuff (smoke, glass):"})," you need fractional alpha and often foreground color estimation"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Video conferencing:"})," if you can capture a clean plate,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," looks more natural than naive “virtual background” toggles."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Where this shows up in the real world"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"E-commerce:"})," marketplaces (e.g., Amazon) often require a ",(0,a.jsx)("em",{children:"pure white"})," main image background; see"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"Product image guide"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Design tools:"})," Canva’s"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Background Remover"})," and Photoshop’s"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Remove Backgroun
1d"})," ","streamline quick cutouts."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"On-device convenience:"})," iOS/macOS “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Lift Subject"}),"” is great for casual sharing."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Why cutouts sometimes look fake (and fixes)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Color spill:"})," green/blue light wraps onto the subject—use"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"despill controls"})," or targeted color replacement."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Halo/fringes:"})," usually an alpha-interpretation mismatch (straight vs. premultiplied) or edge pixels contaminated by the old background; convert/interpret correctly"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"overview"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"details"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Wrong blur/grain:"})," paste a razor-sharp subject into a soft background and it pops; match lens blur and grain after compositing (see"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," basics)."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"TL;DR playbook"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"If you control capture:"})," use chroma key; light evenly; plan"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"despill"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"If it’s a one-off photo:"})," try Photoshop’s"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Remove Backgroun
1d"}),","," ","Canva’s"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"remover"}),", or"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"; refine with brushes/matting for hair."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"If you need production-grade edges:"})," use matting ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"closed-form"})," ","or deep) and check alpha on transparency; mind"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"alpha interpretation"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"For portraits/video:"})," consider"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," or"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"; for click-guided segmentation,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," is a powerful front-end."]})]})]})},id:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Penghapusan latar belakang"})," memisahkan subjek dari lingkungannya sehingga Anda dapat meletakkannya di transparansi, menukar adegan, atau menggabungkannya ke dalam desain baru. Di balik layar, Anda memperkirakan"," ",(0,a.jsx)("em",{children:"alpha matte"}),"—opasitas per piksel dari 0 hingga 1—dan kemudian melakukan ",(0,a.jsx)("em",{children:"alpha-compositing"})," pada latar depan di atas sesuatu yang lain. Ini adalah matematika dari ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," dan penyebab masalah umum seperti “pinggiran” dan"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"alfa lurus vs. alfa premultiplikasi"}),". Untuk panduan praktis tentang premultiplikasi dan warna linear, lihat"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"catatan Win2D Microsoft"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"}),", dan"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"tulisan Lomont tentang pencampuran linear"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Cara utama orang menghapus latar belakang"}),(0,a.jsx)("h3",{children:"1) Chroma key (“layar hijau/biru”)"}),(0,a.jsxs)("p",{children:["Jika Anda dapat mengontrol pengambilan, cat latar belakang dengan warna solid (seringkali hijau) dan ",(0,a.jsx)("em",{children:"kunci"})," rona itu. Ini cepat, teruji dalam film dan siaran, dan ideal untuk video. Kelemahannya adalah pencahayaan dan busana: cahaya berwarna tumpah ke tepi (terutama rambut), jadi Anda akan menggunakan alat ",(0,a.jsx)("em",{children:"despill"})," untuk menetralkan kontaminasi. Referensi awal yang bagus termasuk ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"dokumentasi Nuke"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"}),", dan demo langsung"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion"}),"."]}),(0,a.jsx)("h3",{children:"2) Segmentasi interaktif (CV klasik)"}),(0,a.jsxs)("p",{children:["Untuk gambar tunggal dengan latar belakang yang berantakan, algoritme ",(0,a.jsx)("em",{children:"interaktif"})," memerlukan beberapa petunjuk pengguna—misalnya, persegi panjang longgar atau coretan—dan menghasilkan mask yang tajam. Metode kanonis adalah"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"bab buku"}),"), yang mempelajari model warna untuk latar depan/latar belakang dan menggunakan potongan grafik secara berulang untuk memisahkannya. Anda akan melihat ide serupa di ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Seleksi Latar Depan GIMP"})," berdasarkan"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"plugin ImageJ"}),")."]}),(0,a.jsx)("h3",{children:"3) Matting gambar (alfa berbutir halus)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"Matting"})," memecahkan transparansi parsial pada batas tipis (rambut, bulu, asap, kaca). Klasik"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"matting bentuk-tertutup"})," ","mengambil ",(0,a.jsx)("em",{children:"trimap"}
1)," (pasti-depan/pasti-belakang/tidak diketahui) dan menyelesaikan sistem linear untuk alfa dengan akurasi tepi yang tinggi. Modern"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"deep image matting"})," ","melatih jaringan saraf pada dataset ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"dokumen MMEditing"}),"), dan dievaluasi dengan metrik seperti"," ","SAD, MSE, Gradient, dan Connectivity (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"penjelasan tolok ukur"}),")."]}),(0,a.jsx)("h3",{children:"4) Potongan pembelajaran mendalam (tanpa trimap)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (deteksi objek menonjol) adalah mesin “hapus latar belakang” umum yang kuat"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," menargetkan matting potret waktu-nyata (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) Matting"})," secara bersamaan memprediksi latar depan, latar belakang, dan alfa untuk mengurangi halo warna"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," mengasumsikan latar belakang yang bersih dan menghasilkan masker setingkat helai rambut secara waktu-nyata hingga 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"halaman proyek"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"repo"}),")."]})]}),(0,a.jsxs)("p",{children:["Pekerjaan segmentasi terkait juga berguna:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," menyempurnakan batas dengan encoder–decoder dan konvolusi atrous"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," memberikan masker per-instans"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); dan"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," adalah model dasar yang"," ",(0,a.jsx)("em",{children:"berbasis prompt"})," yang menghasilkan masker zero-shot pada gambar yang tidak dikenal."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Apa yang dilakukan alat populer"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": Tindakan cepat ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Hapus Latar Belakang"})," menjalankan “Pilih Subjek → masker lapisan” di balik layar"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"dikonfirmasi di sini"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"tutorial"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Seleksi Latar Depan"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": 1-klik"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Penghapus Latar Belakang"})," untuk gambar dan video pendek."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": aplikasi web + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," untuk otomatisasi."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Perangkat Apple"}),": tingkat sistem “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Angkat Subjek"}),"” di Foto/Safari/Tampilan Cepat"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"potongan di iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Kiat alur kerja untuk potongan yang lebih bersih"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Ambil gambar dengan cerdas."})," Pencahayaan yang baik dan kontras subjek–latar belakang yang kuat membantu setiap metode. Dengan layar hijau/biru, rencanakan untuk"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"despill"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"panduan"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Mulai dari gambaran umum, lalu persempit ke detail."})," Jalankan seleksi otomatis (Pilih Subjek,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), lalu sempurnakan tepi dengan kuas atau matting (misalnya,"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"bentuk-tertutup"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Perhatikan semi-transparansi."})," Kaca, kerudung, buram gerak, rambut beterbangan memerlukan alfa sejati (bukan hanya masker keras). Metode yang juga memulihkan"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," meminimalkan halo."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Pahami saluran alfa Anda."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Lurus vs. premultiplied"})," menghasilkan perilaku tepi yang berbeda; ekspor/komposit secara konsisten (lihat"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"gambaran umum"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Pilih output yang tepat."})," Untuk “tanpa latar belakang,” berikan raster dengan alfa bersih (misalnya, PNG/WebP) atau simpan file berlapis dengan masker jika akan ada penyuntingan lebih lanjut. Kuncinya adalah"," ",(0,a.jsx)("em",{children:"kualitas alfa"})," yang Anda hitung—berakar pada ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Kualitas & evaluasi"}),(0,a.jsxs)("p",{children:["Karya akademis melaporkan kesalahan ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradient"}),", dan ",(0,a.jsx)("em",{children:"Connectivity"})," pada"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". Jika Anda memilih model, cari metrik tersebut"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"definisi metrik"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"bagian metrik Background Matting"}),"). Untuk potret/video, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," dan"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," kuat; untuk gambar “objek menonjol” umum,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," adalah dasar yang kuat; untuk transparansi yang sulit,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," dapat memberikan hasil yang lebih baik."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Kasus tepi umum (dan perbaikannya)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Rambut & bulu:"})," utamakan matting (trimap atau matting potret seperti"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") dan periksa pada latar papan catur."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Struktur halus (jeruji sepeda, tali pancing):"})," gunakan input resolusi tinggi dan segmenter yang sadar batas seperti"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," sebagai langkah sebelum matting."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Benda tembus pandang (asap, kaca):"})," Anda memerlukan alfa parsial dan seringkali estimasi warna latar depan"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Konferensi video:"})," jika Anda dapat menangkap pelat bersih,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," terlihat lebih alami daripada opsi “latar belakang virtual” yang naif."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Di mana ini muncul di dunia nyata"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"E-commerce:"})," marketplace (misalnya, Amazon) seringkali memerlukan latar belakang gambar utama ",(0,a.jsx)("em",{children:"putih bersih"}),"; lihat"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"Panduan gambar produk"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Alat desain:"})," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Penghapus Latar Belakang"})," Canva dan ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Hapus Latar Belakang"})," Photoshop"," ","memperlancar potongan cepat."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Kenyamanan di perangkat:"})," “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Angkat Subjek"}),"” iOS/macOS bagus untuk berbagi santai."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Mengapa potongan terkadang terlihat palsu (dan perbaikannya)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Tumpahan warna:"})," cahaya hijau/biru membungkus subjek—gunakan"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"kontrol despill"})," atau penggantian warna yang ditargetkan."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Halo/pinggiran:"})," biasanya ketidakcocokan interpretasi-alfa (lurus vs. premultiplied) atau piksel tepi yang terkontaminasi oleh latar belakang lama; konversi/interpretasi dengan benar"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"gambaran umum"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"detail"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Buram/grain yang salah:"})," tempel subjek yang tajam ke latar belakang yang buram dan itu menonjol; cocokkan buram lensa dan grain setelah proses komposit (lihat"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"dasar-dasar Porter–Duff"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Buku pedoman TL;DR"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Jika Anda mengontrol pengambilan:"})," gunakan kunci kroma; cahaya merata; rencanakan"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"despill"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Jika ini foto sekali pakai:"})," coba ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Hapus Latar Belakang"})," Photoshop,"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"penghapus"})," Canva, atau"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"; sempurnakan dengan kuas/matting untuk rambut."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Jika Anda memerlukan tepi kelas produksi:"})," gunakan matting ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"bentuk-tertutup"})," ","atau mendalam) dan periksa alfa pada transparansi; perhatikan"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"interpretasi alfa"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Untuk potret/video:"})," pertimbangkan"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," atau"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"; untuk segmentasi yang dipandu klik,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," adalah front-end yang kuat."]})]})]})},pl:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Usuwanie tła"})," oddziela obiekt od otoczenia, dzięki czemu można go umieścić na przezroczystości, zamienić scenę lub wkomponować w nowy projekt. Pod maską szacujesz"," ",(0,a.jsx)("em",{children:"maskę alfa"})," — nieprzezroczystość na piksel od 0 do 1 — a następnie komponujesz pierwszy plan z użyciem kanału alfa na czymś innym. To jest matematyka z ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," i przyczyna typowych pułapek, takich jak „frędzle” i"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"alfa prosta a premultiplikowana"}),". Praktyczne wskazówki dotyczące premultiplikacji i koloru liniowego można znaleźć w"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"notatkach Win2D firmy Microsoft"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Sørena Sandmanna"})," i"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"opracowaniu Lomonta na temat mieszania liniowego"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Główne sposoby usuwania tła"}),(0,a.jsx)("h3",{children:"1) Kluczowanie chrominancyjne („zielony/niebieski ekran”)"}),(0,a.jsxs)("p",{children:["Jeśli możesz kontrolować przechwytywanie, pomaluj tło na jednolity kolor (często zielony) i ",(0,a.jsx)("em",{children:"wyklucz"})," ten odcień. Jest to szybkie, sprawdzone w filmie i telewizji oraz idealne do wideo. Kompromisy to oświetlenie i garderoba: kolorowe światło rozlewa się na krawędzie (zwłaszcza włosy), więc użyjesz narzędzi do ",(0,a.jsx)("em",{children:"usuwania rozlania"}),", aby zneutralizować zanieczyszczenie. Dobre wprowadzenia obejmują ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"dokumentację Nuke"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"})," i praktyczne"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"demo Fusion"}),"."]}),(0,a.jsx)("h3",{children:"2) Interaktywna segmentacja (klasyczne CV)"}),(0,a.jsxs)("p",{children:["W przypadku pojedynczych obrazów z nieuporządkowanym tłem, algorytmy ",(0,a.jsx)("em",{children:"interaktywne"})," potrzebują kilku wskazówek od użytkownika — np. luźnego prostokąta lub gryzmołów — i tworzą ostrą maskę. Kanoniczną metodą jest"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"rozdział książki"}),"), który uczy się modeli kolorów dla pierwszego planu/tła i iteracyjnie wykorzystuje cięcia grafowe do ich rozdzielenia. Podobne pomysły zobaczysz w ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Zaznaczaniu pierwszego planu w GIMP"})," opartym na"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"wtyczka ImageJ"}),")."]}),(0,a.jsx)("h3",{children:"3) Matowanie obrazu (drobnoziarnista alfa)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"Matowanie"})," rozwiązuje problem częściowej przezroczystości na delikatnych granicach (włosy, futro, dym, szkło). Klasyczne"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"matowanie w formie zamkniętej"})," ","przyjmuje ",(0,a.jsx)("em",{children:"trimapę"})," (zdecydowanie-pierwszy plan/zdecydowanie-tło/nieznane) i rozwiązuje układ liniowy dla alfy z dużą dokładnością krawędzi. Nowoczesne"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"głębokie matowanie obrazu"})," ","uczy sieci neuronowe na zbiorze danych ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"dokumentacja MMEditing"}),") i jest oceniane za pomocą metryk takich jak"," ","SAD, MSE, Gradient i Connectivity (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"wyjaśnienie benchmarku"}),")."]}
1),(0,a.jsx)("h3",{children:"4) Wycinanki z głębokiego uczenia (bez trimapy)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (wykrywanie obiektów wyróżniających się) to silny, ogólny silnik do „usuwania tła”"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"repozytorium"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," celuje w matowanie portretów w czasie rzeczywistym (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"Matowanie F, B, Alpha (FBA)"})," wspólnie przewiduje pierwszy plan, tło i alfę, aby zredukować kolorowe otoczki"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"repozytorium"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," zakłada istnienie czystego ujęcia tła i generuje maski o precyzji pojedynczych pasm w czasie rzeczywistym do 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"strona projektu"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"repozytorium"}),")."]})]}),(0,a.jsxs)("p",{children:["Powiązane prace nad segmentacją są również przydatne:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," udoskonala granice za pomocą kodera-dekodera i splotów atrous"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," generuje maski dla poszczególnych instancji"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); a"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," to"," ",(0,a.jsx)("em",{children:"sterowany promptami"})," model podstawowy, który generuje maski w trybie zero-shot na nieznanych obrazach."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Co robią popularne narzędzia"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": Szybka akcja ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Usuń tło"})," uruchamia pod maską „Zaznacz obiekt → maska warstwy”"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"potwierdzone tutaj"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"samouczek"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Zaznaczanie pierwszego planu"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": 1 kliknięciem"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Usuwanie tła"})," dla obrazów i krótkich filmów."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": aplikacja internetowa + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," do automatyzacji."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Urządzenia Apple"}),": systemowe „",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Podnieś obiekt"}),"” w Zdjęciach/Safari/Szybkim podglądzie"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"wycinanki na iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Wskazówki dotyczące przepływu pracy dla czystszych wycinanek"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Fotografuj mądrze."})," Dobre oświetlenie i silny kontrast między obiektem a tłem pomagają każdej metodzie. W przypadku zielonych/niebieskich ekranów zaplanuj"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"usuwanie rozlania"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"przewodnik"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Zacznij od ogółu, a następnie dopracuj szczegóły."})," Uruchom automatyczne zaznaczanie (Zaznacz obiekt,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), a następnie dopracuj krawędzie pędzlami lub matowaniem (np."," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"w formie zamkniętej"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Zwróć uwagę na półprzezroczystość."})," Szkło, welony, rozmycie w ruchu, rozwiane włosy wymagają prawdziwej alfy (a nie tylko twardej maski). Metody, które również odzyskują"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"}),", minimalizują aureole."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Zrozum kanał alfa."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Prosta a premultiplikowana"})," dają różne zachowania krawędzi; eksportuj/komponuj spójnie (zobacz"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"przegląd"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Wybierz odpowiedni format wyjściowy."})," W przypadku „braku tła” dostarcz raster z czystą alfą (np. PNG/WebP) lub zachowaj pliki warstwowe z maskami, jeśli oczekiwane są dalsze edycje. Kluczem jest"," ",(0,a.jsx)("em",{children:"jakość obliczonej alfy"}),", którą obliczyłeś — zakorzeniona w ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Jakość i ocena"}),(0,a.jsxs)("p",{children:["Prace akademickie raportują błędy ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradient"})," i ",(0,a.jsx)("em",{children:"Connectivity"})," na"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". Jeśli wybierasz model, szukaj tych metryk"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"definicje metryk"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"sekcja metryk Background Matting"}),"). W przypadku portretów/wideo ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," i"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," są skuteczne; w przypadku ogólnych obrazów „obiektów wyróżniających się”,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," jest solidną podstawą; w przypadku trudnej przezroczystości"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," daje lepsze rezultaty."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Typowe przypadki brzegowe (i poprawki)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Włosy i futro:"})," preferuj matowanie (trimapa lub matowanie portretowe, jak"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") i sprawdzaj na tle szachownicy."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Drobne struktury (szprychy rowerowe, żyłka wędkarska):"})," używaj danych wejściowych o wysokiej rozdzielczości i segmentatora uwzględniającego granice, takiego jak"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," jako krok wstępny przed matowaniem."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Przezroczyste obiekty (dym, szkło):"})," potrzebujesz ułamkowej alfy i często szacowania koloru pierwszego planu"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Wideokonferencje:"})," jeśli możesz przechwycić czystą płytę,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," wygląda bardziej naturalnie niż naiwne opcje „wirtualnego tła”."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Gdzie to się pojawia w prawdziwym świecie"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"E-commerce:"})," platformy handlowe (np. Amazon) często wymagają ",(0,a.jsx)("em",{children:"czysto białego"})," tła głównego obrazu; zobacz"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"Przewodnik po obrazach produktów"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Narzędzia do projektowania:"})," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Usuwanie tła"})," w Canvie i ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Usuń tło"})," w Photoshopie"," ","usprawniają szybkie wycinanki."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Wygoda na urządzeniu:"})," „",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Podnieś obiekt"}),"” w iOS/macOS jest świetne do swobodnego udostępniania."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Dlaczego wycinanki czasami wyglądają sztucznie (i poprawki)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Rozlanie koloru:"})," zielone/niebieskie światło otacza obiekt — użyj"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"kontroli usuwania rozlania"})," lub ukierunkowanej wymiany kolorów."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Aureola/frędzle:"})," zwykle niedopasowanie interpretacji alfy (prosta a premultiplikowana) lub piksele krawędzi zanieczyszczone starym tłem; konwertuj/interpretuj poprawnie"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"przegląd"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"szczegóły"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Niewłaściwe rozmycie/ziarno:"})," wklej ostry jak brzytwa obiekt na rozmyte tło, a będzie się wyróżniał; dopasuj rozmycie obiektywu i ziarno po kompozycji (zobacz"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"podstawy Porter–Duff"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Poradnik TL;DR"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Jeśli kontrolujesz przechwytywanie:"})," użyj kluczowania chrominancyjnego; oświetlaj równomiernie; zaplanuj"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"usuwanie rozlania"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Jeśli to jednorazowe zdjęcie:"})," wypróbuj ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Usuń tło"})," w Photoshopie,"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"narzędzie do usuwania"})," w Canvie lub"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"; dopracuj pędzlami/matowaniem w przypadku włosów."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Jeśli potrzebujesz krawędzi o jakości produkcyjnej:"})," użyj matowania ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"w formie zamkniętej"})," ","lub głębokiego) i sprawdź alfę na przezroczystości; pamiętaj o"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"interpretacji alfy"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Do portretów/wideo:"})," rozważ"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," lub"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"; do segmentacji sterowanej kliknięciami,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," jest potężnym narzędziem."]})]})]})},it:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["La ",(0,a.jsx)("strong",{children:"rimozione dello sfondo"})," separa un soggetto dai suoi dintorni in modo da poterlo posizionare su trasparenza, scambiare la scena o comporla in un nuovo design. Sotto il cofano stai stimando un"," ",(0,a.jsx)("em",{children:"alpha matte"}),"—un'opacità per pixel da 0 a 1—e poi applicando il compositing alfa al primo piano su qualcos'altro. Questa è la matematica di ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," e la causa di problemi comuni come “frange” e"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"alfa dritto vs. premoltiplicato"}),". Per una guida pratica sulla premoltiplicazione e il colore lineare, vedere"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"le note Win2D di Microsoft"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"}),", e"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"l'articolo di Lomont sulla fusione lineare"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"I modi principali in cui le persone rimuovono gli sfondi"}),(0,a.jsx)("h3",{children:"1) Chroma key (“schermo verde/blu”)"}),(0,a.jsxs)("p",{children:["Se puoi controllare l'acquisizione, dipingi lo sfondo di un colore a tinta unita (spesso verde) e ",(0,a.jsx)("em",{children:"elimina"})," quella tonalità. È veloce, ampiamente testato nel cinema e nelle trasmissioni, e ideale per i video. I compromessi sono l'illuminazione e l'abbigliamento: la luce colorata si riversa sui bordi (specialmente i capelli), quindi userai strumenti di ",(0,a.jsx)("em",{children:"despill"})," per neutralizzare la contaminazione. Buone guide introduttive includono ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"la documentazione di Nuke"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"}),", e una demo pratica di"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion"}),"."]}),(0,a.jsx)("h3",{children:"2) Segmentazione interattiva (CV classica)"}),(0,a.jsxs)("p",{children:["Per singole immagini con sfondi disordinati, gli algoritmi ",(0,a.jsx)("em",{children:"interattivi"})," necessitano di alcuni suggerimenti dell'utente, ad esempio un rettangolo approssimativo o scarabocchi, e generano una maschera nitida. Il metodo canonico è"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"capitolo del libro"}),"), che apprende modelli di colore per primo piano/sfondo e utilizza tagli di grafo in modo iterativo per separarli. Vedrai idee simili in ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Selezione primo piano di GIMP"})," basato su"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"plugin ImageJ"}),")."]}),(0,a.jsx)("h3",{children:"3) Image matting (alfa a grana fine)"}),(0,a.jsxs)("p",{children:["Il ",(0,a.jsx)("em",{children:"Matting"})," risolve la trasparenza parziale ai confini sottili (capelli, pelliccia, fumo, vetro). Il"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"matting a forma chiusa"})," ","classico prende una ",(0,a.jsx)("em",{children:"trimappa"})," (decisamente-primo piano/decisamente-sfondo/sconosciuto) e risolve un sistema lineare per l'alfa con una forte precisione dei bordi. Il"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"deep image matting"})," ","moderno addestra reti neurali sul dataset ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"documentazione MMEditing"}),"), ed è valutato con metriche come"," ","SAD, MSE, Gradiente e Connettività (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"spiegazione del benchmark"}),")."]}),(0,a.jsx)("h3",{children:"4) Ritagli con deep learning (senza trimappa)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (rilevamento di oggetti salienti) è un potente motore generico per “rimuovere lo sfondo”"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," si rivolge al matting di ritratti in tempo reale (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) Matting"})," predice congiuntamente primo piano, sfondo e alfa per ridurre gli aloni di colore"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," presuppone uno sfondo pulito e produce mascherini a livello di ciocca in tempo reale fino a 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"pagina del progetto"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"repo"}),")."]})]}),(0,a.jsxs)("p",{children:["Anche il lavoro di segmentazione correlato è utile:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," affina i confini con un codificatore-decodificatore e convoluzioni dilatate"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," fornisce maschere per istanza"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); e"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," è un"," ","modello di base ",(0,a.jsx)("em",{children:"controllabile da prompt"})," che genera maschere zero-shot su immagini sconosciute."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Cosa fanno gli strumenti popolari"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": l'azione rapida ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Rimuovi sfondo"})," esegue “Seleziona soggetto → maschera di livello” sotto il cofano"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"confermato qui"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"tutorial"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Selezione primo piano"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": con 1 clic"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Rimozione sfondo"})," per immagini e brevi video."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": app web + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," per l'automazione."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Dispositivi Apple"}),": a livello di sistema “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Solleva soggetto"}),"” in Foto/Safari/Quick Look"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"ritagli su iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Suggerimenti sul flusso di lavoro per ritagli più puliti"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Scatta in modo intelligente."})," Una buona illuminazione e un forte contrasto soggetto-sfondo aiutano ogni metodo. Con schermi verdi/blu, pianifica il"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"despill"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"guida"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Inizia con una selezione ampia, quindi affina i dettagli."})," Esegui una selezione automatica (Seleziona soggetto,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), quindi affina i bordi con pennelli o matting (ad es."," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"a forma chiusa"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Fai attenzione alla semitrasparenza."})," Vetro, veli, motion blur, capelli al vento necessitano di un vero alfa (non solo di una maschera dura). I metodi che recuperano anche"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," minimizzano gli aloni."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Comprendi il canale alfa."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Dritto vs. premoltiplicato"})," producono un comportamento dei bordi diverso; esporta/componi in modo coerente (vedi"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"panoramica"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Scegli l'output giusto."})," Per “nessuno sfondo”, fornisci un raster con un alfa pulito (ad es. PNG/WebP) o mantieni i file a livelli con maschere se sono previste ulteriori modifiche. La chiave è la"," ",(0,a.jsx)("em",{children:"qualità dell'alfa"})," che hai calcolato, radicata in ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Qualità e valutazione"}),(0,a.jsxs)("p",{children:["Il lavoro accademico riporta errori di ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradiente"})," e ",(0,a.jsx)("em",{children:"Connettività"})," su"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". Se stai scegliendo un modello, cerca quelle metriche"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"definizioni delle metriche"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"sezione metriche di Background Matting"}),"). Per ritratti/video, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," e"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," sono molto efficaci; per immagini generiche di “oggetti salienti”,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," è una solida base; per trasparenze difficili,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," può dare risultati migliori."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Casi limite comuni (e soluzioni)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Capelli e pelliccia:"})," preferisci il matting (trimappa o matting per ritratti come"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") e ispeziona su uno sfondo a scacchiera."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Strutture fini (raggi di bicicletta, filo da pesca):"})," utilizza input ad alta risoluzione e un segmentatore consapevole dei confini come"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," come pre-passaggio prima del matting."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Oggetti trasparenti (fumo, vetro):"})," hai bisogno di alfa frazionario e spesso di stima del colore del primo piano"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Videoconferenze:"})," se riesci a catturare una lastra di sfondo pulita,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," sembra più naturale delle ingenue opzioni di “sfondo virtuale”."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Dove questo si manifesta nel mondo reale"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"E-commerce:"})," i marketplace (ad es. Amazon) richiedono spesso uno sfondo dell'immagine principale ",(0,a.jsx)("em",{children:"bianco puro"}),"; vedere"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"Guida alle immagini del prodotto"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Strumenti di progettazione:"})," lo ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"strumento di rimozione dello sfondo di Canva"})," e ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Rimuovi sfondo"})," di Photoshop"," ","semplificano i ritagli veloci."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Comodità sul dispositivo:"})," “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Solleva soggetto"}),"” di iOS/macOS è ottimo per la condivisione occasionale."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Perché i ritagli a volte sembrano finti (e soluzioni)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Contaminazione del colore:"})," la luce verde/blu avvolge il soggetto: usa"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"controlli despill"})," o la sostituzione mirata del colore."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Alone/frange:"})," di solito una mancata corrispondenza dell'interpretazione alfa (dritto vs. premoltiplicato) o pixel dei bordi contaminati dal vecchio sfondo; converti/interpreta correttamente"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"panoramica"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"dettagli"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Sfocatura/grana sbagliate:"})," incolla un soggetto nitidissimo su uno sfondo sfocato e risalta; abbina la sfocatura dell'obiettivo e la grana dopo la composizione (vedi"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"le basi di Porter–Duff"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Manuale TL;DR"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Se controlli l'acquisizione:"})," usa il chroma key; illumina in modo uniforme; pianifica il"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"despill"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Se si tratta di una foto una tantum:"})," prova ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Rimuovi sfondo"})," di Photoshop,"," ","lo ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"strumento di rimozione dello sfondo di Canva"})," o"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"; affina i bordi con pennelli o tecniche di matting per i capelli."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Se hai bisogno di bordi di qualità professionale:"})," usa il matting ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"a forma chiusa"})," ","o profondo) e controlla l'alfa sulla trasparenza; fai attenzione all'"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"interpretazione del canale alfa"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Per ritratti/video:"})," considera"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," o"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"; per la segmentazione guidata da clic,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," è un potente front-end."]})]})]})},tr:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Arka plan kaldırma"}),", bir konuyu çevresinden ayırır, böylece onu şeffaflık üzerine yerleştirebilir, sahneyi değiştirebilir veya yeni bir tasarıma entegre edebilirsiniz. Kaputun altında bir"," ",(0,a.jsx)("em",{children:"alfa maskesi"}),"—piksel başına 0'dan 1'e kadar bir opaklık—tahmin ediyor ve ardından ön planı alfa kompozitleme ile başka bir şeyin üzerine yerleştiriyorsunuz. Bu, ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," matematiğidir ve “saçaklar” ve"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"düz ve önceden çarpılmış alfa"})," gibi yaygın sorunların nedenidir. Önceden çarpma ve doğrusal renk hakkında pratik rehberlik için"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"Microsoft’un Win2D notlarına"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"}),"’a ve"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"Lomont’un doğrusal harmanlama üzerine yazısına"})," bakın."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"İnsanların arka planları kaldırmasının ana yolları"}),(0,a.jsx)("h3",{children:"1) Kroma anahtarı (“yeşil/mavi ekran”)"}),(0,a.jsxs)("p",{children:["Çekimi kontrol edebiliyorsanız, arka planı düz bir renge (genellikle yeşil) boyayın ve bu tonu ",(0,a.jsx)("em",{children:"anahtarlayın"}),". Hızlıdır, film ve yayında kendini kanıtlamıştır ve video için idealdir. Dezavantajları aydınlatma ve kıyafetlerdir: renkli ışık kenarlara (özellikle saça) taşar, bu nedenle kirlenmeyi nötralize etmek için ",(0,a.jsx)("em",{children:"dökülme önleyici"})," araçlar kullanırsınız. İyi başlangıç kılavuzları arasında ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"Nuke’un belgeleri"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"})," ve uygulamalı bir"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion demosu"})," bulunur."]}),(0,a.jsx)("h3",{children:"2) Etkileşimli segmentasyon (klasik CV)"}),(0,a.jsxs)("p",{children:["Dağınık arka planlara sahip tek görüntüler için, ",(0,a.jsx)("em",{children:"etkileşimli"})," algoritmalar birkaç kullanıcı ipucuna ihtiyaç duyar—örneğin, gevşek bir dikdörtgen veya karalamalar—ve keskin bir maske oluşturur. Kanonik yöntem"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"}),"’tır"," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"kitap bölümü"}),"), ön plan/arka plan için renk modelleri öğrenir ve bunları ayırmak için yinelemeli olarak grafik kesimlerini kullanır. Benzer fikirleri ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"GIMP’in Ön Plan Seçimi"}),"’nde"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"}),"’a dayalı olarak görürsünüz"," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"ImageJ eklentisi"}),")."]}),(0,a.jsx)("h3",{children:"3) Görüntü matlaştırma (ince taneli alfa)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"Matlaştırma"}),", ince sınırlardaki (saç, kürk, duman, cam) kesirli şeffaflığı çözer. Klasik"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"kapalı form matlaştırma"})," ","bir ",(0,a.jsx)("em",{children:"üçlü harita"})," (kesinlikle-ön plan/kesinlikle-arka plan/bilinmeyen) alır ve güçlü kenar doğruluğu ile alfa için doğrusal bir sistemi çözer. Modern"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"derin görüntü matlaştırma"})," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," veri setinde sinir ağlarını eğitir (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"MMEditing belgeleri"}),") ve"," ","SAD, MSE, Gradyan ve Bağlantı gibi metriklerle değerlendirilir (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"kıyaslama açıklaması"}),")."]}),(0,a.jsx)("h3",{children:"4) Derin öğrenme kesikleri (üçlü harita yok)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (belirgin nesne tespiti) güçlü bir genel “arka planı kaldır” motorudur"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),", gerçek zamanlı portre matlaştırmayı hedefler (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alfa (FBA) Matlaştırma"}),", renk halolarını azaltmak için ön planı, arka planı ve alfayı birlikte tahmin eder"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Arka Plan Matlaştırma V2"}),", temiz bir arka plan varsayar ve 4K/30fps'ye kadar gerçek zamanlı olarak saç teli düzeyinde maskeler üretir"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"proje sayfası"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/Backgroun
1dMattingV2",target:"_blank",rel:"noreferrer",children:"repo"}),")."]})]}),(0,a.jsxs)("p",{children:["İlgili segmentasyon çalışmaları da faydalıdır:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"}),", bir kodlayıcı-kod çözücü ve atrous evrişimleri ile sınırları iyileştirir"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"}),", örnek başına maskeler verir"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); ve"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"}),","," ","bilinmeyen görüntülerde sıfır atışlı maskeler oluşturan ",(0,a.jsx)("em",{children:"istemle yönlendirilebilir"})," bir temel modeldir."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Popüler araçlar ne yapar"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Arka Planı Kaldır"})," hızlı eylemi, kaputun altında “Konuyu Seç → katman maskesi” çalıştırır"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"burada onaylandı"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"öğretici"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Ön Plan Seçimi"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": Görüntüler ve kısa videolar için 1 tıklamayla"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Arka Plan Kaldırıcı"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": otomasyon için web uygulaması + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Apple cihazları"}),": Fotoğraflar/Safari/Hızlı Bakış'ta sistem düzeyinde “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Konuyu Ayırma"}),"”"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"iOS'ta kesikler"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Daha temiz kesikler için iş akışı ipuçları"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Akıllıca çekim yapın."})," İyi aydınlatma ve güçlü konu-arka plan kontrastı her yönteme yardımcı olur. Yeşil/mavi ekranlarla,"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"dökülme önleyici"})," planlayın"," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"kılavuz"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Geniş başlayıp detaya inin."})," Otomatik bir seçim çalıştırın (Konuyu Seç,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), ardından kenarları fırçalarla veya matlaştırma ile iyileştirin (örneğin,"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"kapalı form"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Yarı saydamlığa dikkat edin."})," Cam, tül, hareket bulanıklığı, uçuşan saçlar gerçek alfa gerektirir (sadece sert bir maske değil). Ayrıca"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"}),"'yı kurtaran yöntemler haloları en aza indirir."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Alfa kanalını anlayın."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Düz ve önceden çarpılmış"})," farklı kenar davranışları üretir; tutarlı bir şekilde dışa aktarın/birleştirin (bkz."," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"genel bakış"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Doğru çıktıyı seçin."})," “Arka plan yok” için, temiz bir alfa içeren bir raster (örneğin, PNG/WebP) teslim edin veya daha fazla düzenleme bekleniyorsa maskeli katmanlı dosyaları saklayın. Anahtar,"," ","hesapladığınız ",(0,a.jsx)("em",{children:"alfanın kalitesidir"}),"—",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"’a dayanır."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Kalite ve değerlendirme"}),(0,a.jsxs)("p",{children:["Akademik çalışmalar, ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"})," üzerinde ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradyan"})," ve ",(0,a.jsx)("em",{children:"Bağlantı"})," hatalarını raporlar. Bir model seçiyorsanız, bu metriklere bakın"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"metrik tanımları"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"Arka Plan Matlaştırma metrikleri bölümü"}),"). Portreler/video için, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," ve"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Arka Plan Matlaştırma V2"})," güçlüdür; genel “belirgin nesne” görüntüleri için,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," sağlam bir temeldir; zor şeffaflık için,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," daha iyi sonuç verebilir."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Yaygın uç durumlar (ve düzeltmeleri)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Saç ve kürk:"})," matlaştırmayı tercih edin (üçlü harita veya"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," gibi portre matlaştırma) ve dama tahtası arka planında inceleyin."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"İnce yapılar (bisiklet telleri, misina):"})," yüksek çözünürlüklü girdiler ve matlaştırmadan önce bir ön adım olarak"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," gibi sınıra duyarlı bir segmentleyici kullanın."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Şeffaf nesneler (duman, cam):"})," kesirli alfaya ve genellikle ön plan renk tahminine ihtiyacınız vardır"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Video konferans:"})," temiz bir plaka yakalayabilirseniz,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Arka Plan Matlaştırma V2"}),", saf “sanal arka plan” seçeneklerinden daha doğal görünür."]}
1)]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Bu gerçek dünyada nerede ortaya çıkıyor"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"E-ticaret:"})," pazar yerleri (örneğin, Amazon) genellikle ",(0,a.jsx)("em",{children:"saf beyaz"})," bir ana görüntü arka planı gerektirir; bkz."," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"Ürün resmi kılavuzu"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Tasarım araçları:"})," Canva’nın"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Arka Plan Kaldırıcısı"})," ve Photoshop’un"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Arka Planı Kaldır"})," ","hızlı kesikleri kolaylaştırır."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Cihazda kolaylık:"})," iOS/macOS “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Konuyu Ayırma"}),"” gündelik paylaşım için harikadır."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Kesiklerin bazen neden sahte göründüğü (ve düzeltmeleri)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Renk dökülmesi:"})," yeşil/mavi ışık konunun üzerine sarılır—"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"dökülme önleyici kontrolleri"})," veya hedeflenmiş renk değişimi kullanın."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Hale/saçaklar:"})," genellikle bir alfa yorumlama uyuşmazlığı (düz ve önceden çarpılmış) veya eski arka planla kirlenmiş kenar pikselleri; doğru şekilde dönüştürün/yorumlayın"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"genel bakış"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"ayrıntılar"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Yanlış bulanıklık/gren:"})," jilet gibi keskin bir konuyu bulanık bir arka plana yapıştırın ve öne çıkar; kompozisyon sonrası lens bulanıklığını ve greni eşleştirin (bkz."," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff temelleri"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"TL;DR oyun kitabı"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Çekimi kontrol ediyorsanız:"})," kroma anahtarı kullanın; eşit şekilde aydınlatın;"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"dökülme önleyici"})," planlayın."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Tek seferlik bir fotoğrafsa:"})," Photoshop’un"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Arka Planı Kaldır"}),"’ını,"," ","Canva’nın"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"kaldırıcısını"})," veya"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"’yi deneyin; saç için fırçalar/matlaştırma ile iyileştirin."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Üretim sınıfı kenarlara ihtiyacınız varsa:"})," matlaştırma kullanın ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"kapalı form"})," ","veya derin) ve şeffaflık üzerinde alfayı kontrol edin;"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"alfa yorumlamasına"})," dikkat edin."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Portreler/video için:"})," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," veya"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Arka Plan Matlaştırma V2"}),"’yi düşünün; tıklama güdümlü segmentasyon için,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," güçlü bir ön uçtur."]})]})]})},ko:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"배경 제거"}),"는 피사체를 주변 환경과 분리하여 투명 배경에 배치하거나, 장면을 바꾸거나, 새로운 디자인에 합성할 수 있게 해줍니다. 내부적으로는 0에서 1까지의 픽셀당 불투명도인"," ",(0,a.jsx)("em",{children:"알파 매트"}),"를 추정하고, 전경을 알파 합성하여 다른 것 위에 배치하는 것입니다. 이것은 ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"포터–더프"}),"의 수학이며, “프린지”와"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"스트레이트 알파 대 미리 곱해진 알파"}),"와 같은 흔히 발생하는 문제의 원인입니다. 미리 곱하기와 선형 색상에 대한 실용적인 지침은"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us
1/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"마이크로소프트의 Win2D 노트"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"쇠렌 산만"}),", 그리고"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"로몬트의 선형 블렌딩에 대한 글"}),"을 참조하십시오."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"사람들이 배경을 제거하는 주요 방법"}),(0,a.jsx)("h3",{children:"1) 크로마 키(“그린/블루 스크린”)"}),(0,a.jsxs)("p",{children:["촬영을 제어할 수 있다면 배경을 단색(주로 녹색)으로 칠하고 해당 색조를 ",(0,a.jsx)("em",{children:"키"}),"로 빼냅니다. 이 방법은 빠르고, 영화 및 방송에서 검증되었으며, 비디오에 이상적입니다. 단점은 조명과 의상입니다: 색깔 있는 빛이 가장자리(특히 머리카락)에 번지므로, 오염을 중화하기 위해 ",(0,a.jsx)("em",{children:"디스필 도구"}),"를 사용해야 합니다. 좋은 입문 자료로는 ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"누크의 문서"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"믹싱 라이트"}),", 그리고 직접 해보는"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"퓨전 데모"}),"가 있습니다."]}),(0,a.jsx)("h3",{children:"2) 대화형 분할(고전 CV)"}),(0,a.jsxs)("p",{children:["배경이 지저분한 단일 이미지의 경우, ",(0,a.jsx)("em",{children:"대화형"})," 알고리즘은 사용자의 몇 가지 힌트(예: 느슨한 사각형이나 낙서)를 필요로 하며, 선명한 마스크를 생성합니다. 표준적인 방법은"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"그랩컷"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"책의 장"}),")으로, 전경/배경의 색상 모델을 학습하고 그래프 컷을 반복적으로 사용하여 분리합니다.",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"GIMP의 전경 선택"}),"에서도 비슷한 아이디어를 볼 수 있으며, 이는"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"ImageJ 플러그인"}),")에 기반합니다."]}),(0,a.jsx)("h3",{children:"3) 이미지 매팅(세밀한 알파)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"매팅"}),"은 가느다란 경계(머리카락, 털, 연기, 유리)에서 부분적인 투명도를 해결합니다. 고전적인"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"폐쇄형 매팅"}),"은"," ",(0,a.jsx)("em",{children:"트라이맵"}),"(확실한 전경/확실한 배경/알 수 없음)을 사용하여 강력한 가장자리 정확도로 알파에 대한 선형 시스템을 풉니다. 현대적인"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"딥 이미지 매팅"}),"은"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"어도비 컴포지션-1K"})," 데이터셋(",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"MMEditing 문서"}),")에서 신경망을 훈련시키며,"," ","SAD, MSE, 그래디언트, 연결성과 같은 메트릭으로 평가됩니다(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"벤치마크 설명"}),")."]}),(0,a.jsx)("h3",{children:"4) 딥 러닝 컷아웃(트라이맵 없음)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),"(두드러진 객체 감지)은 강력한 일반 “배경 제거” 엔진입니다"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"리포지토리"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),"은 실시간 인물 매팅을 목표로 합니다(",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, 알파(FBA) 매팅"}),"은 색상 후광을 줄이기 위해 전경, 배경, 알파를 함께 예측합니다"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"리포지토리"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"배경 매팅 V2"}),"는 깨끗한 배경을 가정하고 최대 4K/30fps에서 실시간으로 머리카락 한 올 수준의 마스크를 생성합니다"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"프로젝트 페이지"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/Backgroun
1dMattingV2",target:"_blank",rel:"noreferrer",children:"리포지토리"}),")."]})]}),(0,a.jsxs)("p",{children:["관련된 분할 작업도 유용합니다:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"}),"는 인코더-디코더와 아트러스 컨볼루션으로 경계를 다듬습니다"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"마스크 R-CNN"}),"은 인스턴스별 마스크를 제공합니다"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); 그리고"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM(Segment Anything)"}),"은"," ","새로운 이미지에 대해 제로샷으로 마스크를 생성하는 ",(0,a.jsx)("em",{children:"프롬프트 기반"})," 기본 모델입니다."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"인기 있는 도구의 기능"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"포토샵"}),": ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"배경 제거 빠른 작업"}),"은 내부적으로 “피사체 선택 → 레이어 마스크”를 실행합니다"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"여기서 확인"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"튜토리얼"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"전경 선택"}),"(SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": 이미지 및 짧은 비디오를 위한 원클릭"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"배경 제거기"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": 자동화를 위한 웹 앱 + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"애플 기기"}),": 사진/사파리/퀵룩의 시스템 수준 “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"피사체 들어올리기"}),"”"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"iOS의 컷아웃"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"더 깨끗한 컷아웃을 위한 워크플로우 팁"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"스마트하게 촬영하세요."})," 좋은 조명과 강한 피사체-배경 대비는 모든 방법에 도움이 됩니다. 그린/블루 스크린을 사용할 경우,"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"디스필"}),"을 계획하세요"," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"가이드"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"전체적으로 시작하여 세부적으로 다듬으세요."})," 자동 선택(피사체 선택,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),")을 실행한 다음, 브러시나 매팅(예:"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"폐쇄형"}),")으로 가장자리를 다듬습니다."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"반투명에 유의하세요."})," 유리, 베일, 모션 블러, 날리는 머리카락은 단순한 하드 마스크가 아닌 진정한 알파가 필요합니다."," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"}),"를 복구하는 방법은 후광을 최소화합니다."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"알파 채널을 이해하세요."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"스트레이트 대 미리 곱해진 알파"}),"는 다른 가장자리 동작을 생성합니다; 일관되게 내보내기/합성하세요(참조:"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"개요"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"하그리브스"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"올바른 출력을 선택하세요."})," “배경 없음”의 경우, 깨끗한 알파가 있는 래스터(예: PNG/WebP)를 제공하거나, 추가 편집이 예상되는 경우 마스크가 있는 레이어 파일을 유지하세요. 핵심은"," ","계산한 ",(0,a.jsx)("em",{children:"알파의 품질"}),"이며, 이는 ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"포터–더프"}),"에 뿌리를 두고 있습니다."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"품질 및 평가"}),(0,a.jsxs)("p",{children:["학술 연구에서는 ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"컴포지션-1K"}),"에 대한 ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"그래디언트"}),", ",(0,a.jsx)("em",{children:"연결성"})," 오류를 보고합니다. 모델을 선택하는 경우 해당 메트릭을 찾아보세요"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"메트릭 정의"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"배경 매팅 메트릭 섹션"}),"). 인물/비디오의 경우, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),"과"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"배경 매팅 V2"}),"가 강력합니다; 일반적인 “두드러진 객체” 이미지의 경우,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),"이 견고한 기준선입니다; 어려운 투명도의 경우,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),"가 더 나은 결과를 제공할 수 있습니다."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"일반적인 엣지 케이스(및 수정)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"머리카락 및 털:"})," 매팅(트라이맵 또는"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),"과 같은 인물 매팅)을 선호하고 체커보드 배경에서 검사하세요."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"미세 구조(자전거 바퀴살, 낚싯줄):"})," 고해상도 입력을 사용하고 매팅 전 사전 단계로"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"}),"와 같은 경계 인식 분할기를 사용하세요."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"투명한 것들(연기, 유리):"})," 부분적인 알파와 종종 전경색 추정이 필요합니다"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"화상 회의:"})," 깨끗한 플레이트를 캡처할 수 있다면,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"배경 매팅 V2"}),"가 순진한 “가상 배경” 토글보다 더 자연스러워 보입니다."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"실생활에서 나타나는 곳"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"전자상거래:"})," 마켓플레이스(예: 아마존)는 종종 ",(0,a.jsx)("em",{children:"순백색"})," 메인 이미지 배경을 요구합니다; 참조:"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"제품 이미지 가이드"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"디자인 도구:"})," 캔바의"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"배경 제거기"}),"와 포토샵의"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"배경 제거"}),"는"," ","빠른 컷아웃을 간소화합니다."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"기기 내 편의성:"})," iOS/macOS의 “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"피사체 들어올리기"}),"”는 가벼운 공유에 좋습니다."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"컷아웃이 가짜처럼 보이는 이유(및 수정)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"색상 번짐:"})," 녹색/파란색 빛이 피사체를 감쌉니다—"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"디스필 컨트롤"})," 또는 대상 색상 교체를 사용하세요."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"후광/프린지:"})," 일반적으로 알파 해석 불일치(스트레이트 대 미리 곱해진) 또는 이전 배경에 오염된 가장자리 픽셀; 올바르게 변환/해석하세요"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"개요"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"세부 정보"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"잘못된 블러/그레인:"})," 부드러운 배경에 날카로운 피사체를 붙여넣으면 튀어나옵니다; 합성 후 렌즈 블러와 그레인을 일치시키세요(참조:"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"포터–더프 기본"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"TL;DR 플레이북"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"촬영을 제어하는 경우:"})," 크로마 키를 사용하세요; 고르게 조명하세요;"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"디스필"}),"을 계획하세요."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"일회성 사진인 경우:"})," 포토샵의"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"배경 제거"}),","," ","캔바의"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"제거기"}),", 또는"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"를 시도하세요; 머리카락은 브러시/매팅으로 다듬으세요."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"프로덕션급 가장자리가 필요한 경우:"})," 매팅( "," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"폐쇄형"})," ","또는 딥)을 사용하고 투명도에서 알파를 확인하세요;"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"알파 해석"}),"에 유의하세요."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"인물/비디오의 경우:"})," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," 또는"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"배경 매팅 V2"}),"를 고려하세요; 클릭 유도 분할의 경우,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"은 강력한 프론트엔드입니다."]})]})]})},de:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Hintergrundentfernung"})," trennt ein Motiv von seiner Umgebung, sodass Sie es auf Transparenz platzieren, die Szene austauschen oder es in ein neues Design komponieren können. Unter der Haube schätzen Sie eine"," ",(0,a.jsx)("em",{children:"Alpha-Matte"})," – eine pro-Pixel-Deckkraft von 0 bis 1 – und dann den Vordergrund mittels Alpha-Compositing über etwas anderem legen. Dies ist die Mathematik von ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," und die Ursache für typische Fallstricke wie „Ränder“ und"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"gerades vs. vormultipliziertes Alpha"}),". Praktische Anleitungen zur Vormultiplikation und linearen Farbe finden Sie in"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us
1/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"Microsofts Win2D-Notizen"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"})," und"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"Lomonts Beitrag zum linearen Blending"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Die wichtigsten Methoden zur Hintergrundentfernung"}),(0,a.jsx)("h3",{children:"1) Chroma-Keying („Green/Blue Screen“)"}),(0,a.jsxs)("p",{children:["Wenn Sie die Aufnahme steuern können, malen Sie den Hintergrund in einer Volltonfarbe (oft grün) und ",(0,a.jsx)("em",{children:"keyen"})," Sie diesen Farbton aus. Es ist schnell, in Film und Fernsehen bewährt und ideal für Videos. Die Kompromisse sind Beleuchtung und Garderobe: farbiges Licht schwappt auf die Ränder (besonders Haare), daher verwenden Sie ",(0,a.jsx)("em",{children:"Despill-Werkzeuge"}),", um die Kontamination zu neutralisieren. Gute Einführungen umfassen ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"Nukes Dokumentation"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"})," und eine praktische"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion-Demo"}),"."]}),(0,a.jsx)("h3",{children:"2) Interaktive Segmentierung (klassisches CV)"}),(0,a.jsxs)("p",{children:["Bei Einzelbildern mit unordentlichen Hintergründen benötigen ",(0,a.jsx)("em",{children:"interaktive"})," Algorithmen einige Benutzerhinweise – z. B. ein lockeres Rechteck oder Kritzeleien – und erzeugen eine scharfe Maske. Die kanonische Methode ist"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"Buchkapitel"}),"), das Farbmodelle für Vordergrund/Hintergrund lernt und Graphenschnitte iterativ verwendet, um sie zu trennen. Ähnliche Ideen finden Sie in ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"GIMPs Vordergrundauswahl"})," basierend auf"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"ImageJ-Plugin"}),")."]}),(0,a.jsx)("h3",{children:"3) Image Matting (feinkörniges Alpha)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"Matting"})," löst die fraktionierte Transparenz an feinen Grenzen (Haare, Fell, Rauch, Glas). Klassisches"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"Closed-Form-Matting"})," ","nimmt eine ",(0,a.jsx)("em",{children:"Trimap"})," (eindeutig-Vordergrund/eindeutig-Hintergrund/unbekannt) und löst ein lineares System für Alpha mit starker Kantentreue. Modernes"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"Deep Image Matting"})," ","trainiert neuronale Netze auf dem ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"}),"-Datensatz (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"MMEditing-Dokumentation"}),") und wird mit Metriken wie"," ","SAD, MSE, Gradient und Konnektivität bewertet (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"Benchmark-Erklärung"}),")."]}),(0,a.jsx)("h3",{children:"4) Deep-Learning-Ausschnitte (keine Trimap)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (Salient-Object-Detection) ist eine starke allgemeine „Hintergrund entfernen“-Engine"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"Repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," zielt auf Echtzeit-Porträt-Matting ab (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) Matting"})," sagt gemeinsam Vordergrund, Hintergrund und Alpha voraus, um Farbsäume zu reduzieren"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"Repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," geht von einer Hintergrundplatte aus und liefert strähnengenaue Mattes in Echtzeit mit bis zu 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"Projektseite"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"Repo"}),")."]})]}),(0,a.jsxs)("p",{children:["Verwandte Segmentierungsarbeiten sind ebenfalls nützlich:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," verfeinert Grenzen mit einem Encoder-Decoder und atrousen Faltungen"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," liefert instanzspezifische Masken"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); und"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," ist ein"," ",(0,a.jsx)("em",{children:"durch Prompts steuerbares"})," Grundlagenmodell, das Zero-Shot-Masken auf unbekannten Bildern erzeugt."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Was beliebte Tools tun"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": Die Schnellaktion ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Hintergrund entfernen"})," führt unter der Haube „Motiv auswählen → Ebenenmaske“ aus"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"hier bestätigt"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"Tutorial"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Vordergrundauswahl"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": 1-Klick-"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Hintergrundentferner"})," für Bilder und kurze Videos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": Web-App + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," zur Automatisierung."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Apple-Geräte"}),": systemweites „",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Motiv vom Hintergrund lösen"}),"“ in Fotos/Safari/Quick Look"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"Ausschnitte unter iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Workflow-Tipps für sauberere Ausschnitte"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Intelligent fotografieren."})," Gute Beleuchtung und starker Motiv-Hintergrund-Kontrast helfen bei jeder Methode. Planen Sie bei Green/Blue Screens"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"Despill"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Anleitung"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Beginnen Sie mit einer breiten Auswahl und verfeinern Sie dann die Details."})," Führen Sie eine automatische Auswahl aus (Motiv auswählen,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), und verfeinern Sie dann die Kanten mit Pinseln oder Matting (z. B."," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"Closed-Form"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Achten Sie auf Halbtransparenz."})," Glas, Schleier, Bewegungsunschärfe, fliegende Haare benötigen echtes Alpha (nicht nur eine harte Maske). Methoden, die auch"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," wiederherstellen, minimieren Farbsäume."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Kennen Sie Ihr Alpha."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Gerades vs. vormultipliziertes"})," Alpha erzeugt unterschiedliches Kantenverhalten; exportieren/komponieren Sie konsistent (siehe"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"Übersicht"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Wählen Sie die richtige Ausgabe."})," Für „kein Hintergrund“ liefern Sie ein Raster mit sauberem Alpha (z. B. PNG/WebP) oder behalten Sie geschichtete Dateien mit Masken, wenn weitere Bearbeitungen erwartet werden. Der Schlüssel ist die"," ",(0,a.jsx)("em",{children:"Qualität des Alphas"}),", das Sie berechnet haben – verwurzelt in ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Qualität & Bewertung"}),(0,a.jsxs)("p",{children:["Akademische Arbeiten berichten über ",(0,a.jsx)("em",{children:"SAD"}),"-, ",(0,a.jsx)("em",{children:"MSE"}),"-, ",(0,a.jsx)("em",{children:"Gradienten"}),"- und ",(0,a.jsx)("em",{children:"Konnektivitäts"}),"-Fehler auf"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". Wenn Sie ein Modell auswählen, suchen Sie nach diesen Metriken"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"Metrikdefinitionen"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"Metrikabschnitt von Background Matting"}),"). Für Porträts/Videos sind ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," und"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," leistungsstark; für allgemeine „saliente Objekt“-Bilder ist"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," eine solide Grundlage; für schwierige Transparenz kann"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," sauberer sein."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Häufige Randfälle (und Korrekturen)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Haare & Fell:"})," bevorzugen Sie Matting (Trimap oder Porträt-Matting wie"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") und prüfen Sie auf einem Schachbretthintergrund."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Feine Strukturen (Fahrradspeichen, Angelschnur):"})," verwenden Sie hochauflösende Eingaben und einen grenzbewussten Segmentierer wie"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," als Vorschritt vor dem Matting."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Durchsichtige Dinge (Rauch, Glas):"})," Sie benötigen fraktioniertes Alpha und oft eine Vordergrundfarbschätzung"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Videokonferenzen:"})," Wenn Sie eine saubere Platte aufnehmen können, sieht"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," natürlicher aus als naive „virtueller Hintergrund“-Optionen."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Wo dies in der realen Welt auftaucht"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"E-Commerce:"})," Marktplätze (z. B. Amazon) verlangen oft einen ",(0,a.jsx)("em",{children:"reinweißen"})," Hauptbildhintergrund; siehe"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"Produktbild-Leitfaden"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Design-Tools:"})," Canvas"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Hintergrundentferner"})," und Photoshops"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Hintergrund entfernen"})," ","optimieren schnelle Ausschnitte."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Bequemlichkeit auf dem Gerät:"})," iOS/macOS „",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Motiv vom Hintergrund lösen"}),"“ ist ideal für gelegentliches Teilen."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Warum Ausschnitte manchmal unecht aussehen (und Korrekturen)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Farbsaum:"})," grünes/blaues Licht umgibt das Motiv – verwenden Sie"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"Despill-Steuerungen"})," oder gezielten Farbersatz."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Halo/Ränder:"})," normalerweise eine Alpha-Interpretations-Fehlanpassung (gerade vs. vormultipliziert) oder Kantenpixel, die durch den alten Hintergrund kontaminiert sind; korrekt konvertieren/interpretieren"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"Übersicht"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Details"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Falsche Unschärfe/Körnung:"})," Fügen Sie ein gestochen scharfes Motiv in einen weichen Hintergrund ein und es sticht heraus; passen Sie die Linsenunschärfe und die Körnung nach dem Compositing an (siehe"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff-Grundlagen"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"TL;DR-Playbook"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Wenn Sie die Aufnahme kontrollieren:"})," verwenden Sie Chroma-Keying; beleuchten Sie gleichmäßig; planen Sie"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Despill"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Wenn es sich um ein einmaliges Foto handelt:"})," probieren Sie Photoshops"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Hintergrund entfernen"}),","," ","Canva’s"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Hintergrundentferner"}),", oder"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"; verfeinern Sie die Kanten mit Pinseln oder Matting-Techniken für Haare."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Wenn Sie produktionsreife Kanten benötigen:"})," verwenden Sie Matting ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"Closed-Form"})," ","oder Deep) und prüfen Sie Alpha auf Transparenz; beachten Sie die"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Interpretation des Alpha-Kanals"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Für Porträts/Videos:"})," erwägen Sie"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," oder"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"; für klickgeführte Segmentierung ist"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," ein leistungsstarkes Front-End."]})]})]})},es:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["La ",(0,a.jsx)("strong",{children:"eliminación de fondo"})," separa un sujeto de su entorno para que puedas colocarlo sobre transparencia, cambiar la escena o componerlo en un nuevo diseño. Bajo el capó, estás estimando una"," ",(0,a.jsx)("em",{children:"máscara alfa"}),", una opacidad por píxel de 0 a 1, y luego aplicando composición alfa al primer plano sobre otra cosa. Esta es la matemática de ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," y la causa de problemas comunes como los “flecos” y"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"alfa recto vs. pre-multiplicado"}),". Para obtener una guía práctica sobre la pre-multiplicación y el color lineal, consulta"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"las notas de Win2D de Microsoft"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"})," y"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"el artículo de Lomont sobre la mezcla lineal"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Las principales formas en que la gente elimina los fondos"}),(0,a.jsx)("h3",{children:"1) Croma (“pantalla verde/azul”)"}),(0,a.jsxs)("p",{children:["Si puedes controlar la captura, pinta el fondo de un color sólido (a menudo verde) y ",(0,a.jsx)("em",{children:"elimina"})," ese tono. Es rápido, de eficacia probada en cine y televisión, e ideal para vídeo. Las desventajas son la iluminación y el vestuario: la luz de color se derrama sobre los bordes (especialmente el pelo), por lo que usarás herramientas de ",(0,a.jsx)("em",{children:"eliminación de derrame de color"})," para neutralizar la contaminación. Algunas buenas introducciones son ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"la documentación de Nuke"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"})," y una demostración práctica de"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion"}),"."]}),(0,a.jsx)("h3",{children:"2) Segmentación interactiva (CV clásica)"}),(0,a.jsxs)("p",{children:["Para imágenes individuales con fondos desordenados, los algoritmos ",(0,a.jsx)("em",{children:"interactivos"})," necesitan algunas pistas del usuario, por ejemplo, un rectángulo suelto o garabatos, y generan una máscara nítida. El método canónico es"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"capítulo de libro"}),"), que aprende modelos de color para el primer plano/fondo y utiliza cortes de grafo de forma iterativa para separarlos. Verás ideas similares en la ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Selección de primer plano de GIMP"})," basada en"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"plugin de ImageJ"}),")."]}),(0,a.jsx)("h3",{children:"3) Matting de imagen (alfa de grano fino)"}),(0,a.jsxs)("p",{children:["El ",(0,a.jsx)("em",{children:"Matting"})," resuelve la transparencia fraccional en los límites tenues (pelo, pelaje, humo, vidrio). El"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"matting de forma cerrada"})," ","clásico toma un ",(0,a.jsx)("em",{children:"trimapa"})," (definitivamente-primer plano/definitivamente-fondo/desconocido) y resuelve un sistema lineal para alfa con una fuerte precisión de borde. El"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"matting de imagen profundo"})," ","moderno entrena redes neuronales en el conjunto de datos ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"documentos de MMEditing"}),"), y se evalúa con métricas como"," ","SAD, MSE, Gradiente y Conectividad (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"explicador del benchmark"}),")."]}),(0,a.jsx)("h3",{children:"4) Recortes de aprendizaje profundo (sin trimapa)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (detección de objetos salientes) es un potente motor general de “eliminación de fondo”"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"repositorio"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," se dirige al matting de retratos en tiempo real (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) Matting"})," predice conjuntamente el primer plano, el fondo y el alfa para reducir los halos de color"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"repositorio"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," asume una placa de fondo y produce mates a nivel de hebra en tiempo real hasta 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"página del proyecto"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"repositorio"}),")."]})]}),(0,a.jsxs)("p",{children:["El trabajo de segmentación relacionado también es útil:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," refina los límites con un codificador-decodificador y convoluciones atrous"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," proporciona máscaras por instancia"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); y"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," es un"," ","modelo de base ",(0,a.jsx)("em",{children:"controlable por prompts"})," que genera máscaras de cero disparos en imágenes no familiares."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Qué hacen las herramientas populares"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": la acción rápida ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Eliminar fondo"})," ejecuta “Seleccionar sujeto → máscara de capa” bajo el capó"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"confirmado aquí"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"tutorial"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Selección de primer plano"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Eliminador de fondo de 1 clic"})," para imágenes y vídeos cortos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": aplicación web + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," para automatización."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Dispositivos Apple"}),": “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Levantar sujeto"}),"” a nivel de sistema en Fotos/Safari/Vista rápida"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"recortes en iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Consejos de flujo de trabajo para recortes más limpios"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Dispara de forma inteligente."})," Una buena iluminación y un fuerte contraste entre el sujeto y el fondo ayudan a todos los métodos. Con pantallas verdes/azules, planifica la"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"eliminación del derrame de color"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"guía"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Empieza con una selección amplia y luego refina los detalles."})," Ejecuta una selección automática (Seleccionar sujeto,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), luego refina los bordes con pinceles o matting (p. ej.,"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"de forma cerrada"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Ten en cuenta la semitransparencia."})," El vidrio, los velos, el desenfoque de movimiento, el pelo alborotado necesitan un alfa real (no solo una máscara dura). Los métodos que también recuperan"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," minimizan los halos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Conoce tu alfa."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Recto vs. pre-multiplicado"})," producen un comportamiento de borde diferente; exporta/compón de forma coherente (ver"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"descripción general"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Elige la salida correcta."})," Para “sin fondo”, entrega un ráster con un alfa limpio (p. ej., PNG/WebP) o conserva los archivos en capas con máscaras si se esperan más ediciones. La clave es la"," ",(0,a.jsx)("em",{children:"calidad del alfa"})," que calculaste, arraigada en ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Calidad y evaluación"}),(0,a.jsxs)("p",{children:["El trabajo académico informa de errores de ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradiente"})," y ",(0,a.jsx)("em",{children:"Conectividad"})," en"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". Si estás eligiendo un modelo, busca esas métricas"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"definiciones de métricas"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"sección de métricas de Background Matting"}),"). Para retratos/vídeo, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," y"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," son potentes; para imágenes generales de “objetos salientes”,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," es una base sólida; para transparencias difíciles,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," puede ser más limpio."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Casos extremos comunes (y soluciones)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Pelo y pelaje:"})," prefiere el matting (trimapa o matting de retratos como"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") e inspecciona sobre un fondo de tablero de ajedrez."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Estructuras finas (radios de bicicleta, hilo de pescar):"})," utiliza entradas de alta resolución y un segmentador consciente de los límites como"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," como paso previo al matting."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Cosas transparentes (humo, vidrio):"})," necesitas alfa fraccional y, a menudo, estimación del color del primer plano"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Videoconferencias:"})," si puedes capturar una placa limpia,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," parece más natural que las ingenuas opciones de “fondo virtual”."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Dónde aparece esto en el mundo real"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Comercio electrónico:"})," los mercados (p. ej., Amazon) a menudo requieren un fondo de imagen principal ",(0,a.jsx)("em",{children:"blanco puro"}),"; consulta la"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"Guía de imágenes de productos"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Herramientas de diseño:"})," el"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Eliminador de fondo"})," de Canva y"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Eliminar fondo"})," de Photoshop"," ","agilizan los recortes rápidos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Comodidad en el dispositivo:"})," “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Levantar sujeto"}),"” de iOS/macOS es ideal para compartir de forma casual."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Por qué los recortes a veces parecen falsos (y soluciones)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Derrame de color:"})," la luz verde/azul envuelve al sujeto; utiliza"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"controles de eliminación de derrame de color"})," o reemplazo de color específico."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Halo/flecos:"})," generalmente una falta de coincidencia en la interpretación alfa (recto vs. pre-multiplicado) o píxeles de borde contaminados por el fondo antiguo; convierte/interpreta correctamente"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"descripción general"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"detalles"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Desenfoque/grano incorrectos:"})," pega un sujeto nítido en un fondo suave y resaltará; iguala el desenfoque de la lente y el grano después de la composición (ver"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"conceptos básicos de Porter–Duff"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Manual TL;DR"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Si controlas la captura:"})," usa croma; ilumina de manera uniforme; planifica la"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"eliminación del derrame de color"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Si es una foto única:"})," prueba ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Eliminar fondo"})," de Photoshop,"," ","el ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"eliminador de fondos de Canva"})," o"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"; refina los bordes con pinceles o técnicas de matting para el pelo."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Si necesitas bordes de calida
1d de producción:"})," usa matting ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"de forma cerrada"})," ","o profundo) y comprueba el alfa en la transparencia; ten en cuenta la"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"interpretación del canal alfa"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Para retratos/vídeo:"})," considera"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," o"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Background Matting V2"}),"; para la segmentación guiada por clics,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," es un potente front-end."]})]})]})},pt:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["A ",(0,a.jsx)("strong",{children:"remoção de fundo"})," separa um objeto de seu ambiente para que você possa colocá-lo em transparência, trocar a cena ou compô
1-lo em um novo design. Nos bastidores, você está estimando uma"," ",(0,a.jsx)("em",{children:"máscara alfa"}),"—uma opacidade por pixel de 0 a 1—e então aplicando composição alfa ao primeiro plano sobre outra coisa. Esta é a matemática de ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," e a causa de problemas comuns como “franjas” e"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"alfa reto vs. pré-multiplicado"}),". Para orientação prática sobre pré-multiplicação e cor linear, consulte"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"as notas do Win2D da Microsoft"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"})," e"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"o artigo de Lomont sobre mistura linear"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"As principais maneiras de remover fundos"}),(0,a.jsx)("h3",{children:"1) Chroma key (“tela verde/azul”)"}),(0,a.jsxs)("p",{children:["Se você puder controlar a captura, pinte o fundo com uma cor sólida (geralmente verde) e ",(0,a.jsx)("em",{children:"remova"})," esse tom. É rápido, testado e aprovado em filmes e transmissões, e ideal para vídeo. As desvantagens são a iluminação e o vestuário: a luz colorida vaza para as bordas (especialmente o cabelo), então você usará ",(0,a.jsx)("em",{children:"ferramentas de despill"})," para neutralizar a contaminação. Boas referências incluem ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"a documentação do Nuke"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"})," e uma demonstração prática do"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion"}),"."]}),(0,a.jsx)("h3",{children:"2) Segmentação interativa (CV clássico)"}),(0,a.jsxs)("p",{children:["Para imagens únicas com fundos bagunçados, algoritmos ",(0,a.jsx)("em",{children:"interativos"})," precisam de algumas dicas do usuário—por exemplo, um retângulo solto ou rabiscos—e geram uma máscara nítida. O método canônico é"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"capítulo de livro"}),"), que aprende modelos de cores para primeiro plano/fundo e usa cortes de grafo iterativamente para separá-los. Você verá ideias semelhantes na ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Seleção de Primeiro Plano do GIMP"})," baseada em"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"plugin ImageJ"}),")."]}),(0,a.jsx)("h3",{children:"3) Matting de imagem (alfa de granulação fina)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"Matting"})," resolve a transparência fracionária em limites finos (cabelo, pelo, fumaça, vidro). O"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"matting de forma fechada"})," ","clássico pega um ",(0,a.jsx)("em",{children:"trimap"})," (definitivamente-primeiro plano/definitivamente-fundo/desconhecido) e resolve um sistema linear para alfa com forte precisão de borda. O"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"matting de imagem profundo"})," ","moderno treina redes neurais no conjunto de dados ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"documentos do MMEditing"}),"), e é avaliado com métricas como"," ","SAD, MSE, Gradiente e Conectividade (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"explicador de benchmark"}),")."]}),(0,a.jsx)("h3",{children:"4) Recortes de aprendizado profundo (sem trimap)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (detecção de objetos salientes) é um forte motor geral de “remover fundo”"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," visa o matting de retratos em tempo real (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) Matting"})," prevê conjuntamente primeiro plano, fundo e alfa para reduzir halos de cor"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," assume um fundo limpo e produz máscaras no nível de fios de cabelo em tempo real em até 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"página do projeto"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"repo"}),")."]})]}),(0,a.jsxs)("p",{children:["Trabalhos de segmentação relacionados também são úteis:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," refina limites com um codificador-decodificador e convoluções atrous"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," fornece máscaras por instância"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); e"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," é um"," ","modelo de base ",(0,a.jsx)("em",{children:"controlável por prompt"})," que gera máscaras sem necessidade de treinamento em imagens desconhecidas."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"O que as ferramentas populares fazem"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": a ação rápida ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Remover Fundo"})," executa “Selecionar Objeto → máscara de camada” nos bastidores"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"confirmado aqui"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"tutorial"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Seleção de Primeiro Plano"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Removedor de Fundo"})," de 1 clique para imagens e vídeos curtos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": aplicativo da web + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," para automação."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Dispositivos Apple"}),": “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Destacar Objeto do Fundo"}),"” no nível do sistema em Fotos/Safari/Visualização Rápida"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"recortes no iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Dicas de fluxo de trabalho para recortes mais limpos"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Fotografe de forma inteligente."})," Boa iluminação e forte contraste entre objeto e fundo ajudam em todos os métodos. Com telas verdes/azuis, planeje o"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"despill"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"guia"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Comece de forma ampla e refine os detalhes."})," Execute uma seleção automática (Selecionar Objeto,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), depois refine as bordas com pincéis ou matting (por exemplo,"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"forma fechada"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Atenção à semitransparência."})," Vidro, véus, desfoque de movimento, cabelos esvoaçantes precisam de alfa verdadeiro (não apenas uma máscara dura). Métodos que também recuperam"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," minimizam halos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Entenda o canal alfa."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Reto vs. pré-multiplicado"})," produzem comportamento de borda diferente; exporte/componha de forma consistente (veja"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"visão geral"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Escolha o formato de saída correto."})," Para “sem fundo”, entregue um raster com um alfa limpo (por exemplo, PNG/WebP) ou mantenha arquivos em camadas com máscaras se forem esperadas mais edições. A chave é a"," ",(0,a.jsx)("em",{children:"qualidade do alfa"})," que você calculou—enraizada em ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Qualidade e avaliação"}),(0,a.jsxs)("p",{children:["Trabalhos acadêmicos relatam erros de ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradiente"})," e ",(0,a.jsx)("em",{children:"Conectividade"})," em"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". Se você está escolhendo um modelo, procure por essas métricas"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"definições de métricas"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"seção de métricas do Background Matting"}),"). Para retratos/vídeo, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," e"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," são potentes; para imagens gerais de “objetos salientes”,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," é uma base sólida; para transparências difíceis,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," pode apresentar resultados melhores."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Casos limite comuns (e soluções)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Cabelo e pelo:"})," dê preferência ao matting (trimap ou matting de retrato como"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") e inspecione sobre um fundo de tabuleiro de xadrez.    "]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Estruturas finas (raios de bicicleta, linha de pesca):"})," use entradas de alta resolução e um segmentador ciente de limites como"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," como uma etapa pré-matting."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Objetos transparentes (fumaça, vidro):"})," você precisa de alfa fracionário e, muitas vezes, estimativa de cor do primeiro plano"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Videoconferência:"})," se você puder capturar uma placa limpa,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," parece mais natural do que as ingênuas opções de “fundo virtual”.    "]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Onde isso aparece no mundo real"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Comércio eletrônico:"})," marketplaces (por exemplo, Amazon) geralmente exigem um fundo de imagem principal ",(0,a.jsx)("em",{children:"branco puro"}),"; consulte o"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"Guia de imagem do produto"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Ferramentas de design:"})," o"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Removedor de Fundo"})," do Canva e o"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Remover Fundo"})," do Photoshop"," ","otimizam recortes rápidos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Conveniência no dispositivo:"})," o “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Destacar Objeto do Fundo"}),"” do iOS/macOS é ótimo para compartilhamento informal."]})]}),(0,a.jsx)("hr",{}
1),(0,a.jsx)("h2",{children:"Por que os recortes às vezes parecem falsos (e correções)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Vazamento de cor:"})," a luz verde/azul envolve o objeto—use"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"controles de despill"})," ou substituição de cor localizada."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Halo/franjas:"})," geralmente uma incompatibilidade de interpretação de alfa (reto vs. pré-multiplicado) ou pixels de borda contaminados pelo fundo antigo; converta/interprete corretamente"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"visão geral"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"detalhes"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Desfoque/grão errado:"})," cole um objeto nítido em um fundo desfocado e ele se sobressairá; combine o desfoque da lente e o granulado após a composição (veja"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"noções básicas de Porter–Duff"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Manual TL;DR"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Se você controla a captura:"})," use chroma key; ilumine uniformemente; planeje o"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"despill"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Se for uma foto única:"})," experimente o ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Removedor de Fundo"})," do Photoshop,"," ","o ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"removedor"})," do Canva ou"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"; refine com pincéis/matting para cabelos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Se você precisa de bordas de nível de produção:"})," use matting ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"forma fechada"})," ","ou profundo) e verifique o alfa na transparência; atente-se à"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"interpretação do alfa"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Para retratos/vídeo:"})," considere"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," ou"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"; para segmentação guiada por cliques,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," é um front-end poderoso."]})]})]})},fr:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["La ",(0,a.jsx)("strong",{children:"suppression de l'arrière-plan"})," sépare un sujet de son environnement afin que vous puissiez le placer sur la transparence, échanger la scène ou la composer dans un nouveau design. Sous le capot, vous estimez un"," ",(0,a.jsx)("em",{children:"masque alpha"}),"—une opacité par pixel de 0 à 1—puis vous ",(0,a.jsx)("em",{children:"composez alpha"})," le premier plan sur autre chose. C'est le calcul de ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," et la cause de pièges familiers comme les « franges » et"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"l'alpha droit contre l'alpha prémultiplié"}),". Pour des conseils pratiques sur la prémultiplication et la couleur linéaire, consultez"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"les notes Win2D de Microsoft"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"}),", et"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"l'article de Lomont sur le mélange linéaire"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Les principales façons de supprimer les arrière-plans"}),(0,a.jsx)("h3",{children:"1) Incrustation chroma (« écran vert/bleu »)"}),(0,a.jsxs)("p",{children:["Si vous pouvez contrôler la capture, peignez l'arrière-plan d'une couleur unie (souvent verte) et ",(0,a.jsx)("em",{children:"retirez"})," cette teinte. C'est rapide, éprouvé dans le cinéma et la diffusion, et idéal pour la vidéo. Les compromis sont l'éclairage et la garde-robe : la lumière colorée se propage sur les bords (surtout les cheveux), vous utiliserez donc des outils de ",(0,a.jsx)("em",{children:"suppression de déversement"})," pour neutraliser la contamination. De bonnes introductions incluent ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"la documentation de Nuke"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"}),", et une démo pratique de"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion"}),"."]}),(0,a.jsx)("h3",{children:"2) Segmentation interactive (CV classique)"}),(0,a.jsxs)("p",{children:["Pour les images uniques avec des arrière-plans désordonnés, les algorithmes ",(0,a.jsx)("em",{children:"interactifs"})," ont besoin de quelques indices de l'utilisateur, par exemple un rectangle lâche ou des gribouillis, et convergent vers un masque net. La méthode canonique est"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"chapitre de livre"}),"), qui apprend les modèles de couleur pour le premier plan/l'arrière-plan et utilise les coupes de graphe de manière itérative pour les séparer. Vous verrez des idées similaires dans la ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Sélection de premier plan de GIMP"})," basée sur"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"plugin ImageJ"}),")."]}),(0,a.jsx)("h3",{children:"3) Matage d'image (alpha à grain fin)"}),(0,a.jsxs)("p",{children:["Le ",(0,a.jsx)("em",{children:"matage"})," résout la transparence fractionnaire aux frontières vaporeuses (cheveux, fourrure, fumée, verre). Le"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"matage classique à forme fermée"})," ","prend une ",(0,a.jsx)("em",{children:"trimap"})," (certainement-premier plan/certainement-arrière-plan/inconnu) et résout un système linéaire pour l'alpha avec une forte fidélité des bords. Le"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"matage d'image profond moderne"})," ","entraîne des réseaux de neurones sur l'ensemble de données ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"docs MMEditing"}),"), et est évalué avec des métriques comme"," ","SAD, MSE, Gradient et Connectivité (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"explication du benchmark"}),")."]}),(0,a.jsx)("h3",{children:"4) Découpes par apprentissage profond (pas de trimap)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (détection d'objets saillants) est un moteur généraliste puissant pour « supprimer l'arrière-plan »"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"dépôt"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," cible le matage de portraits en temps réel (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"Matage F, B, Alpha (FBA)"})," prédit conjointement le premier plan, l'arrière-plan et l'alpha pour réduire les halos de couleur"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"dépôt"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," suppose un plan de l'arrière-plan seul et produit des masques au niveau du cheveu en temps réel jusqu'à 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"page du projet"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"dépôt"}),")."]})]}),(0,a.jsxs)("p",{children:["Les travaux de segmentation connexes sont également utiles :"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," affine les frontières avec un encodeur-décodeur et des convolutions atrous"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),") ;"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," donne des masques par instance"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),") ; et"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," est un"," ","modèle de fondation ",(0,a.jsx)("em",{children:"guidé par instructions"})," qui génère des masques sans apprentissage sur des images inconnues."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Ce que font les outils populaires"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"})," : l'action rapide ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Supprimer l'arrière-plan"})," exécute « Sélectionner le sujet → masque de calque » en coulisses"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"confirmé ici"})," ;"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"tutoriel"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"})," : ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Sélection de premier plan"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"})," : ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Suppresseur d'arrière-plan"})," en 1 clic pour les images et les courtes vidéos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"})," : application web + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," pour l'automatisation."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Appareils Apple"})," : « ",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Détacher le sujet"})," » au niveau du système dans Photos/Safari/Aperçu rapide"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"découpes sur iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Conseils de flux de travail pour des découpes plus propres"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photographiez intelligemment."})," Un bon éclairage et un fort contraste sujet-arrière-plan aident toutes les méthodes. Avec les écrans verts/bleus, prévoyez la"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"suppression de déversement"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"guide"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Commencez par une sélection globale, puis affinez les détails."})," Exécutez une sélection automatique (Sélectionner le sujet,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), puis affinez les bords avec des pinceaux ou du matage (par exemple,"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"à forme fermée"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Attention à la semi-transparence."})," Le verre, les voiles, le flou de mouvement, les cheveux rebelles nécessitent un véritable alpha (pas seulement un masque dur). Les méthodes qui récupèrent également"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," minimisent les halos."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Comprenez le canal alpha."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Droit contre prémultiplié"})," produisent un comportement de bord différent ; exportez/composez de manière cohérente (voir"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"aperçu"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Choisissez la bonne sortie."})," Pour « pas d'arrière-plan », fournissez un raster avec un alpha propre (par exemple, PNG/WebP) ou conservez les fichiers en couches avec des masques si d'autres modifications sont attendues. La clé est la"," ",(0,a.jsx)("em",{children:"qualité de l'alpha"})," que vous avez calculée, ancrée dans ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Qualité et évaluation"}),(0,a.jsxs)("p",{children:["Les travaux universitaires rapportent des erreurs de ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradient"})," et ",(0,a.jsx)("em",{children:"Connectivité"})," sur"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". Si vous choisissez un modèle, recherchez ces métriques"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"définitions des métriques"})," ;"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"section des métriques de Background Matting"}),"). Pour les portraits/vidéos, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," et"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," sont solides ; pour les images générales d'« objets saillants »,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," est une base solide ; pour les transparences difficiles,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," peut donner de meilleurs résultats."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Cas limites courants (et correctifs)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Cheveux et fourrure :"})," privilégiez le matage (trimap ou matage de portrait comme"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") et inspectez sur un damier."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Structures fines (rayons de vélo, fil de pêche) :"})," utilisez des entrées haute résolution et un segmenteur sensible aux limites tel que"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," comme étape préalable au matage."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Objets transparents (fumée, verre) :"})," vous avez besoin d'un alpha fractionnaire et souvent d'une estimation de la couleur du premier plan"," ","     (",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Vidéoconférence :"})," si vous pouvez capturer une plaque propre,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," semble plus naturel que les simples bascules « arrière-plan virtuel »."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Où cela apparaît dans le monde réel"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Commerce électronique :"})," les places de marché (par exemple, Amazon) exigent souvent un arrière-plan d'image principal ",(0,a.jsx)("em",{children:"blanc pur"})," ; voir"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"Guide des images de produits"})," ","(RVB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Outils de conception :"})," le"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Suppresseur d'arrière-plan"})," de Canva et"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Supprimer l'arrière-plan"})," de Photoshop"," ","simplifient les découpes rapides."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Commodité sur l'appareil :"})," « ",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Détacher le sujet"})," » d'iOS/macOS est idéal pour le partage occasionnel."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Pourquoi les découpes semblent parfois fausses (et correctifs)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Débordement de couleur :"})," la lumière verte/bleue enveloppe le sujet — utilisez des"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"contrôles de suppression de déversement"})," ou un remplacement de couleur ciblé."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Halo/franges :"})," généralement une mauvaise interprétation de l'alpha (droit contre prémultiplié) ou des pixels de bord contaminés par l'ancien arrière-plan ; convertissez/interprétez correctement"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"aperçu"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"détails"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Mauvais flou/grain :"}
1)," collez un sujet très net sur un arrière-plan flou et il ressortira ; faites correspondre le flou de l'objectif et le grain après la composition (voir"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"les bases de Porter–Duff"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Guide TL;DR"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Si vous contrôlez la capture :"})," utilisez l'incrustation chroma ; éclairez uniformément ; prévoyez la"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"suppression de déversement"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"S'il s'agit d'une photo unique :"})," essayez ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Supprimer l'arrière-plan"})," de Photoshop,"," ","le ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"suppresseur"})," de Canva ou"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"})," ; affinez avec des pinceaux/matage pour les cheveux."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Si vous avez besoin de bords de qualité professionnelle :"})," utilisez le matage ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"à forme fermée"})," ","ou profond) et vérifiez l'alpha sur la transparence ; faites attention à l'"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"interprétation de l'alpha"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Pour les portraits/vidéos :"})," considérez"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," ou"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," ; pour la segmentation guidée par clic,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," est une puissante interface."]})]})]})},"zh-cn":{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"背景移除"}),"将主体与其周围环境分离开来,这样你就可以将其放置在 透明背景上、更换场景或将其合成为新设计。在底层,你正在估算一个"," ",(0,a.jsx)("em",{children:"alpha 遮罩"}),"——一个从 0 到 1 的每像素不透明度——然后将前景",(0,a.jsx)("em",{children:"alpha 合成"}),"到 其他东西上。这是 ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," 的数学原理,也是“边缘”和"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"直接 alpha 与预乘 alpha"})," 等常见陷阱的起因。有关预乘和线性颜色的实用指南,请参阅"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"微软的 Win2D 笔记"}),"、"," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"})," 和"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"Lomont 关于线性混合的文章"}),"。"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"人们移除背景的主要方式"}),(0,a.jsx)("h3",{children:"1) 色度键(“绿/蓝屏”)"}),(0,a.jsxs)("p",{children:["如果你能控制拍摄,将背景涂成纯色(通常是绿色),然后",(0,a.jsx)("em",{children:"抠掉"}),"该色调。 这种方法速度快,在电影和广播中经过实战检验,非常适合视频。权衡之处在于灯光和服装: 彩色光会溢出到边缘(尤其是头发),所以你需要使用",(0,a.jsx)("em",{children:"去溢"}),"工具来中和污染。 好的入门资料包括 ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"Nuke 的文档"}),"、"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"})," 和一个实践性的"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion 演示"}),"。"]}),(0,a.jsx)("h3",{children:"2) 交互式分割(经典计算机视觉)"}),(0,a.jsxs)("p",{children:["对于背景杂乱的单张图片,",(0,a.jsx)("em",{children:"交互式"}),"算法需要用户提供一些提示——例如,一个宽松的 矩形或涂鸦——然后收敛到一个清晰的蒙版。经典方法是"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"书籍章节"}),"),它学习前景/背景的颜色模型,并迭代使用图割来分离它们。 你会在 ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"GIMP 的前景选择"}),"中看到类似的想法,它基于"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"ImageJ 插件"}),")。"]}),(0,a.jsx)("h3",{children:"3) 图像抠图(细粒度 alpha)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"抠图"}),"解决在纤细边界(头发、毛皮、烟雾、玻璃)处的部分透明度问题。经典的"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"闭式抠图"})," ","接受一个",(0,a.jsx)("em",{children:"三元图"}),"(绝对前景/绝对背景/未知),并求解一个具有强边缘保真度的 alpha 线性系统。现代的"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"深度图像抠图"})," ","在 ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," 数据集上训练神经网络(",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"MMEditing 文档"}),"),并使用"," ","SAD、MSE、梯度和连通性等指标进行评估(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"基准解释器"}),")。"]}),(0,a.jsx)("h3",{children:"4) 深度学习抠图(无三元图)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),"(显著性物体检测)是一个强大的通用“移除背景”引擎"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"代码库"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," 针对实时人像抠图(",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) 抠图"})," 联合预测前景、背景和 alpha,以减少颜色光晕"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"代码库"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"背景抠图 V2"})," 假设有一个背景板,并以高达 4K/30fps 的速度实时产生发丝级抠图"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"项目页面"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/Backgroun
1dMattingV2",target:"_blank",rel:"noreferrer",children:"代码库"}),")。"]})]}),(0,a.jsxs)("p",{children:["相关的分割工作也很有用:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," 使用编码器-解码器和空洞卷积来细化边界"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," 提供每个实例的蒙版"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");以及"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," 是一个"," ",(0,a.jsx)("em",{children:"可提示的"}),"基础模型,可在不熟悉的图像上进行零样本蒙版生成。"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"流行工具的功能"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"移除背景"})," 快速操作在底层运行“选择主体 → 图层蒙版”"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"此处确认"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"教程"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"前景选择"})," (SIOX)。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": 一键式"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"背景移除器"}),",适用于图像和短视频。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": 用于自动化的 Web 应用程序 + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"}),"。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Apple 设备"}),": 照片/Safari/快速查看中的系统级“",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"从照片背景中提取主体"}),"”"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"iOS 上的抠图"}),")。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"更清晰抠图的工作流程提示"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"智能拍摄。"})," 良好的光线和强烈的主体-背景对比度对每种方法都有帮助。对于绿/蓝屏,请计划"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"去溢"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"指南"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"从宽到窄。"})," 运行自动选择(选择主体、"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),"、"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"),然后用画笔或抠图(例如"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"闭式"}),")细化边缘。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"注意半透明。"})," 玻璃、面纱、运动模糊、飞扬的头发需要真正的 alpha(不仅仅是硬蒙版)。同时恢复"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," 的方法可以最大限度地减少光晕。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"了解你的 alpha。"})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"直接与预乘"}),"产生不同的边缘行为;一致地导出/合成(参见"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"概述"}),"、"," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"选择正确的输出。"})," 对于“无背景”,提供一个带有干净 alpha 的光栅图(例如 PNG/WebP),或者如果需要进一步编辑,则保留带有蒙版的图层文件。关键在于你计算的"," ",(0,a.jsx)("em",{children:"alpha 质量"}),"——植根于 ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"质量与评估"}),(0,a.jsxs)("p",{children:["学术著作报告了在 ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"})," 上的 ",(0,a.jsx)("em",{children:"SAD"}),"、",(0,a.jsx)("em",{children:"MSE"}),"、",(0,a.jsx)("em",{children:"梯度"}),"和",(0,a.jsx)("em",{children:"连通性"}),"错误。如果你正在选择一个模型,请查找这些指标"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"指标定义"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"背景抠图指标部分"}),")。 对于人像/视频,",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," 和"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"背景抠图 V2"})," 很强大;对于一般的“显著物体”图像,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," 是一个坚实的基线;对于棘手的透明度,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," 可能更干净。"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"常见边缘情况(及修复)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"头发和毛皮:"})," 倾向于抠图(三元图或像"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," 这样的人像抠图)并在棋盘格上检查。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"精细结构(自行车辐条、鱼线):"})," 使用高分辨率输入和像"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," 这样的边界感知分割器作为抠图前的预处理步骤。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"透明物体(烟雾、玻璃):"})," 你需要分数 alpha 和通常的前景色估计"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"视频会议:"})," 如果你能捕捉到一个干净的背景板,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"背景抠图 V2"})," 看起来比简单的“虚拟背景”切换更自然。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"这在现实世界中的应用"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"电子商务:"})," 市场(例如亚马逊)通常要求主图背景为",(0,a.jsx)("em",{children:"纯白色"}),";请参阅"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"产品图片指南"})," ","(RGB 255,255,255)。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"设计工具:"})," Canva 的"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"背景移除器"})," 和 Photoshop 的"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"移除背景"})," ","简化了快速抠图。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"设备上的便利性:"})," iOS/macOS 的“",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"从照片背景中提取主体"}),"”非常适合休闲分享。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"为什么抠图有时看起来很假(及修复)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"颜色溢出:"})," 绿色/蓝色光包裹着主体——使用"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"去溢控制"})," 或有针对性的颜色替换。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"光晕/边缘:"})," 通常是 alpha 解释不匹配(直接与预乘)或边缘像素被旧背景污染;正确转换/解释"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"概述"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"详情"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"错误的模糊/颗粒:"})," 将一个锐利的主体粘贴到一个柔和的背景上,它会显得突兀;在合成后匹配镜头模糊和颗粒(参见"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff 基础"}),")。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"TL;DR 速查手册"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"如果你控制拍摄:"})," 使用色度键;均匀打光;计划"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"去溢"}),"。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"如果是一次性照片:"})," 尝试 Photoshop 的"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"移除背景"}),"、"," ","Canva 的"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"移除器"})," 或"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),";用画笔/抠图对头发进行细化。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"如果你需要生产级边缘:"})," 使用抠图("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"闭式"})," ","或深度)并在透明背景上检查 alpha;注意"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"alpha 解释"}),"。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"对于人像/视频:"})," 考虑"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," 或"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"背景抠图 V2"}),";对于点击引导的分割,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," 是一个强大的前端。"]})]})]})},"zh-tw":{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"背景移除"}),"將主體與其周圍環境分離開來,這樣你就可以將其放置在 透明背景上、更換場景或將其合成為新設計。在底層,你正在估算一個"," ",(0,a.jsx)("em",{children:"alpha 遮罩"}),"——一個從 0 到 1 的每像素不透明度——然後將前景",(0,a.jsx)("em",{children:"alpha 合成"}),"到 其他東西上。這是 ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," 的數學原理,也是“邊緣”和"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"直接 alpha 與預乘 alpha"})," 等常見陷阱的起因。有關預乘和線性顏色的實用指南,請參閱"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us
1/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"微軟的 Win2D 筆記"}),"、"," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"})," 和"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"Lomont 關於線性混合的文章"}),"。"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"人們移除背景的主要方式"}),(0,a.jsx)("h3",{children:"1) 色度鍵(「綠/藍幕」)"}),(0,a.jsxs)("p",{children:["如果你能控制拍攝,將背景漆成純色(通常是綠色),然後",(0,a.jsx)("em",{children:"去背"}),"該色調。 這種方法速度快,在電影和廣播中經過實戰檢驗,非常適合影片。權衡之處在於燈光和服裝: 彩色光會溢出到邊緣(尤其是頭髮),所以你需要使用",(0,a.jsx)("em",{children:"去溢"}),"工具來中和污染。 好的入門資料包括 ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"Nuke 的文件"}),"、"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"})," 和一個實踐性的"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion 示範"}),"。"]}),(0,a.jsx)("h3",{children:"2) 互動式分割(傳統電腦視覺)"}),(0,a.jsxs)("p",{children:["對於背景雜亂的單張圖片,",(0,a.jsx)("em",{children:"互動式"}),"演算法需要使用者提供一些提示——例如,一個寬鬆的 矩形或塗鴉——然後收斂到一個清晰的遮罩。經典方法是"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"書中章節"}),"),它學習前景/背景的顏色模型,並迭代使用圖割來分離它們。 你會在 ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"GIMP 的前景選擇"}),"中看到類似的想法,它基於"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"ImageJ 插件"}),")。"]}),(0,a.jsx)("h3",{children:"3) 影像去背(細緻 alpha)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"去背"}),"解決在纖細邊界(頭髮、毛皮、煙霧、玻璃)處的部分透明度問題。經典的"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"封閉式去背"})," ","接受一個",(0,a.jsx)("em",{children:"三元圖"}),"(絕對前景/絕對背景/未知),並求解一個具有強邊緣保真度的 alpha 線性系統。現代的"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"深度影像去背"})," ","在 ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," 資料集上訓練神經網路(",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"MMEditing 文件"}),"),並使用"," ","SAD、MSE、梯度和連通性等指標進行評估(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"基準解釋器"}),")。"]}),(0,a.jsx)("h3",{children:"4) 深度學習摳圖(無三元圖)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),"(顯著性物體檢測)是一個強大的通用“移除背景”引擎"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"程式碼庫"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," 針對即時人像去背(",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) 去背"})," 聯合預測前景、背景和 alpha,以減少顏色光暈"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"程式碼庫"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"背景去背 V2"})," 假設有一個背景板,並以高達 4K/30fps 的速度即時產生髮絲級去背"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"專案頁面"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/Backgroun
1dMattingV2",target:"_blank",rel:"noreferrer",children:"程式碼庫"}),")。"]})]}),(0,a.jsxs)("p",{children:["相關的分割工作也很有用:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," 使用編碼器-解碼器和空洞卷積來細化邊界"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," 提供每個實例的遮罩"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");以及"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," 是一個"," ",(0,a.jsx)("em",{children:"可提示的"}),"基礎模型,可在不熟悉的影像上進行零樣本遮罩生成。"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"流行工具的功能"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"移除背景"})," 快速操作在底層執行“選取主體 → 圖層遮罩”"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"此處確認"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"教學"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"前景選取"})," (SIOX)。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": 一鍵式"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"背景移除器"}),",適用於圖片和短片。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": 用於自動化的 Web 應用程式 + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"}),"。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Apple 裝置"}),": 照片/Safari/快速查看中的系統級“",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"從照片背景中提取主體"}),"”"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"iOS 上的摳圖"}),")。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"更清晰摳圖的工作流程提示"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"智慧拍攝。"})," 良好的光線和強烈的主體-背景對比度對每種方法都有幫助。對於綠/藍幕,請計劃"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"去溢"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"指南"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"從寬到窄。"})," 執行自動選取(選取主體、"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),"、"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"),然後用筆刷或去背(例如"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"封閉式"}),")細化邊緣。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"注意半透明。"})," 玻璃、面紗、運動模糊、飛揚的頭髮需要真正的 alpha(不僅僅是硬遮罩)。同時恢復"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," 的方法可以最大限度地減少光暈。"]}),"    ",(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"了解你的 alpha。"})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"直接與預乘"}),"產生不同的邊緣行為;一致地匯出/合成(參見"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"概述"}),"、"," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"選擇正確的輸出。"})," 對於“無背景”,提供一個帶有乾淨 alpha 的點陣圖(例如 PNG/WebP),或者如果需要進一步編輯,則保留帶有遮罩的圖層檔案。關鍵在於你計算的"," ",(0,a.jsx)("em",{children:"alpha 品質"}),"——植根於 ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"品質與評估"}),(0,a.jsxs)("p",{children:["學術著作報告了在 ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"})," 上的 ",(0,a.jsx)("em",{children:"SAD"}),"、",(0,a.jsx)("em",{children:"MSE"}),"、",(0,a.jsx)("em",{children:"梯度"}),"和",(0,a.jsx)("em",{children:"連通性"}),"錯誤。如果你正在選擇一個模型,請尋找這些指標"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"指標定義"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"背景去背指標部分"}),")。 對於人像/影片,",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," 和"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"背景去背 V2"})," 很強大;對於一般的“顯著物體”影像,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," 是一個堅實的基準;對於棘手的透明度,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," 可能更乾淨。"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"常見邊緣案例(及修復方式)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"頭髮和毛皮:"})," 傾向於去背(三元图或像"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," 這樣的人像去背)並在棋盤格上檢查。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"精細結構(自行車輻條、魚線):"})," 使用高解析度輸入和像"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," 這樣的邊界感知分割器作為去背前的預處理步驟。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"透明物體(煙霧、玻璃):"})," 你需要分數 alpha 和通常的前景色估計"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"視訊會議:"})," 如果你能捕捉到一個乾淨的背景板,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"背景去背 V2"})," 看起來比簡單的“虛擬背景”切換更自然。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"這在現實世界中的應用"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"電子商務:"})," 市場(例如亞馬遜)通常要求主圖背景為",(0,a.jsx)("em",{children:"純白色"}),";請參閱"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"產品圖片指南"})," ","(RGB 255, 255, 255)。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"設計工具:"})," Canva 的"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"背景移除器"})," 和 Photoshop 的"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"移除背景"})," ","簡化了快速摳圖。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"裝置上的便利性:"})," iOS/macOS 的“",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"從照片背景中提取主體"}),"”非常適合休閒分享。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"為什麼摳圖有時看起來很假(及修復方式)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"顏色溢出:"})," 綠色/藍色光包裹著主體——使用"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"去溢控制"})," 或有針對性的顏色替換。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"光暈/邊緣:"})," 通常是 alpha 解釋不匹配(直接與預乘)或邊緣像素被舊背景污染;正確轉換/解釋"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"概述"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"詳情"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"錯誤的模糊/顆粒:"})," 將一個銳利的主體粘貼到一個柔和的背景上,它會顯得突兀;在合成後匹配鏡頭模糊和顆粒(參見"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff 基礎"}),")。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"TL;DR 速查手冊"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"如果你控制拍攝:"})," 使用色度鍵;均勻打光;計劃"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"去溢"}),"。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"如果是一次性照片:"})," 嘗試 Photoshop 的"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"移除背景"}),"、"," ","Canva 的"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"移除器"})," 或"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),";用筆刷/去背對頭髮進行細化。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"如果你需要生產級邊緣:"})," 使用去背("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"封閉式"})," ","或深度)並在透明背景上檢查 alpha;注意"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"alpha 解釋"}),"。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"對於人像/影片:"})," 考慮"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," 或"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"背景去背 V2"}),";對於點擊引導的分割,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," 是一個強大的前端。"]})]})]})},hi:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"बैकग्राà
1¤‰à¤‚ड हटाना"})," किसी विषय को उसके परिवेश से अलग करता है ताकि आप उसे पारदर्शिता पर रख सकें, दृश्य को बदल सकें, या उसे एक नए डिज़ाइन में संयोजित कर सकें। हुड के तहत आप एक"," ",(0,a.jsx)("em",{children:"अल्फा मैट"})," का अनुमान लगा रहे हैं - 0 से 1 तक प्रति-पिक्सेल अपारदर्शिता - और फिर अग्रभूमि को किसी और चीज़ पर"," ",(0,a.jsx)("em",{children:"अल्फा-कंपोज़िटिंग"})," कर रहे हैं। यह ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"पोर्टर-डफ"}),' का गणित है और "फ्रिंज" और'," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"स्ट्रेट बनाम प्रीमल्टीप्लाइड अल्फा"})," जैसी परिचित कमियों का कारण है। प्रीमल्टीप्लिकेशन और रैखिक रंग पर व्यावहारिक मार्गदर्शन के लिए,"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"माइक्रोसॉफ्ट के विन2डी नोट्स"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"सोरेन सैंडमैन"}),", और"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"लोमोंट का रैखिक सम्मिश्रण पर लेख"})," देखें।"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"लोग बैकग्राउंड हटाने के मुख्य तरीके"}),(0,a.jsx)("h3",{children:"1) क्रोमा की (“हरा/नीला स्क्रीन”)"}),(0,a.jsxs)("p",{children:["यदि आप कैप्चर को नियंत्रित कर सकते हैं, तो पृष्ठभूमि को एक ठोस रंग (अक्सर हरा) से पेंट करें और उस रंग को ",(0,a.jsx)("em",{children:"हटा दें"}),"। यह तेज़ है, फिल्म और प्रसारण में परीक्षण किया हुआ है, और वीडियो के लिए आदर्श है। ट्रेड-ऑफ प्रकाश और अलमारी हैं: रंगीन प्रकाश किनारों (विशेषकर बालों) पर फैलता है, इसलिए आप संदूषण को बेअसर करने के लिए ",(0,a.jsx)("em",{children:"डीस्पिल"})," टूल का उपयोग करेंगे। अच्छे प्राइमरों में ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"न्यूक के दस्तावेज़"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"मिक्सिंग लाइट"}),", और एक व्यावहारिक"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"फ्यूजन डेमो"})," शामिल हैं।"]}),(0,a.jsx)("h3",{children:"2) इंटरैक्टिव सेगमेंटेशन (क्लासिक सीवी)"}),(0,a.jsxs)("p",{children:["गंदी पृष्ठभूमि वाली एकल छवियों के लिए, ",(0,a.jsx)("em",{children:"इंटरैक्टिव"}
1)," एल्गोरिदम को कुछ उपयोगकर्ता संकेतों की आवश्यकता होती है - जैसे, एक ढीला आयत या स्क्रिबल्स - और एक स्पष्ट मास्क बनाते हैं। कैनोनिकल विधि"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"ग्रैबकट"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"पुस्तक अध्याय"}),") है, जो अग्रभूमि/पृष्ठभूमि के लिए रंग मॉडल सीखता है और उन्हें अलग करने के लिए पुनरावृत्त रूप से ग्राफ कट का उपयोग करता है। आप ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"GIMP के फोरग्राउंड सेलेक्ट"})," में"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"ImageJ प्लगइन"}),") पर आधारित समान विचार देखेंगे।"]}),(0,a.jsx)("h3",{children:"3) इमेज मैटिंग (फाइन-ग्रेन्ड अल्फ़ा)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"मैटिंग"})," wispy सीमाओं (बाल, फर, धुआं, कांच) पर भिन्नात्मक पारदर्शिता को हल करता है। क्लासिक"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"क्लोज्ड-फॉर्म मैटिंग"})," ","एक ",(0,a.jsx)("em",{children:"ट्राइमैप"})," (निश्चित रूप से-अग्रभूमि/निश्चित रूप से-पृष्ठभूमि/अज्ञात) लेता है और मजबूत किनारे की सटीकता के साथ अल्फा के लिए एक रैखिक प्रणाली को हल करता है। आधुनिक"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"डीप इमेज मैटिंग"})," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"एडोब कंपोजिशन-1K"})," डेटासेट (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"MMEditing डॉक्स"}),") पर तंत्रिका नेटवर्क को प्रशिक्षित करता है, और"," ","SAD, MSE, ग्रेडिएंट और कनेक्टिविटी (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"बेंचमार्क एक्सप्लेनर"}),") जैसे मेट्रिक्स के साथ मूल्यांकन किया जाता है।"]}),(0,a.jsx)("h3",{children:"4) डीप लर्निंग कटआउट (कोई ट्राइमैप नहीं)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}
1),' (मुख्य-वस्तु का पता लगाना) एक मजबूत सामान्य "बैकग्राउंड हटाएं" इंजन है'," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"रेपो"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," रीयल-टाइम पोर्ट्रेट मैटिंग को लक्षित करता है (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, अल्फा (FBA) मैटिंग"})," रंग प्रभामंडल को कम करने के लिए संयुक्त रूप से अग्रभूमि, पृष्ठभूमि और अल्फा की भविष्यवाणी करता है"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"रेपो"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"बैकग्राउंड मैटिंग V2"})," एक बैकग्राउंड प्लेट मानता है और 4K/30fps तक रीयल टाइम में स्ट्रैंड-लेवल मैट्स देता है"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"प्रोजेक्ट पेज"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"रेपो"}),")।"]})]}),(0,a.jsxs)("p",{children:["संबंधित विभाजन कार्य भी उपयोगी है:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," एक एन्कोडर-डिकोडर और एट्रस कनवल्शन के साथ सीमाओं को परिष्कृत करता है"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"मास्क R-CNN"})," प्रति-उदाहरण मास्क देता है"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); और"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (सेगमेंट एनीथिंग)"})," एक"," ",(0,a.jsx)("em",{children:"प्रॉम्प्टेबल"})," फाउंडेशन मॉडल है जो अपरिचित छवियों पर शून्य-शॉट मास्क उत्पन्न करता है।"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"लोकप्रिय उपकरण क्या करते हैं"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"फोटोशॉप"}),": ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"बैकग्राउंड हटाएं"}),' त्वरित कार्रवाई हुड के तहत "विषय चुनें → परत मुखौटा" चलाती है'," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"यहां पुष्टि की गई"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"ट्यूटोरियल"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"फोरग्राउंड सेलेक्ट"})," (SIOX)।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": छवियों और छोटे वीडियो के लिए 1-क्लिक"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"बैकग्राउंड रिमूवर"}),"।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": स्वचालन के लिए वेब ऐप + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"}),"।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Apple डिवाइस"}),": फ़ोटो/सफारी/क्विक लुक में सिस्टम-स्तरीय “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"विषय उठाà
1¤à¤‚"}),"”"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"iOS पर कटआउट"}),")।"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"क्लीनर कटआउट के लिए वर्कफ़्लो टिप्स"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"स्मार्ट शूट करें।"})," अच्छी रोशनी और मजबूत विषय-पृष्ठभूमि कंट्रास्ट हर विधि में मदद करता है। हरे/नीले स्क्रीन के साथ,"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"डीस्पिल"})," की योजना बनाएं"," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"गाइड"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"व्यापक शुरू करें, संकीर्ण को परिष्कृत करें।"})," एक स्वचालित चयन चलाएँ (विषय चुनें,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), फिर ब्रश या मैटिंग (जैसे,"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"क्लोज्ड-फॉर्म"}),") के साथ किनारों को परिष्कृत करें।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"अर्ध-पारदर्शिता का ध्यान रखें।"})," कांच, घूंघट, मोशन ब्लर, उड़ते बालों को असली अल्फा की जरूरत होती है (सिर्फ एक हार्ड मास्क नहीं)। वे विधियाँ जो"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," को भी पुनर्प्राप्त करती हैं, प्रभामंडल को कम करती हैं।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"अपने अल्फा को जानें।"})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"स्ट्रेट बनाम प्रीमल्टीप्लाइड"})," अलग-अलग किनारे का व्यवहार उत्पन्न करते हैं; लगातार निर्यात/कंपोजिट करें (देखें"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"अवलोकन"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"हारग्रीव्स"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"सही आउटपुट चुनें।"}),' "कोई पृष्ठभूमि नहीं" के लिए, एक साफ अल्फा (जैसे, PNG/WebP) के साथ एक रेखापुंज वितरित करें या यदि आगे के संपादन की उम्मीद है तो मास्क के साथ स्तरित फाइलें रखें। कुंजी आपके द्वारा गणना की गई'," ",(0,a.jsx)("em",{children:"अल्फा की गुणवत्ता"})," है - ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"पोर्टर-डफ"})," में निहित है।"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"गुणवत्ता और मूल्यांकन"}),(0,a.jsxs)("p",{children:["अकादमिक कार्य ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"कंपोजिशन-1K"})," पर ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"ग्रेडिएंट"}),", और ",(0,a.jsx)("em",{children:"कनेक्टिविटी"})," त्रुटियों की रिपोर्ट करते हैं। यदि आप एक मॉडल चुन रहे हैं, तो उन मेट्रिक्स को देखें"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"मेट्रिक परिभाषाएं"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"बैकग्राउंड मैटिंग मेट्रिक्स सेक्शन"}),")। पोर्ट्रेट/वीडियो के लिए, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," और"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"बैकग्राउंड मैटिंग V2"}),' मजबूत हैं; सामान्य "मुख्य वस्तु" छवियों के लिए,'," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," एक ठोस आधार रेखा है; कठिन पारदर्शिता के लिए,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," क्लीनर हो सकता है।"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"आम किनारे के मामले (और सुधार)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"बाल और फर:"}
1)," मैटिंग (ट्राइमैप या"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," जैसे पोर्ट्रेट मैटिंग) का पक्ष लें और एक चेकरबोर्ड पर निरीक्षण करें।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ठीक संरचनाएं (बाइक स्पोक्स, मछली पकड़ने की रेखा):"})," उच्च-रिज़ॉल्यूशन इनपुट और मैटिंग से पहले एक पूर्व-चरण के रूप में"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," जैसे सीमा-जागरूक विभाजक का उपयोग करें।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"पारदर्शी सामान (धुआं, कांच):"})," आपको भिन्नात्मक अल्फा और अक्सर अग्रभूमि रंग अनुमान की आवश्यकता होती है"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"वीडियो कॉन्फ्रेंसिंग:"})," यदि आप एक साफ प्लेट कैप्चर कर सकते हैं, तो"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"बैकग्राउंड मैटिंग V2"}),' भोले "वर्चुअल बैकग्राउंड" टॉगल की तुलना में अधिक स्वाभाविक दिखता है।']})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"यह वास्तविक दुनिया में कहाँ दिखाई देता है"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ई-कॉमर्स:"})," मार्केटप्लेस (जैसे, अमेज़ॅन) को अक्सर ",(0,a.jsx)("em",{children:"शुद्ध सफेद"})," मुख्य छवि पृष्ठभूमि की आवश्यकता होती है; देखें"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"उत्पाद छवि गाइड"})," ","(RGB 255,255,255)।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"डिज़ाइन टूल:"})," Canva का"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"बैकग्राउंड रिमूवर"})," और फ़ोटोशॉप का"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"बैकग्राउंड हटाएं"})," ","त्वरित कटआउट को सुव्यवस्थित करता है।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ऑन-डिवाइस सुविधा:"})," iOS/macOS “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"विषय उठाà
1¤à¤‚"}),"” आकस्मिक साझाकरण के लिए बहुत अच्छा है।"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"कटआउट कभी-कभी नकली क्यों दिखते हैं (और सुधार)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"रंग फैलना:"})," हरा/नीला प्रकाश विषय पर लिपट जाता है—"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"डीस्पिल नियंत्रण"})," या लक्षित रंग प्रतिस्थापन का उपयोग करें।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:" प्रभामंडल/फ्रिंज:"})," आमतौर पर एक अल्फा-व्याख्या बेमेल (स्ट्रेट बनाम प्रीमल्टीप्लाइड) या पुराने पृष्ठभूमि से दूषित किनारे पिक्सेल; सही ढंग से कनवर्ट/व्याख्या करें"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"अवलोकन"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"विवरण"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"गलत धुंधला/अनाज:"})," एक नरम पृष्ठभूमि में एक रेजर-नुकीला विषय चिपकाएँ और यह पॉप हो जाता है; कंपोज़िटिंग के बाद लेंस ब्लर और ग्रेन का मिलान करें (देखें"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"पोर्टर-डफ मूल बातें"}),")।"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"TL;DR प्लेबुक"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"यदि आप कैप्चर को नियंत्रित करते हैं:"})," क्रोमा कुंजी का उपयोग करें; समान रूप से प्रकाश करें;"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"डीस्पिल"})," की योजना बनाएं।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"यदि यह एक बार की तस्वीर है:"})," फ़ोटोशॉप का"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"बैकग्राउंड हटाएं"}),","," ","Canva का"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"रिमूवर"}),", या"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"})," आज़माएँ; बालों के लिए ब्रश/मैटिंग से परिष्कृत करें।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"यदि आपको उत्पादन-ग्रेड किनारों की आवश्यकता है:"})," मैटिंग ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"क्लोज्ड-फॉर्म"})," ","या डीप) का उपयोग करें और पारदर्शिता पर अल्फा की जांच करें;"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"अल्फा व्याख्à
1¤¯à¤¾"})," का ध्यान रखें।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"पोर्ट्रेट/वीडियो के लिए:"})," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," या"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"बैकग्राउंड मैटिंग V2"})," पर विचार करें; क्लिक-निर्देशित विभाजन के लिए,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," एक शक्तिशाली फ्रंट-एंड है।"]})]})]})},bn:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"পটভূমি অপসারণ"})," একটি বিষয়কে তার চারপাশ থেকে আলাদা করে যাতে আপনি এটিকে স্বচ্ছতার উপর স্থাপন করতে পারেন, দৃশ্যটি বদলাতে পারেন, বা এটিকে একটি নতুন ডিজাইনে সংমিশ্রণ করতে পারেন। হুডের নিচে আপনি একটি"," ",(0,a.jsx)("em",{children:"আলফা ম্যাট"})," অনুমান করছেন—প্রতি পিক্সেলে 0 থেকে 1 পর্যন্ত একটি অস্বচ্ছতা—এবং তারপর ফোরগ্রাউন্ডকে অন্য কিছুর উপর"," ",(0,a.jsx)("em",{children:"আলফা-কম্পোজিটিং"})," করছেন। এটি ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"পোর্টার-ডাফ"}),' থেকে গণিত এবং "ফ্রিঞ্জ" এবং'," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"স্ট্রেইট বনাম প্রিমাল্টিপ্লাইড আলফা"}),"-এর মতো পরিচিত সমস্যাগুলির কারণ। প্রিমাল্টিপ্লিকেশন এবং লিনিয়ার রঙের উপর ব্যবহারিক নির্দেশনার জন্য,"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"মাইক্রোসফটের Win2D নোট"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"সোরেন স্যান্ডম্যান"}),", এবং"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"লোমন্টের লিনিয়ার ব্লেন্ডিং-এর উপর লেখা"})," দেখুন।"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"লোকেরা যেভাবে পটভূমি অপসারণ করে তার প্রধান উপায়গুলি"}),(0,a.jsx)("h3",{children:'à§§) ক্রোমা কী ("সবুজ/নীল পর্দা")'}),(0,a.jsxs)("p",{children:["যদি আপনি ক্যাপচার নিয়ন্ত্রণ করতে পারেন, তবে পটভূমিকে একটি কঠিন রঙে (প্রায়শই সবুজ) রঙ করুন এবং সেই রঙটি ",(0,a.jsx)("em",{children:"কী আউট"})," করুন। এটি দ্রুত, চলচ্চিত্র এবং সম্প্রচারে পরীক্ষিত এবং ভিডিওর জন্য আদর্শ। ট্রেড-অফগুলি হল আলো এবং পোশাক: রঙিন আলো প্রান্তে (বিশেষ করে চুল) ছড়িয়ে পড়ে, তাই দূষণকে নিরপেক্ষ করতে আপনি ",(0,a.jsx)("em",{children:"ডেসপিল"})," সরঞ্জাম ব্যবহার করবেন। ভাল প্রাইমারগুলির মধ্যে রয়েছে ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"Nuke-এর ডক্স"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"মিক্সিং লাইট"}),", এবং একটি হাতে-কলমে"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"ফিউশন ডেমো"}),"।"]}),(0,a.jsx)("h3",{children:"২) ইন্টারেক্টিভ সেগমেন্টেশন (ক্লাসিক সিভি)"}),(0,a.jsxs)("p",{children:["অগোছালো পটভূমি সহ একক চিত্রগুলির জন্য, ",(0,a.jsx)("em",{children:"ইন্টারেক্টিভ"})," অ্যালগরিদমগুলির জন্য কয়েকটি ব্যবহারকারী ইঙ্গিত প্রয়োজন—যেমন, একটি আলগা আয়তক্ষেত্র বা স্ক্রিবল—এবং একটি সুস্পষ্ট মাস্কে একত্রিত হয়। ক্যানোনিকাল পদ্ধতি হল"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"গ্র্যাবকাট"}
1)," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"বইয়ের অধ্যায়"}),"), যা ফোরগ্রাউন্ড/ব্যাকগ্রাউন্ডের জন্য রঙের মডেল শেখে এবং সেগুলিকে আলাদা করার জন্য পুনরাবৃত্তিমূলকভাবে গ্রাফ কাট ব্যবহার করে। আপনি ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"GIMP-এর ফোরগ্রাউন্ড সিলেক্ট"}),"-এ"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"ImageJ প্লাগইন"}),")-এর উপর ভিত্তি করে একই ধরনের ধারণা দেখতে পাবেন।"]}),(0,a.jsx)("h3",{children:"৩) ইমেজ ম্যাটিং (সূক্ষ্ম-দানাযুক্ত আলফা)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"ম্যাটিং"})," wispy সীমানায় (চুল, পশম, ধোঁয়া, কাচ) ভগ্নাংশ স্বচ্ছতা সমাধান করে। ক্লাসিক"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"ক্লোজড-ফর্ম ম্যাটিং"})," ","একটি ",(0,a.jsx)("em",{children:"ট্রাইম্যাপ"})," (নিশ্চিতভাবে-ফোরগ্রাউন্ড/নিশ্চিতভাবে-ব্যাকগ্রাউন্ড/অজানা) নেয় এবং শক্তিশালী প্রান্ত বিশ্বস্ততার সাথে আলফার জন্য একটি রৈখিক সিস্টেম সমাধান করে। আধুনিক"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"ডিপ ইমেজ ম্যাটিং"})," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"অ্যাডোব কম্পোজিশন-1K"})," ডেটাসেটে (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"MMEditing ডক্স"}),") নিউরাল নেটওয়ার্ককে প্রশিক্ষণ দেয়, এবং"," ","SAD, MSE, গ্রেডিয়েন্ট এবং কানেক্টিভিটি (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"বেঞ্চমার্ক ব্যাখ্যাকারী"}),") এর মতো মেট্রিক দিয়ে মূল্যায়ন করা হয়।"]}),(0,a.jsx)("h3",{children:"৪) ডিপ লার্নিং কাটআউট (কোন ট্রাইম্যাপ নেই)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),' (স্যালিয়েন্ট-অবজেক্ট ডিটেকশন) একটি শক্তিশালী সাধারণ "পটভূমি অপসারণ" ইঞ্জিন'," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"রেপো"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," রিয়েল-টাইম পোর্ট্রেট ম্যাটিংকে লক্ষ্য করে (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, আলফা (FBA) ম্যাটিং"})," রঙের হ্যালো কমাতে যৌথভাবে ফোরগ্রাউন্ড, ব্যাকগ্রাউন্ড এবং আলফা পূর্বাভাস দেয়"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"রেপো"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"ব্যাকগ্রাউন্ড ম্যাটিং V2"})," একটি ব্যাকগ্রাউন্ড প্লেট অনুমান করে এবং 4K/30fps পর্যন্ত রিয়েল টাইমে স্ট্র্যান্ড-লেভেল ম্যাট তৈরি করে"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"প্রকল্প পৃষ্ঠা"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/Backgroun
1dMattingV2",target:"_blank",rel:"noreferrer",children:"রেপো"}),")।"]})]}),(0,a.jsxs)("p",{children:["সম্পর্কিত সেগমেন্টেশন কাজও দরকারী:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," একটি এনকোডার-ডিকোডার এবং অ্যাট্রাস কনভোলিউশন দিয়ে সীমানা পরিমার্জন করে"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"মাস্ক R-CNN"})," প্রতি-উদাহরণ মাস্ক দেয়"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); এবং"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (সেগমেন্ট এনিথিং)"})," একটি"," ",(0,a.jsx)("em",{children:"প্রম্পটেবল"})," ফাউন্ডেশন মডেল যা অপরিচিত ছবিতে জিরো-শট মাস্ক তৈরি করে।"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"জনপ্রিয় সরঞ্জামগুলি কী করে"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ফটোশপ"}),": ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"পটভূমি অপসারণ"}),' দ্রুত অ্যাকশন হুডের নিচে "বিষয় নির্বাচন করুন → লেয়ার মাস্ক" চালায়'," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"এখানে নিশ্চিত করা হয়েছে"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"টিউটোরিয়াল"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"ফোরগ্রাউন্ড সিলেক্ট"})," (SIOX)।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": ছবি এবং ছোট ভিডিওর জন্য 1-ক্লিক"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"পটভূমি অপসারণকারী"}),"।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": অটোমেশনের জন্য ওয়েব অ্যাপ + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"}),"।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"অ্যাপল ডিভাইস"}),": ফটো/সাফারি/কুইক লুকে সিস্টেম-স্তরের “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"বিষয় উত্তোলন"}),"”"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"iOS-এ কাটআউট"}),")।"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"ক্লিনার কাটআউটের জন্য ওয়ার্কফ্লো টিপস"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"স্মার্টভাবে শুট করুন।"})," ভাল আলো এবং শক্তিশালী বিষয়-পটভূমি বৈসাদৃশ্য প্রতিটি পদ্ধতিতে সাহায্য করে। সবুজ/নীল পর্দার সাথে,"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"ডেসপিল"}),"-এর জন্য পরিকল্পনা করুন"," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"গাইড"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"বিস্তৃতভাবে শুরু করুন, সংকীর্ণকে পরিমার্জন করুন।"})," একটি স্বয়ংক্রিয় নির্বাচন চালান (বিষয় নির্বাচন করুন,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), তারপর ব্রাশ বা ম্যাটিং (যেমন,"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"ক্লোজড-ফর্ম"}),") দিয়ে প্রান্তগুলি পরিমার্জন করুন।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"আধা-স্বচ্ছতার কথা মাথায় রাখুন।"})," গ্লাস, পর্দা, মোশন ব্লার, উড়ন্ত চুলের জন্য সত্যিকারের আলফা প্রয়োজন (শুধু একটি হার্ড মাস্ক নয়)। যে পদ্ধতিগুলি"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"}),"-কেও পুনরুদ্ধার করে সেগুলি হ্যালো কমিয়ে দেয়।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"আপনার আলফা জানুন।"})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"স্ট্রেইট বনাম প্রিমাল্টিপ্লাইড"})," ভিন্ন প্রান্তের আচরণ তৈরি করে; ধারাবাহিকভাবে রপ্তানি/কম্পোজিট করুন (দেখুন"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"ওভারভিউ"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"হারগ্রিভস"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"সঠিক আউটপুট বাছুন।"}),' "কোন পটভূমি নেই" এর জন্য, একটি পরিষ্কার আলফা সহ একটি রাস্টার (যেমন, PNG/WebP) সরবরাহ করুন বা যদি আরও সম্পাদনা প্রত্যাশিত হয় তবে মাস্ক সহ স্তরযুক্ত ফাইলগুলি রাখুন। মূল হল আপনার গণনা করা'," ",(0,a.jsx)("em",{children:"আলফার গুণমান"}),"—",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"পোর্টার-ডাফ"}),"-এ নিহিত।"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"গুণমান এবং মূল্যায়ন"}),(0,a.jsxs)("p",{children:["একাডেমিক কাজ ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"কম্পোজিশন-1K"}),"-এ ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"গ্রেডিয়েন্ট"}),", এবং ",(0,a.jsx)("em",{children:"কানেক্টিভিটি"})," ত্রুটি রিপোর্ট করে। আপনি যদি একটি মডেল বাছাই করেন, তবে সেই মেট্রিকগুলি সন্ধান করুন"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"মেট্রিক সংজ্ঞা"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"ব্যাকগ্রাউন্ড ম্যাটিং মেট্রিক্স বিভাগ"}),")। পোর্ট্রেট/ভিডিওর জন্য, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," এবং"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"ব্যাকগ্রাউন্ড ম্যাটিং V2"}),' শক্তিশালী; সাধারণ "স্যালিয়েন্ট অবজেক্ট" চিত্রগুলির জন্য,'," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," একটি কঠিন বেসলাইন; কঠিন স্বচ্ছতার জন্য,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," ক্লিনার হতে পারে।"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"সাধারণ প্রান্তের কেস (এবং সমাধান)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"চুল এবং পশম:"})," ম্যাটিং (ট্রাইম্যাপ বা"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),"-এর মতো পোর্ট্রেট ম্যাটিং) পছন্দ করুন এবং একটি চেকারবোর্ডে পরিদর্শন করুন।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"সূক্ষ্ম কাঠামো (বাইকের স্পোক, মাছ ধরার লাইন):"})," উচ্চ-রেজোলিউশন ইনপুট এবং ম্যাটিংয়ের আগে একটি প্রাক-পদক্ষেপ হিসাবে"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"}),"-এর মতো একটি সীমানা-সচেতন বিভাজক ব্যবহার করুন।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"স্বচ্ছ জিনিস (ধোঁয়া, কাচ):"})," আপনার ভগ্নাংশ আলফা এবং প্রায়শই ফোরগ্রাউন্ড রঙ অনুমান প্রয়োজন"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ভিডিও কনফারেন্সিং:"})," যদি আপনি একটি পরিষ্কার প্লেট ক্যাপচার করতে পারেন, তবে"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"ব্যাকগ্রাউন্ড ম্যাটিং V2"}),' সরল "ভার্চুয়াল ব্যাকগ্রাউন্ড" টগলের চেয়ে বেশি স্বাভাবিক দেখায়।']})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"বাস্তব জগতে এটি কোথায় দেখা যায়"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ই-কমার্স:"})," মার্কেটপ্লেস (যেমন, অ্যামাজন) প্রায়শই একটি ",(0,a.jsx)("em",{children:"বিশুদ্ধ সাদা"})," প্রধান চিত্রের পটভূমি প্রয়োজন; দেখুন"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"পণ্য চিত্র নির্দেশিকা"})," ","(RGB 255,255,255)।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ডিজাইন সরঞ্জাম:"})," Canva-এর"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"পটভূমি অপসারণকারী"})," এবং ফটোশপের"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"পটভূমি অপসারণ"})," ","দ্রুত কাটআউটগুলিকে সহজ করে তোলে।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"অন-ডিভাইস সুবিধা:"})," iOS/macOS “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"বিষয় উত্তোলন"}),"” নৈমিত্তিক ভাগ করে নেওয়ার জন্য দুর্দান্ত।"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"কেন কাটআউটগুলি কখনও কখনও নকল দেখায় (এবং সমাধান)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"রঙের ছিটানো:"})," সবুজ/নীল আলো বিষয়ের উপর আবৃত হয়—"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"ডেসপিল নিয়ন্ত্রণ"})," বা লক্ষ্যযুক্ত রঙ প্রতিস্থাপন ব্যবহার করুন।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"হ্যালো/ফ্রিঞ্জ:"})," সাধারণত একটি আলফা-ব্যাখ্যা অমিল (স্ট্রেইট বনাম প্রিমাল্টিপ্লাইড) বা পুরানো পটভূমি দ্বারা দূষিত প্রান্ত পিক্সেল; সঠিকভাবে রূপান্তর/ব্যাখ্যা করুন"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"ওভারভিউ"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"বিশদ"}),")।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ভুল ব্লার/গ্রেন:"})," একটি নরম পটভূমিতে একটি রেজার-শার্প বিষয় পেস্ট করুন এবং এটি পপ আপ হয়; কম্পোজিটিংয়ের পরে লেন্স ব্লার এবং গ্রেন মিলান (দেখুন"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"পোর্টার-ডাফ বেসিকস"}),")।"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"TL;DR প্লেবুক"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"যদি আপনি ক্যাপচার নিয়ন্ত্রণ করেন:"})," ক্রোমা কী ব্যবহার করুন; সমানভাবে আলো দিন;"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"ডেসপিল"}),"-এর জন্য পরিকল্পনা করুন।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"যদি এটি একটি এককালীন ছবি হয়:"})," ফটোশপের"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"পটভূমি অপসারণ"}),","," ","Canva-এর"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"অপসারণকারী"}),", বা"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"})," চেষ্টা করুন; চুলের জন্য ব্রাশ/ম্যাটিং দিয়ে পরিমার্জন করুন।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"যদি আপনার প্রোডাকশন-গ্রেড প্রান্তের প্রয়োজন হয়:"})," ম্যাটিং ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"ক্লোজড-ফর্ম"})," ","বা গভীর) ব্যবহার করুন এবং স্বচ্ছতার উপর আলফা পরীক্ষা করুন;"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"আলফা ব্যাখ্যা"}),"-এর কথা মাথায় রাখুন।"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"পোর্ট্রেট/ভিডিওর জন্য:"})," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," বা"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"ব্যাকগ্রাউন্ড ম্যাটিং V2"})," বিবেচনা করুন; ক্লিক-নির্দেশিত সেগমেন্টেশনের জন্য,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," একটি শক্তিশালী ফ্রন্ট-এন্ড।"]})]})]})},vi:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Xóa nền"})," tách một đối tượng khỏi môi trường xung quanh để bạn có thể đặt nó trên nền trong suốt, hoán đổi cảnh hoặc ghép nó vào một thiết kế mới. Về cơ bản, bạn đang ước tính một"," ",(0,a.jsx)("em",{children:"mặt nạ alpha"}),"—độ mờ mỗi pixel từ 0 đến 1—và sau đó ",(0,a.jsx)("em",{children:"ghép alpha"})," tiền cảnh lên một thứ khác. Đây là toán học từ ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," và là nguyên nhân của các cạm bẫy quen thuộc như “viền” và"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"alpha thẳng và alph
1a nhân trước"}),". Để có hướng dẫn thực tế về nhân trước và màu tuyến tính, hãy xem"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"ghi chú Win2D của Microsoft"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"}),", và"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"bài viết của Lomont về trộn tuyến tính"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Những cách chính mọi người xóa nền"}),(0,a.jsx)("h3",{children:"1) Phím sắc độ (“màn hình xanh lá/xanh dương”)"}),(0,a.jsxs)("p",{children:["Nếu bạn có thể kiểm soát việc chụp, hãy sơn phông nền bằng một màu đồng nhất (thường là màu xanh lá cây) và ",(0,a.jsx)("em",{children:"loại bỏ"})," màu đó. Nó nhanh, đã được thử nghiệm trong phim và phát sóng, và lý tưởng cho video. Sự đánh đổi là ánh sáng và trang phục: ánh sáng màu tràn ra các cạnh (đặc biệt là tóc), vì vậy bạn sẽ sử dụng các công cụ ",(0,a.jsx)("em",{children:"khử tràn"})," để trung hòa ô nhiễm. Các tài liệu tham khảo tốt bao gồm ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"tài liệu của Nuke"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"}),", và một bản demo thực hành"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion"}),"."]}),(0,a.jsx)("h3",{children:"2) Phân đoạn tương tác (CV cổ điển)"}),(0,a.jsxs)("p",{children:["Đối với các hình ảnh đơn lẻ có nền lộn xộn, các thuật toán ",(0,a.jsx)("em",{children:"tương tác"})," cần một vài gợi ý của người dùng—ví dụ: một hình chữ nhật lỏng lẻo hoặc các nét vẽ nguệch ngoạc—và hội tụ thành một mặt nạ sắc nét. Phương pháp kinh điển là"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"chương sách"}),"), học các mô hình màu cho tiền cảnh/nền và sử dụng các đường cắt đồ thị lặp đi lặp lại để tách chúng. Bạn sẽ thấy những ý tưởng tương tự trong ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Lựa chọn tiền cảnh của GIMP"})," dựa trên"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"plugin ImageJ"}),")."]}),(0,a.jsx)("h3",{children:"3) Matting hình ảnh (alpha hạt mịn)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"Matting"})," giải quyết độ trong suốt phân đoạn ở các ranh giới mỏng manh (tóc, lông, khói, kính)."," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"Matting dạng đóng cổ điển"})," ","lấy một ",(0,a.jsx)("em",{children:"bản đồ ba vùng"})," (chắc chắn-tiền cảnh/chắc chắn-nền/không xác định) và giải một hệ thống tuyến tính cho alpha với độ trung thực cạnh mạnh."," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"Matting hình ảnh sâu hiện đại"})," ","đào tạo các mạng nơ-ron trên bộ dữ liệu ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"tài liệu MMEditing"}),"), và được đánh giá bằng các số liệu như"," ","SAD, MSE, Gradient và Connectivity (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"giải thích điểm chuẩn"}),")."]}),(0,a.jsx)("h3",{children:"4) Cắt bỏ bằng học sâu (không có bản đồ ba vùng)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (phát hiện đối tượng nổi bật) là một công cụ “xóa nền” chung mạnh mẽ"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," nhắm đến matting chân dung thời gian thực (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) Matting"}
1)," dự đoán đồng thời tiền cảnh, nền và alpha để giảm quầng màu"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Background Matting V2"})," giả định một tấm nền và tạo ra các mặt nạ cấp độ sợi tóc trong thời gian thực ở tốc độ lên tới 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"trang dự án"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"repo"}),")."]})]}),(0,a.jsxs)("p",{children:["Công việc phân đoạn liên quan cũng hữu ích:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," tinh chỉnh các ranh giới bằng một bộ mã hóa-giải mã và các tích chập atrous"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," cung cấp các mặt nạ cho mỗi phiên bản"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); và"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," là một"," ","mô hình nền tảng ",(0,a.jsx)("em",{children:"có thể nhắc"})," tạo ra các mặt nạ không cần học trên các hình ảnh không quen thuộc."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Các công cụ phổ biến làm gì"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": Hành động nhanh ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Xóa nền"})," chạy “Chọn đối tượng → mặt nạ lớp” ở chế độ nền"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"được xác nhận tại đây"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"hướng dẫn"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Lựa chọn tiền cảnh"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": 1 cú nhấp chuột"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Trình xóa nền"})," cho hình ảnh và video ngắn."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": ứng dụng web + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," để tự động hóa."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Thiết bị Apple"}),": “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Nâng đối tượng"}),"” cấp hệ thống trong Ảnh/Safari/Xem nhanh"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"cắt bỏ trên iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Mẹo quy trình làm việc để cắt bỏ sạch hơn"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Chụp ảnh thông minh."})," Ánh sáng tốt và độ tương phản đối tượng-nền mạnh giúp ích cho mọi phương pháp. Với màn hình xanh lá/xanh dương, hãy lên kế hoạch"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"khử tràn"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"hướng dẫn"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Bắt đầu rộng, tinh chỉnh hẹp."})," Chạy lựa chọn tự động (Chọn đối tượng,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), sau đó tinh chỉnh các cạnh bằng bút vẽ hoặc matting (ví dụ:"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"dạng đóng"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Lưu ý đến độ bán trong suốt."})," Kính, mạng che mặt, nhòe chuyển động, tóc bay cần alpha thực sự (không chỉ là mặt nạ cứng). Các phương pháp cũng phục hồi"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," giảm thiểu quầng sáng."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Biết alpha của bạn."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Thẳng và nhân trước"})," tạo ra hành vi cạnh khác nhau; xuất/ghép nhất quán (xem"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"tổng quan"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Chọn đầu ra phù hợp."})," Đối với “không có nền”, hãy cung cấp một raster có alpha sạch (ví dụ: PNG/WebP) hoặc giữ các tệp được phân lớp có mặt nạ nếu dự kiến có các chỉnh sửa tiếp theo. Chìa khóa là"," ",(0,a.jsx)("em",{children:"chất lượng của alpha"})," bạn đã tính toán—bắt nguồn từ ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Chất lượng và đánh giá"}),(0,a.jsxs)("p",{children:["Công trình học thuật báo cáo các lỗi ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradient"}),", và ",(0,a.jsx)("em",{children:"Connectivity"})," trên"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". Nếu bạn đang chọn một mô hình, hãy tìm những số liệu đó"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"định nghĩa số liệu"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"phần số liệu của Background Matting"}),"). Đối với chân dung/video, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," và"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," rất mạnh; đối với các hình ảnh “đối tượng nổi bật” chung,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," là một đường cơ sở vững chắc; đối với độ trong suốt khó,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," có thể sạch hơn."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Các trường hợp cạnh phổ biến (và các bản sửa lỗi)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Tóc và lông:"})," ưu tiên matting (bản đồ ba vùng hoặc matting chân dung như"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") và kiểm tra trên bàn cờ."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Cấu trúc tinh xảo (nan hoa xe đạp, dây câu):"})," sử dụng đầu vào có độ phân giải cao và một bộ phân đoạn nhận biết ranh giới như"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," làm bước tiền xử lý trước khi matting."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Những thứ trong suốt (khói, kính):"})," bạn cần alpha phân đoạn và thường là ước tính màu tiền cảnh"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Hội nghị truyền hình:"})," nếu bạn có thể chụp một tấm nền sạch,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," trông tự nhiên hơn so với các nút chuyển đổi “nền ảo” ngây thơ."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Nơi điều này xuất hiện trong thế giới thực"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Thương mại điện tử:"})," các thị trường (ví dụ: Amazon) thường yêu cầu nền hình ảnh chính ",(0,a.jsx)("em",{children:"trắng tinh"}),"; xem"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"Hướng dẫn hình ảnh sản phẩm"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Công cụ thiết kế:"})," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Trình xóa nền"})," của Canva và ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Xóa nền"})," của Photoshop"," ","hợp lý hóa việc cắt bỏ nhanh chóng."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Sự tiện lợi trên thiết bị:"})," “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Nâng đối tượng"}),"” của iOS/macOS rất phù hợp để chia sẻ thông thường."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Tại sao đôi khi các vết cắt trông giả (và các bản sửa lỗi)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Tràn màu:"})," ánh sáng xanh lá/xanh dương bao quanh đối tượng—sử dụng"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"điều khiển khử tràn"})," hoặc thay thế màu được nhắm mục tiêu."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Quầng sáng/viền:"})," thường là do không khớp diễn giải alpha (thẳng và nhân trước) hoặc các pixel cạnh bị ô nhiễm bởi nền cũ; chuyển đổi/diễn giải chính xác"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"tổng quan"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"chi tiết"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Làm mờ/nhiễu hạt sai:"})," dán một đối tượng sắc nét như dao cạo vào một nền mềm và nó sẽ nổi bật; khớp độ mờ của ống kính và nhiễu hạt sau khi ghép (xem"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"khái niệm cơ bản về Porter–Duff"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Sách hướng dẫn TL;DR"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Nếu bạn kiểm soát việc chụp:"})," sử dụng phím sắc độ; chiếu sáng đều; lên kế hoạch"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"khử tràn"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Nếu đó là một bức ảnh dùng một lần:"})," hãy thử ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Xóa nền"})," của Photoshop,"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"trình xóa"})," của Canva, hoặc"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"; tinh chỉnh bằng bút vẽ/matting cho tóc."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Nếu bạn cần các cạnh cấp sản xuất:"})," sử dụng matting ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"dạng đóng"})," ","hoặc sâu) và kiểm tra alpha trên nền trong suốt; lưu ý đến"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"diễn giải alpha"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Đối với chân dung/video:"})," hãy xem xét"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," hoặc"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"; đối với phân đoạn có hướng dẫn bằng cách nhấp chuột,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," là một giao diện người dùng mạnh mẽ."]})]})]})},th:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"การลบพื้นหลัง"})," แยกวัตถุออกจากสภาพแวดล้อมเพื่อให้คุณสามารถวางไว้บน ความโปร่งใส, สลับฉาก, หรือประกอบเข้ากับการออกแบบใหม่. ภายใต้กระโปรงคุณกำลังประเมิน"," ",(0,a.jsx)("em",{children:"อัลฟ่าแมท"}),"—ความทึบต่อพิกเซลจาก 0 ถึง 1—แล้ว ",(0,a.jsx)("em",{children:"การประกอบอัลฟ่า"})," โฟร์กราวด์ทับ สิ่งอื่น. นี่คือคณิตศาสตร์จาก ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," และสาเหตุของข้อผิดพลาดที่คุ้นเคยเช่น “ขอบ” และ"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"อัลฟ่าตรงกับอัลฟ่าที่คูณไว้ล่วงหน้า"}),". สำหรับคำแนะนำเชิงปฏิบัติเกี่ยวกับการคูณล่วงหน้าและสีเชิงเส้น, ดู"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"บันทึก Win2D ของ Microsoft"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"}),", และ"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"บทความของ Lomont เกี่ยวกับการผสมเชิงเส้น"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"วิธีหลักที่คนใช้ลบพื้นหลัง"}),(0,a.jsx)("h3",{children:"1) คีย์โครมา (“หน้าจอเขียว/น้ำเงิน”)"}),(0,a.jsxs)("p",{children:["หากคุณสามารถควบคุมการจับภาพได้, ทาสีพื้นหลังเป็นสีทึบ (ส่วนใหญ่มักเป็นสีเขียว) และ ",(0,a.jsx)("em",{children:"คีย์"})," สีนั้นออกไป. มันรวดเร็ว, ผ่านการทดสอบการต่อสู้ในภาพยนตร์และการออกอากาศ, และเหมาะสำหรับวิดีโอ. ข้อแลกเปลี่ยนคือแสงและตู้เสื้อผ้า: แสงสีจะรั่วไหลไปยังขอบ (โดยเฉพาะเส้นผม), ดังนั้นคุณจะใช้เครื่องมือ ",(0,a.jsx)("em",{children:"despill"})," เพื่อทำให้การปนเปื้อนเป็นกลาง. ไพรเมอร์ที่ดี ได้แก่ ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"เอกสารของ Nuke"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"}),", และการสาธิต"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusion"})," แบบลงมือปฏิบัติ."]}),(0,a.jsx)("h3",{children:"2) การแบ่งส่วนแบบโต้ตอบ (CV แบบคลาสสิก)"}),(0,a.jsxs)("p",{children:["สำหรับภาพเดี่ยวที่มีพื้นหลังรก, อัลกอริทึม ",(0,a.jsx)("em",{children:"แบบโต้ตอบ"})," ต้องการคำใบ้จากผู้ใช้เล็กน้อย—เช่น, สี่เหลี่ยมผืนผ้าหลวมๆ หรือลายเส้นขยุกขยิก—และมาบรรจบกันเป็นหน้ากากที่คมชัด. วิธีการที่เป็นที่ยอมรับคือ"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"}
1)," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"บทในหนังสือ"}),"), ซึ่งเรียนรู้แบบจำลองสีสำหรับโฟร์กราวด์/พื้นหลัง และใช้การตัดกราฟซ้ำๆ เพื่อแยกพวกมัน. คุณจะเห็นแนวคิดที่คล้ายกันใน ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"การเลือกโฟร์กราวด์ของ GIMP"})," โดยใช้"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"ปลั๊กอิน ImageJ"}),")."]}),(0,a.jsx)("h3",{children:"3) การทำแมทภาพ (อัลฟ่าแบบละเอียด)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"การทำแมท"})," แก้ปัญหาความโปร่งใสแบบเศษส่วนที่ขอบเขตที่บอบบาง (ผม, ขน, ควัน, แก้ว). "," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"การทำแมทแบบปิดคลาสสิก"})," ","ใช้ ",(0,a.jsx)("em",{children:"trimap"})," (แน่นอน-หน้า/แน่นอน-หลัง/ไม่ทราบ) และแก้ปัญหาระบบเชิงเส้นสำหรับอัลฟ่าที่มีความเที่ยงตรงของขอบสูง. "," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"การทำแมทภาพแบบลึกสมัยใหม่"})," ","ฝึกอบรมโครงข่ายประสาทเทียมบนชุดข้อมูล ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"เอกสาร MMEditing"}),"), และได้รับการประเมินด้วยเมตริกเช่น"," ","SAD, MSE, Gradient, และ Connectivity (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"คำอธิบายเกณฑ์มาตรฐาน"}),")."]}),(0,a.jsx)("h3",{children:"4) การตัดภาพด้วยการเรียนรู้เชิงลึก (ไม่มี trimap)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (การตรวจจับวัตถุเด่น) เป็นเครื่องมือ “ลบพื้นหลัง” ทั่วไปที่แข็งแกร่ง"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," มุ่งเป้าไปที่การทำแมทภาพบุคคลแบบเรียลไทม์ (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) Matting"})," ร่วมกันทำนายโฟร์กราวด์, พื้นหลัง, และอัลฟ่าเพื่อลดรัศมีสี"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"repo"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," สมมติว่ามีแผ่นพื้นหลังและให้ผลลัพธ์เป็นแมทระดับเส้นผมแบบเรียลไทม์ที่ความละเอียดสูงสุด 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"หน้าโครงการ"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"repo"}),")."]})]}),(0,a.jsxs)("p",{children:["งานแบ่งส่วนที่เกี่ยวข้องก็มีประโยชน์เช่นกัน:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," ปรับปรุงขอบเขตด้วยตัวเข้ารหัส-ตัวถอดรหัสและคอนโวลูชัน atrous"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," ให้หน้ากากต่ออินสแตนซ์"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); และ"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," เป็น"," ","โมเดลพื้นฐาน ",(0,a.jsx)("em",{children:"ที่สามารถแจ้งได้"})," ที่สร้างหน้ากากแบบ zero-shot บนภาพที่ไม่คุ้นเคย."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"เครื่องมือยอดนิยมทำอะไรได้บ้าง"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": การดำเนินการด่วน ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"ลบพื้นหลัง"})," ทำงาน “เลือกวัตถุ → หน้ากากเลเยอร์” ภายใต้กระโปรง"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"ยืนยันที่นี่"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"บทช่วยสอน"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"การเลือกโฟร์กราวด์"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": 1-คลิก"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"ตัวลบพื้นหลัง"})," สำหรับภาพและวิดีโอสั้น."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": เว็บแอป + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," สำหรับระบบอัตโนมัติ."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"อุปกรณ์ Apple"}),": “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"ยกวัตถุ"}),"” ระดับระบบใน Photos/Safari/Quick Look"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"การตัดภาพบน iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"เคล็ดลับเวิร์กโฟลว์สำหรับการตัดภาพที่สะอาดขึ้น"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ถ่ายภาพอย่างชาญฉลาด."})," แสงที่ดีและความคมชัดของวัตถุ-พื้นหลังที่แข็งแกร่งช่วยได้ทุกวิธี. ด้วยหน้าจอเขียว/น้ำเงิน, วางแผนสำหรับ"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"despill"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"คู่มือ"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"เริ่มกว้าง, ปรับแต่งให้แคบ."})," เรียกใช้การเลือกอัตโนมัติ (เลือกวัตถุ,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), จากนั้นปรับแต่งขอบด้วยพู่กันหรือการทำแมท (เช่น,"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"แบบปิด"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ใส่ใจกับความโปร่งแสง."})," แก้ว, ผ้าคลุมหน้า, การเบลอจากการเคลื่อนไหว, ผมที่ปลิวไสวต้องการอัลฟ่าที่แท้จริง (ไม่ใช่แค่หน้ากากแข็ง). วิธีการที่กู้คืน"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"})," ยังช่วยลดรัศมี."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"รู้จักอัลฟ่าของคุณ."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"ตรงกับที่คูณไว้ล่วงหน้า"})," สร้างพฤติกรรมขอบที่แตกต่างกัน; ส่งออก/ประกอบอย่างสม่ำเสมอ (ดู"," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"ภาพรวม"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"เลือกเอาต์พุตที่เหมาะสม."})," สำหรับ “ไม่มีพื้นหลัง” ให้ส่งแรสเตอร์ที่มีอัลฟ่าที่สะอาด (เช่น, PNG/WebP) หรือเก็บไฟล์เลเยอร์ที่มีหน้ากากไว้หากคาดว่าจะมีการแก้ไขเพิ่มเติม. กุญแจสำคัญคือ"," ",(0,a.jsx)("em",{children:"คุณภาพของอัลฟ่า"})," ที่คุณคำนวณ—มีรากฐานมาจาก ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"คุณภาพและการประเมินผล"}),(0,a.jsxs)("p",{children:["งานวิชาการรายงานข้อผิดพลาด ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradient"}),", และ ",(0,a.jsx)("em",{children:"Connectivity"})," บน"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". หากคุณกำลังเลือกโมเดล, ให้มองหาเมตริกเหล่านั้น"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"คำจำกัดความของเมตริก"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"ส่วนเมตริกของ Background Matting"}),"). สำหรับภาพบุคคล/วิดีโอ, ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," และ"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," แข็งแกร่ง; สำหรับภาพ “วัตถุเด่น” ทั่วไป,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," เป็นพื้นฐานที่มั่นคง; สำหรับความโปร่งใสที่ยาก,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," อาจสะอาดกว่า."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"กรณีขอบทั่วไป (และวิธีแก้ไข)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ผมและขน:"})," ชอบการทำแมท (trimap หรือการทำแมทภาพบุคคลเช่น"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") และตรวจสอบบนกระดานหมากรุก."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"โครงสร้างละเอียด (ซี่ล้อจักรยาน, สายเบ็ด):"})," ใช้อินพุตความละเอียดสูงและตัวแบ่งส่วนที่รับรู้ขอบเขตเช่น"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," เป็นขั้นตอนก่อนการทำแมท."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"สิ่งที่มองทะลุได้ (ควัน, แก้ว):"})," คุณต้องใช้อัลฟ่าแบบเศษส่วนและมักจะต้องมีการประมาณสีโฟร์กราวด์"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"การประชุมทางวิดีโอ:"})," หากคุณสามารถจับภาพแผ่นที่สะอาดได้,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," ดูเป็นธรรมชาติมากกว่าการสลับ “พื้นหลังเสมือน” แบบง่ายๆ."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"สิ่งนี้ปรากฏในโลกแห่งความเป็นจริงที่ไหน"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"อีคอมเมิร์ซ:"})," ตลาด (เช่น, Amazon) มักต้องการพื้นหลังภาพหลัก ",(0,a.jsx)("em",{children:"สีขาวบริสุทธิ์"}),"; ดู"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"คู่มือภาพผลิตภัณฑ์"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"เครื่องมือออกแบบ:"})," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"ตัวลบพื้นหลัง"})," ของ Canva และ ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"ลบพื้นหลัง"})," ของ Photoshop"," ","ทำให้การตัดภาพทำได้ง่ายขึ้น."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ความสะดวกสบายบนอุปกรณ์:"})," “",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"ยกวัตถุ"}),"” ของ iOS/macOS เหมาะสำหรับการแชร์แบบสบายๆ."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"ทำไมการตัดภาพบางครั้งดูปลอม (และวิธีแก้ไข)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"การรั่วไหลของสี:"})," แสงสีเขียว/น้ำเงินล้อมรอบวัตถุ—ใช้"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"การควบคุม despill"})," หรือการเปลี่ยนสีเป้าหมาย."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"รัศมี/ขอบ:"})," โดยปกติแล้วเป็นการตีความอัลฟ่าที่ไม่ตรงกัน (ตรงกับที่คูณไว้ล่วงหน้า) หรือพิกเซลขอบที่ปนเปื้อนจากพื้นหลังเก่า; แปลง/ตีความให้ถูกต้อง"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"ภาพรวม"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"รายละเอียด"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"การเบลอ/เกรนที่ไม่ถูกต้อง:"})," วางวัตถุที่คมกริบลงบนพื้นหลังที่นุ่มนวลแล้วมันจะโดดเด่น; จับคู่การเบลอของเลนส์และเกรนหลังการประกอบ (ดู"," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"พื้นฐาน Porter–Duff"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"คู่มือ TL;DR"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"หากคุณควบคุมการจับภาพ:"})," ใช้คีย์โครมา; ให้แสงสว่างสม่ำเสมอ; วางแผน"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"despill"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"หากเป็นภาพถ่ายครั้งเดียว:"})," ลองใช้ ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"ลบพื้นหลัง"})," ของ Photoshop,"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"ตัวลบ"})," ของ Canva, หรือ"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"; ปรับแต่งด้วยพู่กัน/การทำแมทสำหรับผม."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"หากคุณต้องการขอบระดับโปร덕ชั่น:"})," ใช้การทำแมท ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"แบบปิด"}
1)," ","หรือแบบลึก) และตรวจสอบอัลฟ่าบนความโปร่งใส; ระวัง"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"การตีความอัลฟ่า"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"สำหรับภาพบุคคล/วิดีโอ:"})," พิจารณา"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," หรือ"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Background Matting V2"}),"; สำหรับการแบ่งส่วนที่แนะนำด้วยการคลิก,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," เป็นส่วนหน้าที่ทรงพลัง."]})]})]})},ja:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"背景の削除"}),"は、被写体を周囲から分離し、透明な背景に配置したり、 シーンを交換したり、新しいデザインに合成したりできるようにします。内部では、"," ",(0,a.jsx)("em",{children:"アルファマット"}),"(ピクセルごとの不透明度0〜1)を推定し、前景を何か他のものの上に",(0,a.jsx)("em",{children:"アルファ合成"}),"しています。これは",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"ポーター-ダフ"}),"の数学であり、「フリンジ」や"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"ストレートアルファ対乗算済みアルファ"}),"のようなおなじみの落とし穴の原因です。乗算済みアルファとリニアカラーに関する実践的なガイダンスについては、"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"MicrosoftのWin2Dノート"}),"、"," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"Søren Sandmann"}),"、および"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"Lomontのリニアブレンドに関する記事"}),"を参照してください。"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"人々が背景を削除する主な方法"}),(0,a.jsx)("h3",{children:"1) クロマキー(「グリーン/ブルースクリーン」)"}),(0,a.jsxs)("p",{children:["キャプチャを制御できる場合は、背景を単色(多くの場合緑)で塗りつぶし、その色相を",(0,a.jsx)("em",{children:"キーアウト"}),"します。 これは高速で、映画や放送で実証済みであり、ビデオに最適です。トレードオフは照明とワードローブです。 色付きの光がエッジ(特に髪)にこぼれるため、",(0,a.jsx)("em",{children:"デスピル"}),"ツールを使用して汚染を中和します。 優れた入門書には、",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"Nukeのドキュメント"}),"、"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"}),"、および実践的な"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"Fusionデモ"}),"が含まれます。"]}),(0,a.jsx)("h3",{children:"2) インタラクティブセグメンテーション(クラシックCV)"}),(0,a.jsxs)("p",{children:["背景が乱雑な単一の画像ã
1®å ´åˆã€",(0,a.jsx)("em",{children:"インタラクティブ"}),"アルゴリズムには、ユーザーからのいくつかのヒント(たとえば、緩い 長方形や落書き)が必要であり、鮮明なマスクに収束します。標準的な方法は"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"})," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"本の章"}),")であり、前景/背景のカラーモデルを学習し、グラフカットを繰り返し使用してそれらを分離します。",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"GIMPの前景選択"}),"では、"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"ImageJプラグイン"}),")に基づいた同様のアイデアが見られます。"]}),(0,a.jsx)("h3",{children:"3) 画像マッティング(きめ細かいアルファ)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"マッティング"}),"は、かすかな境界(髪、毛皮、煙、ガラス)での部分的な透明度を解決します。クラシックな"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"クローズドフォームマッティング"}),"は、"," ",(0,a.jsx)("em",{children:"トライマップ"}),"(明確な前景/明確な背景/不明)を取得し、強力なエッジ忠実度でアルファの線形システムを解きます。現代の"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"ディープイメージマッティング"}),"は、"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"}),"データセット(",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"MMEditingドキュメント"}),")でニューラルネットワークをトレーニングし、"," ","SAD、MSE、Gradient、Connectivity(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"ベンチマークの説明"}),")などのメトリックで評価されます。"]}),(0,a.jsx)("h3",{children:"4) ディープラーニングカットアウト(トライマップなし)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),"(顕著なオブジェクト検出)は、強力な一般的な「背景削除」エンジンです"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"リポジトリ"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),"は、リアルタイムのポートレートマッティングを対象としています(",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F、B、Alpha(FBA)マッティング"}),"は、前景、背景、アルファを共同で予測して、カラーハローを低減します"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"リポジトリ"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"は、背景プレートを想定し、最大4K/30fpsでリアルタイムにストランドレベルのマットを生成します"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"プロジェクトページ"}),"、"," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"リポジトリ"}),")。"]})]}),(0,a.jsxs)("p",{children:["関連するセグメンテーション作業も役立ちます:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"}),"は、エンコーダー-デコーダーとatrous畳み込みで境界を洗練します"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"}),"は、インスタンスごとのマスクを提供します"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); そして"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM(Segment Anything)"}),"は、"," ","なじみのない画像に対してゼロショットマスクを生成する",(0,a.jsx)("em",{children:"プロンプト可能"}),"な基盤モデルです。"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"人気のあるツールが行うこと"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"背景を削除"}),"クイックアクションは、内部で「被写体を選択→レイヤーマスク」を実行します"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"ここで確認"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-sub
1ject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"チュートリアル"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"前景選択"}),"(SIOX)。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": 画像と短いビデオ用の1クリック"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"背景リムーバー"}),"。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": 自動化のためのWebアプリ+ ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"}),"。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Appleデバイス"}),": 写真/Safari/クイックルックのシステムレベルの「",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"被写体を持ち上げる"}),"」"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"iOSでのカットアウト"}),")。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"よりクリーンなカットアウトのためのワークフローのヒント"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"賢く撮影する。"})," 良好な照明と強い被写体と背景のコントラストは、すべての方法に役立ちます。グリーン/ブルースクリーンを使用する場合は、"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"デスピル"}),"を計画してください"," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"ガイド"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"広く始めて、狭く絞り込む。"})," 自動選択(被写体を選択、"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),"、"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),")を実行し、次にブラシまたはマッティング(例:"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"クローズドフォーム"}),")でエッジを洗練します。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"半透明に注意する。"})," ガラス、ベール、モーションブラー、飛び散った髪には、真のアルファが必要です(単なるハードマスクではありません)。"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"}),"も回復する方法は、ハローを最小限に抑えます。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"アルファを知る。"})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"ストレート対乗算済み"}),"は、異なるエッジの動作を生成します。一貫してエクスポート/合成します("," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"概要"}),"、"," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),"を参照)。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"適切な出力を選択する。"})," 「背景なし」の場合は、クリーンなアルファを持つラスター(PNG/WebPなど)を配信するか、さらなる編集が予想される場合はマスク付きのレイヤーファイルを保持します。重要なのは、計算した"," ",(0,a.jsx)("em",{children:"アルファの品質"}),"であり、",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"ポーター-ダフ"}),"に根ざしています。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"品質と評価"}),(0,a.jsxs)("p",{children:["学術研究では、",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),"に関する",(0,a.jsx)("em",{children:"SAD"}),"、",(0,a.jsx)("em",{children:"MSE"}),"、",(0,a.jsx)("em",{children:"Gradient"}),"、および",(0,a.jsx)("em",{children:"Connectivity"}),"エラーが報告されています。モデルを選択する場合は、これらのメトリックを探してください"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"メトリックの定義"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Mattingのメトリックセクション"}),")。 ポートレート/ビデオの場合、",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),"と"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Background Matting V2"}),"は強力です。一般的な「顕著なオブジェクト」画像の場合、"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),"は堅実なベースラインです。困難な透明度の場合、"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),"はよりクリーンになる可能性があります。"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"一般的なエッジケース(および修正)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"髪と毛皮:"})," マッティング(トライマップまたは"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),"のようなポートレートマッティング)を優先し、チェッカーボードで検査します。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"微細な構造(自転車のスポーク、釣り糸):"})," 高解像度の入力を使用し、マッティングの前に"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"}),"などの境界認識セグメンターを前処理ステップとして使用します。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"透けて見えるもの(煙、ガラス):"})," 部分的なアルファと、多くの場合、前景色の推定が必要です"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ビデオ会議:"})," きれいなプレートをキャプチャできる場合は、"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"は、単純な「仮想背景」トグルよりも自然に見えます。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"これが現実世界でどこに現れるか"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Eコマース:"})," マーケットプレイス(Amazonなど)では、多くの場合、",(0,a.jsx)("em",{children:"純白"}),"のメイン画像背景が必要です。"," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"製品画像ガイド"})," ","(RGB 255,255,255)を参照してください。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"デザインツール:"})," Canvaの"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"背景リムーバー"}),"とPhotoshopの"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"背景を削除"}),"は、"," ","迅速なカットアウトを合理化します。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"オンデバイスの利便性:"})," iOS/macOSの「",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"被写体を持ち上げる"}),"」は、カジュアルな共有に最適です。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"カットアウトが時々偽物に見える理由(および修正)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"カラースピル:"})," 緑/青の光が被写体に回り込みます—"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"デスピルコントロール"}),"またはターゲットを絞った色置換を使用します。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ハロー/フリンジ:"})," 通常、アルファ解釈の不一致(ストレート対乗算済み)または古い背景で汚染されたエッジピクセル。正しく変換/解釈します"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"概要"}),"、"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"詳細"}),")。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"間違ったぼかし/粒子:"})," 非常にシャープな被写体を柔らかい背景に貼り付けると、それが目立ちます。合成後にレンズのぼかしと粒子を一致させます("," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"ポーター-ダフの基本"}),"を参照)。"]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"TL;DRプレイブック"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"キャプチャを制御する場合:"})," クロマキーを使用します。均等に照明します。"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"デスピル"}),"を計画します。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"1回限りの写真の場合:"})," Photoshopの"," ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"背景を削除"}),"、"," ","Canvaの"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"リムーバー"}),"、または"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"を試してください。髪の毛はブラシ/マッティングで洗練します。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"本番グレードのエッジが必要な場合:"})," マッティング("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"クローズドフォーム"})," ","またはディープ)を使用し、透明度でアルファを確認します。"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"アルファ解釈"}),"に注意してください。"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"ポートレート/ビデオの場合:"})," "," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),"または"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"を検討してください。クリックガイド付きセグメンテーションの場合、"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"は強力なフロントエンドです。"]})]})]})},ru:{explainer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Удаление фона"})," отделяет объект от окружения, чтобы вы могли поместить его на прозрачный фон, заменить сцену или встроить в новый дизайн. Под капотом вы оцениваете"," ",(0,a.jsx)("em",{children:"альфа-мат"})," — покадровую непрозрачность от 0 до 1 — и затем выполняете ",(0,a.jsx)("em",{children:"альфа-композитинг"})," переднего плана поверх другой подложки. Эта математика из ",(0,a.jsx)("a",{href:"https://keithp.com/~keithp/porterduff/p253-porter.pdf",target:"_blank",rel:"noreferrer",children:"Porter–Duff"})," приводит к знакомым ловушкам вроде «ореолов» и"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"прямой против премультиплицированной альфы"}),". Практические советы по премультипликации и линейному цвету см. в"," ",(0,a.jsx)("a",{href:"https://learn.microsoft.com/en-us/windows/apps/develop/win2d/premultiplied-alpha",target:"_blank",rel:"noreferrer",children:"заметках Win2D от Microsoft"}),","," ",(0,a.jsx)("a",{href:"https://ssp.impulsetrain.com/gamma-premult.html",target:"_blank",rel:"noreferrer",children:"у Сёрена Сандмана"})," и"," ",(0,a.jsx)("a",{href:"https://lomont.org/posts/2023/correctalphagammaforimages/",target:"_blank",rel:"noreferrer",children:"в материале Ломонта про линейное смешивание"}),"."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Основные способы удаления фона"}),(0,a.jsx)("h3",{children:"1) Хромакей («green/blue screen»)"}),(0,a.jsxs)("p",{children:["Если вы управляете съёмкой, покрасьте фон в сплошной цвет (часто зелёный) и ",(0,a.jsx)("em",{children:"кейте"})," этот оттенок. Это быстро, проверено в кино и вещании и идеально для видео. Компромиссы — свет и гардероб: цветной свет попадает на края (особенно волосы), поэтому используйте инструменты ",(0,a.jsx)("em",{children:"despill"}),", чтобы нейтрализовать загрязнение. Хорошие вводные — ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"доки Nuke"}),","," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"Mixing Light"})," и практическое"," ",(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=On2sze3S2Vg",target:"_blank",rel:"noreferrer",children:"демо по Fusion"}),"."]}),(0,a.jsx)("h3",{children:"2) Интерактивная сегментация (классическое CV)"}),(0,a.jsxs)("p",{children:["Для одиночных кадров со сложным фоном ",(0,a.jsx)("em",{children:"интерактивным"})," алгоритмам нужны подсказки пользователя — например, свободный прямоугольник или штрихи — и они сходятся к аккуратной маске. Каноничный метод —"," ",(0,a.jsx)("a",{href:"https://pages.cs.wisc.edu/~dyer/cs534-fall11/papers/grabcut-rother.pdf",target:"_blank",rel:"noreferrer",children:"GrabCut"}
1)," ","(",(0,a.jsx)("a",{href:"https://www.microsoft.com/en-us/research/wp-content/uploads/2011/03/RotherEtAlMRFBook-GrabCut.pdf",target:"_blank",rel:"noreferrer",children:"глава в книге"}),"), который обучает цветовые модели переднего/заднего плана и итеративно разделяет их графовыми разрезами. Похожие идеи есть в ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Foreground Select GIMP"})," на основе"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Simple_Interactive_Object_Extraction",target:"_blank",rel:"noreferrer",children:"SIOX"})," ","(",(0,a.jsx)("a",{href:"https://imagej.net/plugins/siox",target:"_blank",rel:"noreferrer",children:"плагина ImageJ"}),")."]}),(0,a.jsx)("h3",{children:"3) Маттинг (тонкозернистая альфа)"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("em",{children:"Маттинг"})," решает частичную прозрачность на тонких границах (волосы, шерсть, дым, стекло). Классический"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"closed-form matting"})," ","берёт ",(0,a.jsx)("em",{children:"тримап"})," (точно передний/точно фон/неизвестно) и решает линейную систему для альфы с высокой точностью по краям. Современный"," ",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_cvpr_2017/html/Xu_Deep_Image_Matting_CVPR_2017_paper.html",target:"_blank",rel:"noreferrer",children:"deep image matting"})," ","обучает нейросети на датасете ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Adobe Composition-1K"})," (",(0,a.jsx)("a",{href:"https://edit.readthedocs.io/en/latest/matting_datasets.html",target:"_blank",rel:"noreferrer",children:"MMEditing docs"}),") и оценивается метриками вроде"," ","SAD, MSE, Gradient и Connectivity (",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"объяснение бенчмарка"}),")."]}),(0,a.jsx)("h3",{children:"4) Вырезки на глубоком обучении (без тримапа)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," (обнаружение заметных объектов) — мощный универсальный движок для remove background"," ","(",(0,a.jsx)("a",{href:"https://github.com/xuebinqin/U-2-Net",target:"_blank",rel:"noreferrer",children:"репозиторий"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," нацелен на портретный маттинг в реальном времени (",(0,a.jsx)("a",{href:"https://www.cs.cityu.edu.hk/~rynson/papers/aaai22.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2003.07711",target:"_blank",rel:"noreferrer",children:"F, B, Alpha (FBA) Matting"})," одновременно предсказывает передний план, фон и альфу, чтобы уменьшить цветовые ореолы"," ","(",(0,a.jsx)("a",{href:"https://github.com/MarcoForte/FBA_Matting",target:"_blank",rel:"noreferrer",children:"репозиторий"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," предполагает наличие чистого фона и позволяет создавать маски на уровне отдельных прядей в реальном времени вплоть до 4K/30fps"," ","(",(0,a.jsx)("a",{href:"https://grail.cs.washington.edu/projects/background-matting-v2/",target:"_blank",rel:"noreferrer",children:"страница проекта"}),","," ",(0,a.jsx)("a",{href:"https://github.com/PeterL1n/BackgroundMattingV2",target:"_blank",rel:"noreferrer",children:"репозиторий"}),")."]})]}),(0,a.jsxs)("p",{children:["Связанные методы сегментации тоже полезны:"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"})," уточняет границы энкодером–декодером и atrous-свёртками"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ECCV_2018/papers/Liang-Chieh_Chen_Encoder-Decoder_with_Atrous_ECCV_2018_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),");"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1703.06870",target:"_blank",rel:"noreferrer",children:"Mask R-CNN"})," даёт маски для каждого объекта"," ","(",(0,a.jsx)("a",{href:"https://openaccess.thecvf.com/content_ICCV_2017/papers/He_Mask_R-CNN_ICCV_2017_paper.pdf",target:"_blank",rel:"noreferrer",children:"PDF"}),"); а"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM (Segment Anything)"})," —"," ",(0,a.jsx)("em",{children:"управляемая запросами"})," foundation-модель, которая строит маски на новых изображениях без дообучения."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Что делают популярные инструменты"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Photoshop"}),": ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Remove Backgroun
1d quick action"})," под капотом выполняет «Select Subject → layer mask»"," ","(",(0,a.jsx)("a",{href:"https://community.adobe.com/t5/photoshop-ecosystem-discussions/lost-quot-remove-background-bar-quot/td-p/14090188",target:"_blank",rel:"noreferrer",children:"подтверждение"}),";"," ",(0,a.jsx)("a",{href:"https://www.photoshopessentials.com/basics/select-subject-vs-remove-background-in-photoshop/",target:"_blank",rel:"noreferrer",children:"учебник"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"GIMP"}),": ",(0,a.jsx)("a",{href:"https://docs.gimp.org/2.8/en/gimp-tool-foreground-select.html",target:"_blank",rel:"noreferrer",children:"Foreground Select"})," (SIOX)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Canva"}),": однокликовый"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Background Remover"})," для изображений и короткого видео."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"remove.bg"}),": веб-приложение + ",(0,a.jsx)("a",{href:"https://www.remove.bg/api",target:"_blank",rel:"noreferrer",children:"API"})," для автоматизации."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Устройства Apple"}),": системная «",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Отделить объект от фона"}),"» в Photos/Safari/Quick Look"," ","(",(0,a.jsx)("a",{href:"https://support.apple.com/en-us/102460",target:"_blank",rel:"noreferrer",children:"вырезки на iOS"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Советы по рабочему процессу для более чистых вырезок"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Снимайте с умом."})," Хороший свет и высокий контраст объект–фон помогают любому методу. С зелёными/синими экранами планируйте"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"despill"})," ","(",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"гайд"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Начните с общего, затем уточняйте детали."})," Запустите автоматический выбор (Select Subject,"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]}),","," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"}),"), затем доведите края кистями или маттингом (например,"," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"closed-form"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Следите за полупрозрачностью."})," Стекло, фата, смаз от движения, выбивающиеся волосы требуют настоящей альфы (а не жёсткой маски). Методики, которые также восстанавливают"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"F/B
1/α"}),", уменьшают ореолы."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Понимайте альфа-канал."})," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"Прямая и премультиплицированная"})," альфа ведут себя по-разному; экспортируйте и компонуйте последовательно (см."," ",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"обзор"}),","," ",(0,a.jsx)("a",{href:"https://shawnhargreaves.com/blog/premultiplied-alpha.html",target:"_blank",rel:"noreferrer",children:"Hargreaves"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Выбирайте правильный вывод."})," Для «без фона» отдайте растр с чистой альфой (например, PNG/WebP) или храните многослойные файлы с масками, если ожидаете правки. Ключ —"," ",(0,a.jsx)("em",{children:"качество альфы"}),", которое вы посчитали, — коренится в ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"Porter–Duff"}),"."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Качество и оценка"}),(0,a.jsxs)("p",{children:["Научные работы приводят ошибки ",(0,a.jsx)("em",{children:"SAD"}),", ",(0,a.jsx)("em",{children:"MSE"}),", ",(0,a.jsx)("em",{children:"Gradient"})," и ",(0,a.jsx)("em",{children:"Connectivity"})," на"," ",(0,a.jsx)("a",{href:"https://sites.google.com/view/deepimagematting",target:"_blank",rel:"noreferrer",children:"Composition-1K"}),". Если выбираете модель, ищите эти метрики"," ","(",(0,a.jsx)("a",{href:"https://github.com/withoutbg/alpha-matting-evaluation-benchmark",target:"_blank",rel:"noreferrer",children:"определения метрик"}),";"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2002.04433",target:"_blank",rel:"noreferrer",children:"секцию про метрики Background Matting"}),"). Для портретов/видео ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," и"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," сильны; для общих снимков «salient object»"," ",(0,a.jsxs)("a",{href:"https://arxiv.org/abs/2005.09007",target:"_blank",rel:"noreferrer",children:["U",(0,a.jsx)("sup",{children:"2"}),"-Net"]})," — надёжная база; для сложной прозрачности"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"})," даёт более чистый результат."]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Типовые сложные случаи (и решения)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Волосы и шерсть:"})," выбирайте маттинг (тримап или портретный вроде"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"}),") и проверяйте на шахматном фоне."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Тонкие структуры (спицы велосипеда, леска):"})," используйте высокое разрешение и сегментатор, чувствительный к границам, например"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/1802.02611",target:"_blank",rel:"noreferrer",children:"DeepLabv3+"}),", перед маттингом."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Полупрозрачные объекты (дым, стекло):"})," нужна дробная альфа и часто восстановление цвета переднего плана"," ","(",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2003.07711",target:"_blank",rel:"noreferrer",children:"FBA"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Видеоконференции:"})," если можно снять чистую пластину,"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"})," выглядит естественнее, чем простые переключатели «виртуального фона»."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Где это встречается на практике"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Е-commerce:"})," маркетплейсы (например, Amazon) часто требуют ",(0,a.jsx)("em",{children:"чисто белый"})," фон на главном изображении; см."," ",(0,a.jsx)("a",{href:"https://sellercentral.amazon.com/help/hub/reference/external/G1881?locale=en-CA",target:"_blank",rel:"noreferrer",children:"гайд по изображениям продукта"})," ","(RGB 255,255,255)."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Дизайнерские инструменты:"})," Canva ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Remover"})," и Photoshop ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Remove Background"})," ","ускоряют быстрые вырезки."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Удобство на устройстве:"})," iOS/macOS «",(0,a.jsx)("a",{href:"https://support.apple.com/guide/iphone/lift-a-subject-from-the-photo-background-iphfe4809658/ios",target:"_blank",rel:"noreferrer",children:"Отделить объект от фона"}),"» отлично подходит для повседневного шеринга."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"Почему вырезки иногда выглядят фейково (и решения)"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Цветовые протечки:"})," зелёный/синий свет обволакивает объект — используйте"," ",(0,a.jsx)("a",{href:"https://learn.foundry.com/nuke/content/comp_environment/keying_with_chromakeyer/despill_controls.html",target:"_blank",rel:"noreferrer",children:"despill controls"})," или точечную замену цвета."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Ореолы/фринжи:"})," чаще всего это несоответствие трактовки альфы (прямая vs. премультиплицированная) или края, загрязнённые старым фоном; конвертируйте/интерпретируйте корректно"," ","(",(0,a.jsx)("a",{href:"https://www.cgdirector.com/premultiplied-alpha-vs-straight-alpha/",target:"_blank",rel:"noreferrer",children:"обзор"}),","," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"детали"}),")."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Неверное размытие/зерно:"})," если вклеить бритвенно резкий объект в размытый фон, он «выпрыгнет»; подгоняйте размытие объектива и зерно после композитинга (см."," ",(0,a.jsx)("a",{href:"https://graphics.pixar.com/library/Compositing/",target:"_blank",rel:"noreferrer",children:"основы Porter–Duff"}),")."]})]}),(0,a.jsx)("hr",{}),(0,a.jsx)("h2",{children:"TL;DR‑шпаргалка"}),(0,a.jsxs)("ol",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Если вы контролируете съёмку:"})," используйте хромакей, освещайте равномерно, планируйте"," ",(0,a.jsx)("a",{href:"https://mixinglight.com/color-grading-tutorials/advanced-chroma-keying-despill-operations-davinci-resolve-fusion/",target:"_blank",rel:"noreferrer",children:"despill"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Если это разовая фотография:"})," попробуйте Photoshop ",(0,a.jsx)("a",{href:"https://helpx.adobe.com/photoshop/desktop/repair-retouch/remove-objects-fill-space/remove-background-in-your-images.html",target:"_blank",rel:"noreferrer",children:"Remove Backgroun
1d"}),", Canva"," ",(0,a.jsx)("a",{href:"https://www.canva.com/en_au/help/background-remover/",target:"_blank",rel:"noreferrer",children:"удаление фона"})," или"," ",(0,a.jsx)("a",{href:"https://www.remove.bg/",target:"_blank",rel:"noreferrer",children:"remove.bg"}),"; волосы дорабатывайте кистями/маттингом."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Если нужны края продакшен-уровня:"})," используйте маттинг ("," ",(0,a.jsx)("a",{href:"https://people.csail.mit.edu/alevin/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf",target:"_blank",rel:"noreferrer",children:"closed-form"})," ","или deep) и проверяйте альфу на прозрачности; следите за"," ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied",target:"_blank",rel:"noreferrer",children:"трактовкой альфы"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Для портретов/видео:"})," рассмотрите"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2011.11961",target:"_blank",rel:"noreferrer",children:"MODNet"})," или"," ",(0,a.jsx)("a",{href:"https://arxiv.org/abs/2012.07810",target:"_blank",rel:"noreferrer",children:"Backgroun
1d Matting V2"}),"; для сегментации по клику"," ",(0,a.jsx)("a",{href:"https://arxiv.org/pdf/2304.02643v1",target:"_blank",rel:"noreferrer",children:"SAM"})," — мощный фронтенд."]})]})]})}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.