<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>图像算法 on 技术博客 - 有条工具</title><link>/blog/tags/%E5%9B%BE%E5%83%8F%E7%AE%97%E6%B3%95/</link><description>Recent content in 图像算法 on 技术博客 - 有条工具</description><generator>Hugo -- 0.147.7</generator><language>zh-cn</language><copyright>2024-2025 有条工具技术博客</copyright><lastBuildDate>Fri, 13 Nov 2026 11:00:00 +0800</lastBuildDate><atom:link href="/blog/tags/%E5%9B%BE%E5%83%8F%E7%AE%97%E6%B3%95/feed.xml" rel="self" type="application/rss+xml"/><item><title>证件照换底色：四角取样、边缘泛洪 BFS 与只换「连到边」的背景</title><link>/blog/articles/edge-flood-fill-bg-replace/</link><pubDate>Fri, 13 Nov 2026 11:00:00 +0800</pubDate><guid>/blog/articles/edge-flood-fill-bg-replace/</guid><description>把蓝底证件照换白底，难点不在「改颜色」而在「认定哪块是背景」：全图按颜色替换会误伤白衬衫，按固定矩形抠头又削发型。解法是边缘泛洪——从照片四边出发，只把与基准底色相近且连通到边缘的区域标记为背景，人脸衣物内部即使颜色相近也安然无恙。这篇拆解四角取样、BFS 队列实现、容差取舍、羽化过渡，以及 300dpi 六寸排版的毫米换算。</description></item></channel></rss>