{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/an-matte-boundary-defocus-model-based","title":"An α-Matte Boundary Defocus Model Based Cascaded Network for Multi-focus Image Fusion","arxiv_id":"1910.13136","date":"2019-10-29","proceeding":null,"authors":["Haoyu Ma","Qingmin Liao","Juncheng Zhang","Shaojun Liu","Jing-Hao Xue"],"abstract":"Capturing an all-in-focus image with a single camera is difficult since the depth of field of the camera is usually limited. An alternative method to obtain the all-in-focus image is to fuse several images focusing at different depths. However, existing multi-focus image fusion methods cannot obtain clear results for areas near the focused/defocused boundary (FDB). In this paper, a novel {\\alpha}-matte boundary defocus model is proposed to generate realistic training data with the defocus spread effect precisely modeled, especially for areas near the FDB. Based on this {\\alpha}-matte defocus model and the generated data, a cascaded boundary aware convolutional network termed MMF-Net is proposed and trained, aiming to achieve clearer fusion results around the FDB. More specifically, the MMF-Net consists of two cascaded sub-nets for initial fusion and boundary fusion, respectively; these two sub-nets are designed to first obtain a guidance map of FDB and then refine the fusion near the FDB. Experiments demonstrate that with the help of the new {\\alpha}-matte boundary defocus model, the proposed MMF-Net outperforms the state-of-the-art methods both qualitatively and quantitatively.","url_abs":"https://arxiv.org/abs/1910.13136v2","url_pdf":"https://arxiv.org/pdf/1910.13136v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"an-matte-boundary-defocus-model-based","repo_url":"https://github.com/xytmhy/MMF-Net-Multi-Focus-Image-Fusion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"an-matte-boundary-defocus-model-based","repo_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"multi-focus-image-fusion","task_name":"Multi Focus Image Fusion"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1910.13136","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1910.13136"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/xytmhy/MMF-Net-Multi-Focus-Image-Fusion","reach":null}],"summary":{"ran_violates":1,"unverified":11},"by_repo_kind":{"listed":{"samples":12,"ran":1,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"1f35c95cc56413cd","entry":"tensor2rgb","repo":"xytmhy/MMF-Net-Multi-Focus-Image-Fusion","repo_kind":"listed","path":"run_inference.py","file_url":"https://github.com/xytmhy/MMF-Net-Multi-Focus-Image-Fusion/blob/HEAD/run_inference.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1f35c95cc56413cd"}},{"code_sha256_prefix":"88715f2d2d347598","entry":"CBAfusionnet","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"models/CBAfusion3.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/models/CBAfusion3.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"88715f2d2d347598"}},{"code_sha256_prefix":"591536509b4c2063","entry":"CBAfusionnet_bn","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"models/CBAfusion3.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/models/CBAfusion3.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"591536509b4c2063"}},{"code_sha256_prefix":"c4e8c04d1cd3f12c","entry":"EPE","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"multiscaleloss.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/multiscaleloss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c4e8c04d1cd3f12c"}},{"code_sha256_prefix":"cc5bae312cc0118b","entry":"ResBlock","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"models/util.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/models/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cc5bae312cc0118b"}},{"code_sha256_prefix":"a04ba2a10f4c13ea","entry":"conv","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"models/util.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/models/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a04ba2a10f4c13ea"}},{"code_sha256_prefix":"b2a303cfd1a18502","entry":"default_loader","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"datasets/listdataset.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/datasets/listdataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b2a303cfd1a18502"}},{"code_sha256_prefix":"aba4cad8af92fb3b","entry":"make_dataset","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"datasets/data_Fusion.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/datasets/data_Fusion.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aba4cad8af92fb3b"}},{"code_sha256_prefix":"d6fe55241488d2f7","entry":"mapEPE","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"multiscaleloss.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/multiscaleloss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d6fe55241488d2f7"}},{"code_sha256_prefix":"e8536209d2f05601","entry":"predict_flow","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"models/util.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/models/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e8536209d2f05601"}},{"code_sha256_prefix":"7f5e9ceae937ea27","entry":"realEPE","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"multiscaleloss.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/multiscaleloss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7f5e9ceae937ea27"}},{"code_sha256_prefix":"bc0dde7cfdd4d7b9","entry":"split2list","repo":"xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion","repo_kind":"listed","path":"datasets/util.py","file_url":"https://github.com/xytmhy/MMF-Net-alpha-Matte-Boundary-Defocus-Model-Fusion/blob/HEAD/datasets/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bc0dde7cfdd4d7b9"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}