{"id":100097,"date":"2026-09-03T22:25:41","date_gmt":"2026-09-03T14:25:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/100097.html"},"modified":"2026-09-03T22:25:41","modified_gmt":"2026-09-03T14:25:41","slug":"%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e5%85%a5%e9%97%a8025-%e9%9d%9e%e7%ba%bf%e6%80%a7%e7%81%b0%e5%ba%a6%e5%8f%98%e6%8d%a2%ef%bc%9a%e4%bc%bd%e9%a9%ac%e6%a0%a1%e6%ad%a3%e4%b8%8e-log-%e5%8f%98%e6%8d%a2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/100097.html","title":{"rendered":"\u56fe\u50cf\u5904\u7406\u5165\u95e8025 | \u975e\u7ebf\u6027\u7070\u5ea6\u53d8\u6362\uff1a\u4f3d\u9a6c\u6821\u6b63\u4e0e Log \u53d8\u6362\u2014\u2014\u6697\u56fe\u6551\u661f\u7684\u4e24\u6761\u66f2\u7ebf"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142536-6a998360a72e5.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7b2c 025 \u671f | \u56fe\u50cf\u5904\u7406\u7b97\u6cd5\u5165\u95e8\u7cfb\u5217 | 2026-09-03<br \/>\n\u5173\u952e\u8bcd&#xff1a;\u4f3d\u9a6c\u6821\u6b63\u3001Log \u53d8\u6362\u3001\u975e\u7ebf\u6027\u70b9\u8fd0\u7b97\u3001\u81ea\u52a8\u4f3d\u9a6c\u3001LUT \u52a0\u901f\u3001sRGB \u663e\u793a\u4f3d\u9a6c\u3001\u6697\u56fe\u589e\u5f3a<\/p>\n<p>\u627f\u63a5 024 \u671f \u2192 025 \u671f&#xff1a;024 \u671f\u6211\u4eec\u7528\u4e00\u6761\u76f4\u7ebf&#xff08;g &#061; \u03b1\u00b7f &#043; \u03b2&#xff09;\u641e\u5b9a\u4eae\u5ea6\u4e0e\u5bf9\u6bd4\u5ea6&#xff1b;\u4eca\u665a\u628a\u76f4\u7ebf\u5f2f\u6210\u66f2\u7ebf\u2014\u2014\u4f3d\u9a6c\u4e0e Log\u3002\u5b83\u4eec\u4e13\u6cbb\u4e00\u79cd\u75c5&#xff1a;\u6697\u90e8\u7ec6\u8282\u6324\u5728\u4e00\u8d77&#xff0c;\u7ebf\u6027\u62c9\u4f38\u6551\u4e0d\u56de\u6765\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u5f15\u8a00&#xff1a;\u4e3a\u4ec0\u4e48\u9700\u8981&#034;\u66f2\u7ebf&#034;<\/h3>\n<p>024 \u671f\u7ed3\u5c3e\u7559\u4e86\u4e00\u4e2a\u5c3e\u5df4&#xff1a;\u9762\u5bf9\u4e00\u5f20\u6b20\u66dd\u6697\u56fe&#xff0c;\u7ebf\u6027\u53d8\u6362\u6709\u4e24\u4e2a\u5148\u5929\u7f3a\u9677\u3002<\/p>\n<p>\u7f3a\u9677 1&#xff1a;\u76f4\u7ebf\u662f&#034;\u4e00\u89c6\u540c\u4ec1&#034;\u7684\u3002<br \/>\n  g &#061; 1.4\u00b7f &#043; 55 \u786e\u5b9e\u80fd\u63d0\u4eae&#xff0c;\u4f46\u5b83\u5bf9\u6697\u90e8\u3001\u4e2d\u95f4\u8c03\u3001\u9ad8\u5149\u7684\u62c9\u4f38\u6bd4\u4f8b\u5b8c\u5168\u76f8\u540c\u3002<\/p>\n<p>\u7f3a\u9677 2&#xff1a;\u5bf9\u6bd4\u5ea6\u63d0\u5347&#xff08;\u7ed5 128 \u62c9\u4f38&#xff09;\u4f1a\u628a\u6697\u90e8\u538b\u6b7b\u3002<br \/>\n  g &#061; 1.9\u00b7(f \u2212 128) &#043; 128 \u4f1a\u8ba9\u6240\u6709 f &lt; 61 \u7684\u50cf\u7d20\u76f4\u63a5\u622a\u65ad\u6210 0\u2014\u2014<br \/>\n  \u4e5f\u5c31\u662f&#034;\u9ed1\u5f97\u4e00\u584c\u7cca\u6d82&#034;&#xff0c;\u6697\u90e8\u7ec6\u8282\u53cd\u800c\u5168\u90e8\u4e22\u5931\u3002<\/p>\n<p>\u800c\u4eba\u773c\u5bf9\u6697\u90e8\u53d8\u5316\u7684\u654f\u611f\u5ea6\u8fdc\u9ad8\u4e8e\u4eae\u90e8&#xff08;\u8fd9\u6b63\u662f sRGB \u7f16\u7801\u7684\u8bbe\u8ba1\u521d\u8877&#xff09;\u3002\u6211\u4eec\u9700\u8981\u4e00\u79cd\u53d8\u6362&#xff1a;\u5728\u4f4e\u7070\u533a\u659c\u7387\u5927&#xff08;\u628a\u6324\u5728\u4e00\u8d77\u7684\u6697\u90e8\u7ec6\u8282\u62c9\u5f00&#xff09;&#xff0c;\u5728\u9ad8\u7070\u533a\u659c\u7387\u5c0f&#xff08;\u4eae\u90e8\u53cd\u6b63\u770b\u5f97\u6e05&#xff0c;\u4e0d\u7528\u52a8&#xff09;\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u66f2\u7ebf&#xff0c;\u4e5f\u5c31\u662f\u4eca\u665a\u7684\u4e3b\u89d2&#xff1a;<\/p>\n<p>\u4f3d\u9a6c\u6821\u6b63&#xff1a;  g &#061; 255 \u00b7 (f \/ 255)^\u03b3<br \/>\nLog \u53d8\u6362&#xff1a;  g &#061; c \u00b7 log10(1 &#043; f)&#xff0c;\u5176\u4e2d c &#061; 255 \/ log10(256) \u2248 96.34<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u6838\u5fc3\u539f\u7406&#xff1a;\u5e42\u51fd\u6570\u4e0e\u5bf9\u6570\u51fd\u6570\u7684\u5f62\u72b6\u9b54\u6cd5<\/h3>\n<h4>2.1 \u4f3d\u9a6c\u6821\u6b63<\/h4>\n<p>\u628a\u50cf\u7d20\u503c\u5f52\u4e00\u5316\u5230 [0, 1]&#xff0c;\u505a\u5e42\u8fd0\u7b97&#xff0c;\u518d\u6620\u5c04\u56de [0, 255]&#xff1a;<\/p>\n<p>g &#061; 255 \u00b7 (f \/ 255)^\u03b3<\/p>\n<table>\n<tr>\u03b3 \u53d6\u503c\u66f2\u7ebf\u5f62\u72b6\u6548\u679c\u5178\u578b\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">\u03b3 &lt; 1<\/td>\n<td align=\"left\">\u4f4e\u7070\u533a\u659c\u7387 &gt; 1&#xff0c;\u66f2\u7ebf\u4e0a\u51f8<\/td>\n<td align=\"left\">\u63d0\u4eae\u6697\u90e8<\/td>\n<td align=\"left\">\u6b20\u66dd\u4fee\u590d\u3001\u6697\u623f\u7167\u7247<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u03b3 &#061; 1<\/td>\n<td align=\"left\">\u5bf9\u89d2\u76f4\u7ebf<\/td>\n<td align=\"left\">\u6052\u7b49&#xff08;\u4e0d\u53d8&#xff09;<\/td>\n<td align=\"left\">\u2014<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u03b3 &gt; 1<\/td>\n<td align=\"left\">\u4f4e\u7070\u533a\u659c\u7387 &lt; 1&#xff0c;\u66f2\u7ebf\u4e0b\u51f9<\/td>\n<td align=\"left\">\u538b\u6697\u6697\u90e8\u3001\u4fdd\u62a4\u9ad8\u5149<\/td>\n<td align=\"left\">\u9632\u6b62\u8fc7\u66dd\u3001HDR \u538b\u7f29<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e24\u4e2a\u951a\u70b9\u662f\u7406\u89e3\u7684\u5173\u952e&#xff08;\u5e42\u8fd0\u7b97\u7684\u6570\u5b66\u6027\u8d28&#xff09;&#xff1a;<br \/>\n  f &#061; 0   \u2192  0^\u03b3 &#061; 0      \u7eaf\u9ed1\u6c38\u8fdc\u4e0d\u53d8<br \/>\n  f &#061; 255 \u2192  1^\u03b3 &#061; 1      \u7eaf\u767d\u6c38\u8fdc\u4e0d\u53d8<br \/>\n  \u4e2d\u95f4\u5168\u90e8\u88ab\u66f2\u7ebf&#034;\u5f2f&#034;\u4e86&#xff1a;\u03b3 &lt; 1 \u65f6\u4f4e\u7070\u533a\u88ab\u62c9\u4f38&#xff0c;\u03b3 &gt; 1 \u65f6\u88ab\u538b\u7f29\u3002<\/p>\n<h4>2.2 \u663e\u793a\u4f3d\u9a6c 2.2&#xff1a;\u4e3a\u4ec0\u4e48\u8fd9\u4e2a\u53c2\u6570\u65e0\u5904\u4e0d\u5728<\/h4>\n<p>\u5386\u53f2\u4e0e\u751f\u7406\u7684\u53cc\u91cd\u539f\u56e0&#xff1a;<\/p>\n<p>1. CRT \u663e\u793a\u5668\u7684\u7269\u7406\u54cd\u5e94\u8fd1\u4f3c\u5e42\u51fd\u6570 g \u221d f^2.2&#xff08;\u7535\u538b \u2192 \u4eae\u5ea6\u7684\u975e\u7ebf\u6027&#xff09;\u3002<br \/>\n2. \u4eba\u773c\u5bf9\u6697\u90e8\u66f4\u654f\u611f&#xff0c;sRGB \u6807\u51c6\u5e72\u8106&#034;\u5c06\u9519\u5c31\u9519&#034;&#xff1a;<br \/>\n   \u56fe\u50cf\u5b58\u50a8\u65f6\u9884\u5148\u505a \u03b3 \u2248 1\/2.2 \u7684\u7f16\u7801&#xff0c;\u663e\u793a\u65f6\u786c\u4ef6\u81ea\u52a8\u505a \u03b3 &#061; 2.2 \u89e3\u7801&#xff0c;<br \/>\n   \u4e00\u6765\u4e00\u56de\u65e2\u8865\u507f\u4e86\u663e\u793a\u5668&#xff0c;\u53c8\u628a\u7f16\u7801\u7cbe\u5ea6\u96c6\u4e2d\u7ed9\u4e86\u4eba\u773c\u6700\u654f\u611f\u7684\u6697\u90e8\u3002<\/p>\n<p>\u6240\u4ee5\u4eca\u5929\u51e0\u4e4e\u6240\u6709\u56fe\u50cf\u90fd\u662f&#034;\u4f3d\u9a6c\u538b\u7f29\u8fc7&#034;\u7684\u3002\u76f8\u673a RAW \u76f4\u51fa\u504f\u6697\u3001\u6e38\u620f\u5f15\u64ce\u91cc\u51fa\u73b0 Gamma\/Linear \u8272\u5f69\u7a7a\u95f4\u5207\u6362\u3001\u663e\u793a\u5668\u6821\u8272\u8981\u8c03\u4f3d\u9a6c\u66f2\u7ebf\u2014\u2014\u5168\u662f\u540c\u4e00\u4e2a\u6570\u5b66\u3002<\/p>\n<h4>2.3 Log \u53d8\u6362<\/h4>\n<p>\u5bf9\u6570\u51fd\u6570\u5929\u7136&#034;\u538b\u5927\u4fdd\u5c0f&#034;&#xff1a;<\/p>\n<p>g &#061; c \u00b7 log10(1 &#043; f)&#xff0c;c &#061; 255 \/ log10(256) \u2248 96.34<br \/>\n  &#xff08;\u52a0 1 \u907f\u514d log10(0)&#xff1b;\u9664\u4ee5 log10(256) \u4fdd\u8bc1 f &#061; 255 \u2192 g &#061; 255&#xff09;<\/p>\n<table>\n<tr>\u53d8\u6362\u53c2\u6570\u6697\u90e8\u63d0\u5347\u4eae\u90e8\u5f71\u54cd\u53ef\u8c03\u6027<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">\u4f3d\u9a6c \u03b3&lt;1<\/td>\n<td align=\"center\">1 \u4e2a&#xff08;\u03b3&#xff09;<\/td>\n<td align=\"left\">\u5f3a\u5ea6\u968f \u03b3 \u8fde\u7eed\u53ef\u8c03<\/td>\n<td align=\"left\">\u540c\u6b65\u538b\u6697\u9ad8\u5149<\/td>\n<td align=\"left\">\u5f3a<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Log<\/td>\n<td align=\"center\">0 \u4e2a&#xff08;\u5929\u751f\u56fa\u5b9a&#xff09;<\/td>\n<td align=\"left\">\u56fa\u5b9a\u5f3a\u63d0\u4eae<\/td>\n<td align=\"left\">\u9ad8\u5149\u51e0\u4e4e\u4e0d\u52a8<\/td>\n<td align=\"left\">\u5f31&#xff08;\u53ef\u8c03 c&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u76f4\u89c9\u5bf9\u6bd4&#xff1a;<br \/>\n  Log \u53d8\u6362 \u2248 &#034;\u4e00\u952e\u81ea\u52a8\u6321&#034;\u2014\u2014\u65e0\u9700\u8c03\u53c2&#xff0c;\u6697\u90e8\u7acb\u523b\u53ef\u89c1&#xff0c;\u9002\u5408\u5feb\u901f\u9884\u89c8\u3001\u5085\u91cc\u53f6\u9891\u8c31\u663e\u793a&#xff1b;<br \/>\n  \u4f3d\u9a6c\u6821\u6b63 \u2248 &#034;\u624b\u52a8\u6321&#034;\u2014\u2014\u03b3 \u7ed9\u4f60\u8fde\u7eed\u7684\u63a7\u5236\u8303\u56f4&#xff0c;\u9002\u5408\u7cbe\u7ec6\u4fee\u56fe\u4e0e\u81ea\u52a8\u5316 pipeline\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142537-6a99836126443.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 1&#xff1a;\u4e00\u5f20\u56fe\u770b\u61c2\u975e\u7ebf\u6027\u53d8\u6362\u3002\u5de6\u56fe\u4e3a\u6620\u5c04\u66f2\u7ebf\u65cf&#xff1a;\u03b3&lt;1 \u7684\u66f2\u7ebf\u5728\u4f4e\u7070\u533a\u659c\u7387\u5927\u4e8e 1&#xff08;\u6697\u90e8\u88ab\u62c9\u5f00&#xff09;&#xff0c;Log \u66f2\u7ebf\u6700\u9661&#xff1b;\u53f3\u56fe\u4e3a\u540c\u4e00\u6e10\u53d8\u6761\u7684\u5b9e\u9645\u6548\u679c&#xff0c;\u03b3&#061;0.25 \u65f6\u6697\u7aef\u88ab\u663e\u8457\u62c9\u5bbd\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u4ee3\u7801\u5b9e\u8df5<\/h3>\n<h4>3.1 \u624b\u5199\u4f3d\u9a6c\u6821\u6b63&#xff08;\u63a8\u8350\u7248\u672c&#xff09;<\/h4>\n<p><span class=\"token keyword\">import<\/span> numpy <span class=\"token keyword\">as<\/span> np<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">gamma_correction<\/span><span class=\"token punctuation\">(<\/span>img<span class=\"token punctuation\">,<\/span> gamma<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1.0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;<br \/>\n    \u4f3d\u9a6c\u6821\u6b63&#xff1a;g &#061; 255 * (f\/255)^gamma<br \/>\n    gamma &lt; 1 \u63d0\u4eae\u6697\u90e8&#xff0c;gamma &gt; 1 \u538b\u6697\u6697\u90e8\u3002<br \/>\n    &#034;&#034;&#034;<\/span><br \/>\n    norm <span class=\"token operator\">&#061;<\/span> img<span class=\"token punctuation\">.<\/span>astype<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>float32<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token number\">255.0<\/span>          <span class=\"token comment\"># \u2460 \u5f52\u4e00\u5316\u5230 [0,1]<\/span><br \/>\n    out <span class=\"token operator\">&#061;<\/span> np<span class=\"token punctuation\">.<\/span>power<span class=\"token punctuation\">(<\/span>norm<span class=\"token punctuation\">,<\/span> gamma<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">255.0<\/span>            <span class=\"token comment\"># \u2461 \u5e42\u8fd0\u7b97&#xff08;float32 \u4e0d\u4f1a\u6ea2\u51fa&#xff09;<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> np<span class=\"token punctuation\">.<\/span>clip<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span><span class=\"token builtin\">round<\/span><span class=\"token punctuation\">(<\/span>out<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">255<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>astype<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>uint8<span class=\"token punctuation\">)<\/span>   <span class=\"token comment\"># \u2462 \u843d\u56de uint8<\/span><\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">log_transform<\/span><span class=\"token punctuation\">(<\/span>img<span class=\"token punctuation\">,<\/span> c<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;Log \u53d8\u6362&#xff1a;g &#061; c * log10(1 &#043; f)&#034;&#034;&#034;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> c <span class=\"token keyword\">is<\/span> <span class=\"token boolean\">None<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        c <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">255.0<\/span> <span class=\"token operator\">\/<\/span> np<span class=\"token punctuation\">.<\/span>log10<span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token number\">255<\/span><span class=\"token punctuation\">)<\/span>              <span class=\"token comment\"># \u2248 96.34&#xff0c;\u4fdd\u8bc1 f&#061;255 \u2192 255<\/span><br \/>\n    out <span class=\"token operator\">&#061;<\/span> c <span class=\"token operator\">*<\/span> np<span class=\"token punctuation\">.<\/span>log10<span class=\"token punctuation\">(<\/span><span class=\"token number\">1.0<\/span> <span class=\"token operator\">&#043;<\/span> img<span class=\"token punctuation\">.<\/span>astype<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>float32<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> np<span class=\"token punctuation\">.<\/span>clip<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span><span class=\"token builtin\">round<\/span><span class=\"token punctuation\">(<\/span>out<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">255<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>astype<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>uint8<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u5173\u952e\u7ec6\u8282&#xff1a;<br \/>\n  1. \u5f52\u4e00\u5316\u5230 [0,1] \u540e\u5e42\u8fd0\u7b97&#xff0c;\u7aef\u70b9 0^\u03b3&#061;0\u30011^\u03b3&#061;1 \u5929\u7136\u5728\u8303\u56f4\u5185&#xff0c;<br \/>\n     \u6240\u4ee5\u4f3d\u9a6c\u6821\u6b63\u4e0d\u50cf\u7ebf\u6027\u53d8\u6362\u90a3\u6837\u6709&#034;\u6ea2\u51fa&#034;\u95ee\u9898\u2014\u2014\u4f46 round \u540e\u4ecd\u8981 clip \u515c\u5e95\u3002<br \/>\n  2. \u8d1f\u6570\u4e0d\u80fd\u505a\u6d6e\u70b9\u5e42&#xff08;\u4f1a\u5f97\u5230 nan&#xff09;&#xff0c;\u8f93\u5165\u5fc5\u987b\u5148\u5f52\u4e00\u5316\u5230\u975e\u8d1f\u533a\u95f4\u3002<br \/>\n  3. dtype \u9677\u9631&#xff1a;uint8 \u76f4\u63a5\u53c2\u4e0e (f\/255)^\u03b3 \u4f1a\u5148\u6574\u6570\u9664\u6cd5\u5f52\u96f6\u2014\u2014<br \/>\n     \u5fc5\u987b\u5148 astype(np.float32) \u518d\u9664\u3002<\/p>\n<h4>3.2 LUT \u7248\u672c&#xff08;\u975e\u7ebf\u6027\u70b9\u8fd0\u7b97\u7684\u5929\u7136\u642d\u6863&#xff09;<\/h4>\n<p>\u4f3d\u9a6c\u662f&#034;\u6bcf\u4e2a\u50cf\u7d20\u505a\u540c\u4e00\u4e2a\u6620\u5c04&#034;&#xff0c;\u800c\u6620\u5c04\u53ea\u6709 256 \u79cd\u8f93\u5165\u2014\u2014\u5148\u7b97\u597d 256 \u4e2a\u8f93\u51fa&#xff0c;\u518d\u67e5\u8868&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> cv2<br \/>\n<span class=\"token keyword\">import<\/span> numpy <span class=\"token keyword\">as<\/span> np<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">gamma_by_lut<\/span><span class=\"token punctuation\">(<\/span>img<span class=\"token punctuation\">,<\/span> gamma<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1.0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    lut <span class=\"token operator\">&#061;<\/span> np<span class=\"token punctuation\">.<\/span>clip<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span><span class=\"token builtin\">round<\/span><span class=\"token punctuation\">(<\/span><br \/>\n        np<span class=\"token punctuation\">.<\/span>power<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>arange<span class=\"token punctuation\">(<\/span><span class=\"token number\">256<\/span><span class=\"token punctuation\">,<\/span> dtype<span class=\"token operator\">&#061;<\/span>np<span class=\"token punctuation\">.<\/span>float32<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token number\">255.0<\/span><span class=\"token punctuation\">,<\/span> gamma<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">255.0<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">255<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>astype<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>uint8<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> cv2<span class=\"token punctuation\">.<\/span>LUT<span class=\"token punctuation\">(<\/span>img<span class=\"token punctuation\">,<\/span> lut<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd9\u7b14\u8d26\u5f88\u5212\u7b97&#xff1a;<br \/>\n  NumPy \u7248&#xff1a;480\u00d7640 &#061; 307,200 \u6b21\u6d6e\u70b9\u5e42\u8fd0\u7b97<br \/>\n  LUT \u7248&#xff1a;  256 \u6b21\u5e42\u8fd0\u7b97&#xff08;\u4e00\u6b21\u6027&#xff09; &#043; 307,200 \u6b21\u6574\u6570\u67e5\u8868<br \/>\n  \u5e42\u8fd0\u7b97\u6bd4\u67e5\u8868\u8d35 1~2 \u4e2a\u6570\u91cf\u7ea7 \u2192 LUT \u5b9e\u6d4b\u5feb 10 \u500d\u4ee5\u4e0a&#xff08;\u89c1\u7b2c\u4e94\u8282\u57fa\u51c6&#xff09;\u3002<\/p>\n<h4>3.3 \u4f3d\u9a6c\u7f51\u683c\u5b9e\u9a8c<\/h4>\n<p><span class=\"token keyword\">for<\/span> g <span class=\"token keyword\">in<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token number\">0.25<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0.45<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">1.0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2.0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">4.0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    out <span class=\"token operator\">&#061;<\/span> gamma_correction<span class=\"token punctuation\">(<\/span>dark_img<span class=\"token punctuation\">,<\/span> gamma<span class=\"token operator\">&#061;<\/span>g<span class=\"token punctuation\">)<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142537-6a9983617d961.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 2&#xff1a;\u540c\u4e00\u5f20\u6b20\u66dd\u6697\u56fe\u5728 \u03b3 &#061; 0.25\/0.45\/1.0\/2.0\/4.0 \u4e0b\u7684\u8f93\u51fa\u4e0e\u76f4\u65b9\u56fe\u3002\u03b3&lt;1 \u65f6\u76f4\u65b9\u56fe\u6574\u4f53\u53f3\u79fb\u4e14\u88ab&#034;\u62c9\u5f00&#034;&#xff0c;\u6697\u90e8\u7ec6\u8282\u8fdb\u5165\u53ef\u89c1\u533a\u95f4&#xff1b;\u03b3&gt;1 \u65f6\u5206\u5e03\u5411\u6697\u7aef\u538b\u7f29\u5806\u79ef\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001\u4e09\u65b9\u6848\u5bf9\u6bd4&#xff1a;Log vs \u4f3d\u9a6c vs HE<\/h3>\n<p>\u6697\u56fe\u63d0\u4eae\u7684\u4e09\u4e2a\u5019\u9009&#xff0c;\u5404\u6709\u9c9c\u660e\u7684\u6027\u683c&#xff08;HE \u4e3a 022 \u671f\u76f4\u65b9\u56fe\u5747\u8861\u5316&#xff09;&#xff1a;<\/p>\n<p>\u5bf9\u540c\u4e00\u5f20\u6b20\u66dd\u56fe\u5b9e\u6d4b&#xff08;mean \/ std&#xff09;&#xff1a;<br \/>\n  \u539f\u56fe&#xff1a;        \u6697\u3001\u5bf9\u6bd4\u4f4e<br \/>\n  Log \u53d8\u6362&#xff1a;    \u6697\u90e8\u63d0\u4eae\u660e\u663e&#xff0c;\u76f4\u65b9\u56fe\u5e73\u6ed1\u53d8\u5f62\u3001\u5f62\u72b6\u4fdd\u7559<br \/>\n  \u4f3d\u9a6c&#xff08;\u81ea\u52a8&#xff09;&#xff1a;\u63d0\u4eae\u5e45\u5ea6\u53ef\u63a7&#xff0c;std \u63d0\u5347\u6700\u81ea\u7136<br \/>\n  HE&#xff1a;          \u5bf9\u6bd4\u5ea6\u6700\u5f3a&#xff0c;\u4f46\u76f4\u65b9\u56fe\u88ab\u5f3a\u884c\u644a\u5e73\u2014\u2014\u566a\u58f0\u88ab\u4e00\u8d77\u653e\u5927&#xff08;022 \u671f\u5df2\u9a8c\u8bc1\u7684\u526f\u4f5c\u7528&#xff09;<\/p>\n<p>\u9009\u578b\u53e3\u8bc0&#xff1a;<br \/>\n  \u00b7 \u5feb\u901f\u770b\u4e00\u773c\u6697\u90e8\u5728\u54ea\u513f        \u2192 Log&#xff08;\u514d\u8c03\u53c2&#xff09;<br \/>\n  \u00b7 \u4fee\u56fe\u8981\u7cbe\u7ec6\u63a7\u5236\u63d0\u4eae\u7a0b\u5ea6      \u2192 \u4f3d\u9a6c&#xff08;\u03b3 \u8fde\u7eed\u53ef\u8c03&#xff09;<br \/>\n  \u00b7 \u8981\u7684\u662f&#034;\u5bf9\u6bd4\u5ea6&#034;\u800c\u4e0d\u662f&#034;\u4eae\u5ea6&#034; \u2192 HE \/ CLAHE&#xff08;022\/023 \u671f&#xff09;<br \/>\n  \u00b7 \u566a\u58f0\u660e\u663e\u7684\u6697\u56fe              \u2192 \u5148\u4e2d\u503c\/\u9ad8\u65af\u964d\u566a&#xff0c;\u518d\u4f3d\u9a6c\u63d0\u4eae<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142537-6a998361cf005.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 3&#xff1a;Log\u3001\u4f3d\u9a6c&#xff08;\u81ea\u52a8 \u03b3&#xff09;\u3001HE \u4e09\u65b9\u6848\u5bf9\u6bd4\u3002\u4e0b\u6392\u76f4\u65b9\u56fe\u6e05\u6670\u53ef\u89c1&#xff1a;Log\/\u4f3d\u9a6c\u4fdd\u7559\u76f4\u65b9\u56fe\u5f62\u72b6\u505a\u5e73\u6ed1\u53d8\u5f62&#xff0c;HE \u5219\u5f3a\u884c\u644a\u5e73\u5bfc\u81f4\u68b3\u72b6\u5206\u5e03\u4e0e\u566a\u58f0\u653e\u5927\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u81ea\u52a8\u4f3d\u9a6c&#xff1a;\u6309\u5747\u503c\u53cd\u89e3 \u03b3&#xff0c;\u514d\u8c03\u53c2<\/h3>\n<p>\u624b\u52a8\u8c03 \u03b3 \u9002\u5408\u4fee\u4e00\u5f20\u56fe&#xff1b;\u6279\u91cf\u5904\u7406 1000 \u5f20\u56fe\u65f6\u9700\u8981\u4e00\u4e2a&#034;\u81ea\u52a8\u6321&#034;\u3002\u65b9\u6cd5&#xff1a;\u5148\u5b9a\u76ee\u6807\u5747\u503c&#xff0c;\u53cd\u89e3 \u03b3\u3002<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">auto_gamma<\/span><span class=\"token punctuation\">(<\/span>img<span class=\"token punctuation\">,<\/span> target<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.5<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;<br \/>\n    \u76ee\u6807&#xff1a;\u8f93\u51fa\u5747\u503c &#061; target&#xff08;0.5 \u5373\u4e2d\u7070 128&#xff09;<br \/>\n    \u63a8\u5bfc&#xff1a;mean_in^gamma &#061; target  \u2192  gamma &#061; log(target) \/ log(mean_in)<br \/>\n    &#034;&#034;&#034;<\/span><br \/>\n    mean_in <span class=\"token operator\">&#061;<\/span> img<span class=\"token punctuation\">.<\/span>astype<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>float32<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>mean<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token number\">255.0<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token builtin\">float<\/span><span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>log<span class=\"token punctuation\">(<\/span>target<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">\/<\/span> np<span class=\"token punctuation\">.<\/span>log<span class=\"token punctuation\">(<\/span>mean_in<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u5b9e\u6d4b&#xff08;\u6df1\u5ea6\u6b20\u66dd\u56fe&#xff0c;mean \u2248 26\/255&#xff09;&#xff1a;<br \/>\n  target &#061; 0.40  \u2192  \u81ea\u52a8 \u03b3 &#061; 0.299  \u2192  \u5b9e\u9645\u8f93\u51fa mean &#061; 91<br \/>\n  target &#061; 0.50  \u2192  \u81ea\u52a8 \u03b3 &#061; 0.226  \u2192  \u5b9e\u9645\u8f93\u51fa mean &#061; 114<br \/>\n  target &#061; 0.60  \u2192  \u81ea\u52a8 \u03b3 &#061; 0.167  \u2192  \u5b9e\u9645\u8f93\u51fa mean &#061; 137<\/p>\n<p>\u4e00\u4e2a\u5fc5\u987b\u77e5\u9053\u7684\u6570\u5b66\u771f\u76f8&#xff08;\u672c\u7cfb\u5217\u5b9e\u6d4b\u9a8c\u8bc1&#xff09;&#xff1a;<br \/>\n  \u5b9e\u9645\u8f93\u51fa\u5747\u503c \u2260 \u7cbe\u786e\u7b49\u4e8e target\u3002<br \/>\n  \u56e0\u4e3a auto_gamma \u7684\u63a8\u5bfc\u5047\u8bbe&#034;\u5747\u503c\u7684\u4f3d\u9a6c &#061; \u4f3d\u9a6c\u7684\u5747\u503c&#034;&#xff0c;<br \/>\n  \u800c\u5e42\u8fd0\u7b97\u662f\u975e\u7ebf\u6027\u51fd\u6570&#xff0c;\u5747\u503c\u8fd0\u7b97\u4e0d\u53ef\u4ea4\u6362&#xff08;Jensen \u4e0d\u7b49\u5f0f&#xff1a;<br \/>\n  \u5bf9\u51f9\u51fd\u6570 E[f(X)] \u2264 f(E[X])&#xff0c;\u03b3&lt;1 \u65f6\u5b9e\u9645\u8f93\u51fa\u5747\u503c\u603b\u662f\u4f4e\u4e8e target&#xff09;\u3002<br \/>\n  \u5de5\u7a0b\u7ed3\u8bba&#xff1a;\u516c\u5f0f\u7ed9\u51fa\u7684 \u03b3 \u662f\u6781\u597d\u7684\u521d\u503c&#xff0c;\u7cbe\u786e\u5bf9\u9f50\u76ee\u6807\u5747\u503c<br \/>\n  \u53ef\u518d\u7528 2~3 \u6b21\u4e8c\u5206\u8fed\u4ee3\u5fae\u8c03&#xff08;\u6bcf\u8fed\u4ee3\u4e00\u6b21\u53ea\u82b1\u51e0\u6beb\u79d2&#xff09;\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142538-6a9983623de9d.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 4&#xff1a;\u81ea\u52a8\u4f3d\u9a6c\u3002\u76ee\u6807\u5747\u503c\u8d8a\u9ad8 \u2192 \u81ea\u52a8 \u03b3 \u8d8a\u5c0f \u2192 \u6697\u90e8\u62c9\u5f97\u8d8a\u731b\u3002\u6ce8\u610f\u5b9e\u9645\u8f93\u51fa\u5747\u503c\u7565\u4f4e\u4e8e\u76ee\u6807\u503c&#xff08;Jensen \u4e0d\u7b49\u5f0f\u7684\u6548\u679c&#xff09;&#xff0c;\u4f46\u4f5c\u4e3a\u514d\u8c03\u53c2\u521d\u503c\u5df2\u7ecf\u8db3\u591f\u597d\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001\u6027\u80fd\u57fa\u51c6&#xff1a;LUT \u662f\u975e\u7ebf\u6027\u53d8\u6362\u7684\u6700\u4f73\u62cd\u6863<\/h3>\n<p>480\u00d7640 \u7070\u5ea6\u56fe&#xff0c;\u03b3 &#061; 0.5&#xff0c;\u4e09\u79cd\u5b9e\u73b0\u5b9e\u6d4b&#xff1a;<\/p>\n<p>Python \u53cc\u5c42\u5faa\u73af&#xff08;\u9010\u50cf\u7d20\u67e5\u8868&#xff09;&#xff1a;  114.6 ms<br \/>\nNumPy \u5411\u91cf\u5316&#xff08;np.power&#xff09;&#xff1a;        3.69 ms<br \/>\nLUT \u67e5\u8868&#xff08;cv2.LUT&#xff09;&#xff1a;             0.27 ms<\/p>\n<p>\u4e00\u81f4\u6027\u68c0\u67e5&#xff1a;<br \/>\n  LUT  vs NumPy&#xff1a;max|\u0394| &#061; 0&#xff0c;\u5b8c\u5168\u4e00\u81f4<br \/>\n  loop vs NumPy&#xff1a;max|\u0394| \u2264 1&#xff08;\u56db\u820d\u4e94\u5165\u8def\u5f84\u5dee\u5f02&#xff09;<\/p>\n<table>\n<tr>\u5b9e\u73b0\u65b9\u5f0f\u8017\u65f6\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">Python \u5faa\u73af<\/td>\n<td align=\"right\">~115 ms<\/td>\n<td align=\"left\">\u4ec5\u6559\u5b66\u6f14\u793a<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">NumPy \u5411\u91cf\u5316<\/td>\n<td align=\"right\">~3.7 ms<\/td>\n<td align=\"left\">30 \u4e07\u6b21\u6d6e\u70b9\u5e42&#xff0c;\u901a\u7528\u4f46\u6d6a\u8d39<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">LUT \u67e5\u8868<\/td>\n<td align=\"right\">~0.27 ms<\/td>\n<td align=\"left\">256 \u6b21\u5e42 &#043; \u6574\u6570\u67e5\u8868&#xff0c;\u5feb 13 \u500d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7ed3\u8bba&#xff1a;\u4efb\u4f55&#034;\u8f93\u5165\u8f93\u51fa\u90fd\u53ea\u6709 256 \u79cd\u53d6\u503c&#034;\u7684\u70b9\u8fd0\u7b97&#xff08;\u4f3d\u9a6c\/Log\/\u7070\u5ea6\u7a97\/LUT \u6ee4\u955c&#xff09;&#xff0c;<br \/>\n     \u90fd\u5e94\u8be5\u7528\u67e5\u8868\u5b9e\u73b0\u3002\u8fd9\u4e5f\u662f 027 \u671f\u300a\u67e5\u627e\u8868&#xff08;LUT&#xff09;\u52a0\u901f\u300b\u7684\u9884\u544a\u4e3b\u7ebf\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142538-6a99836295166.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 5&#xff1a;\u4e09\u65b9\u6848\u6027\u80fd\u5bf9\u6bd4&#xff08;\u5bf9\u6570\u5750\u6807&#xff09;\u3002LUT \u628a&#034;\u9010\u50cf\u7d20\u5e42\u8fd0\u7b97&#034;\u964d\u4e3a&#034;\u9010\u50cf\u7d20\u67e5\u8868&#034;&#xff0c;\u5b9e\u6d4b\u6bd4 NumPy \u5411\u91cf\u5316\u5feb\u7ea6 13 \u500d&#xff0c;\u4e14\u8f93\u51fa\u9010\u50cf\u7d20\u4e00\u81f4\u3002<\/p>\n<hr \/>\n<h3>\u4e03\u3001\u5f69\u8272\u56fe\u4e09\u65b9\u6848&#xff1a;BGR \u9010\u901a\u9053 \/ HSV \u53ea\u52a8 V \/ Lab \u53ea\u52a8 L<\/h3>\n<p>\u4e0e 024 \u671f\u540c\u6837\u7684\u8001\u95ee\u9898&#xff1a;\u5f69\u8272\u56fe\u4e0d\u80fd\u65e0\u8111\u5957\u516c\u5f0f\u3002\u8fd9\u6b21\u505a \u03b3 &#061; 1.6 \u7684\u538b\u6697\u5b9e\u9a8c&#xff08;\u4e0e 024 \u671f\u7684\u589e\u4eae\u5f62\u6210\u4e92\u8865\u89c6\u89d2&#xff09;&#xff1a;<\/p>\n<p>\u65b9\u6848 A&#xff1a;BGR \u4e09\u901a\u9053\u9010\u901a\u9053\u4f3d\u9a6c<br \/>\n        \u0394H &#061; 1.93\u00b0  \u0394S &#061; &#043;36.2  \u0394V &#061; \u221222.7<br \/>\n        \u4eae\u5ea6\u538b\u6697\u540e\u6697\u901a\u9053\u5360\u6bd4\u76f8\u5bf9\u4e0a\u5347&#xff0c;\u9971\u548c\u5ea6\u53cd\u800c\u589e\u52a0&#xff0c;\u8272\u76f8\u8f7b\u5fae\u6f02\u79fb\u3002<\/p>\n<p>\u65b9\u6848 B&#xff1a;HSV \u53ea\u52a8 V \u901a\u9053<br \/>\n        \u0394H &#061; 0.00\u00b0  \u0394S &#061; &#043;0.7   \u0394V &#061; \u221222.7<br \/>\n        \u8272\u76f8\u5b8c\u5168\u4e0d\u52a8&#xff0c;\u9971\u548c\u5ea6\u51e0\u4e4e\u4e0d\u53d8\u2014\u2014\u6700\u7a33\u3002<\/p>\n<p>\u65b9\u6848 C&#xff1a;Lab \u53ea\u52a8 L \u901a\u9053<br \/>\n        \u0394H &#061; 1.36\u00b0  \u0394S &#061; &#043;58.0  \u0394V &#061; \u221239.6<br \/>\n        \u611f\u77e5\u4eae\u5ea6\u538b\u5f97\u6700\u6df1&#xff0c;\u9971\u548c\u5ea6\u5927\u5e45\u4e0a\u5347&#xff08;L \u88ab\u538b\u800c\u8272\u5ea6\u5206\u91cf\u4e0d\u53d8&#xff09;&#xff0c;<br \/>\n        \u89c6\u89c9\u4e0a&#034;\u53d8\u6d53\u53d8\u6697&#034;&#xff0c;\u6709\u65f6\u53cd\u800c\u662f\u60f3\u8981\u7684\u7535\u5f71\u611f\u3002<\/p>\n<p><span class=\"token comment\"># \u65b9\u6848 B&#xff1a;HSV \u53ea\u52a8 V&#xff08;\u63a8\u8350&#xff09;<\/span><br \/>\nhsv <span class=\"token operator\">&#061;<\/span> cv2<span class=\"token punctuation\">.<\/span>cvtColor<span class=\"token punctuation\">(<\/span>img<span class=\"token punctuation\">,<\/span> cv2<span class=\"token punctuation\">.<\/span>COLOR_BGR2HSV<span class=\"token punctuation\">)<\/span><br \/>\nhsv<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">:<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">:<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> gamma_by_lut<span class=\"token punctuation\">(<\/span>hsv<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">:<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">:<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> gamma<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1.6<\/span><span class=\"token punctuation\">)<\/span><br \/>\nout <span class=\"token operator\">&#061;<\/span> cv2<span class=\"token punctuation\">.<\/span>cvtColor<span class=\"token punctuation\">(<\/span>hsv<span class=\"token punctuation\">,<\/span> cv2<span class=\"token punctuation\">.<\/span>COLOR_HSV2BGR<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u65b9\u6848 C&#xff1a;Lab \u53ea\u52a8 L&#xff08;\u611f\u77e5\u81ea\u7136&#xff0c;\u8272\u5f69\u53d8\u6d53&#xff09;<\/span><br \/>\nlab <span class=\"token operator\">&#061;<\/span> cv2<span class=\"token punctuation\">.<\/span>cvtColor<span class=\"token punctuation\">(<\/span>img<span class=\"token punctuation\">,<\/span> cv2<span class=\"token punctuation\">.<\/span>COLOR_BGR2LAB<span class=\"token punctuation\">)<\/span><br \/>\nlab<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">:<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">:<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> gamma_by_lut<span class=\"token punctuation\">(<\/span>lab<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">:<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">:<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> gamma<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1.6<\/span><span class=\"token punctuation\">)<\/span><br \/>\nout <span class=\"token operator\">&#061;<\/span> cv2<span class=\"token punctuation\">.<\/span>cvtColor<span class=\"token punctuation\">(<\/span>lab<span class=\"token punctuation\">,<\/span> cv2<span class=\"token punctuation\">.<\/span>COLOR_LAB2BGR<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u9009\u578b\u5efa\u8bae&#xff08;\u4e0e 024 \u671f\u7ed3\u8bba\u4e00\u8109\u76f8\u627f&#xff09;&#xff1a;<br \/>\n  \u00b7 \u4e0d\u60f3\u504f\u8272\u3001\u53ea\u60f3\u52a8\u4eae\u5ea6       \u2192 HSV \u53ea\u52a8 V<br \/>\n  \u00b7 \u60f3\u8981&#034;\u538b\u6697\u540e\u989c\u8272\u66f4\u6d53&#034;\u7684\u8d28\u611f \u2192 Lab \u53ea\u52a8 L&#xff08;\u7535\u5f71\u8c03\u8272\u5e38\u7528&#xff09;<br \/>\n  \u00b7 \u9010\u901a\u9053 BGR \u4f3d\u9a6c            \u2192 \u4ec5\u5728\u660e\u786e\u77e5\u9053\u8981\u4ec0\u4e48\u65f6\u4f7f\u7528<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142538-6a998362d245f.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 6&#xff1a;\u5f69\u8272\u56fe\u4f3d\u9a6c\u4e09\u65b9\u6848\u5bf9\u6bd4&#xff08;\u03b3&#061;1.6 \u538b\u6697&#xff09;\u3002B \u65b9\u6848\u8272\u76f8\u96f6\u6f02\u79fb&#xff1b;C \u65b9\u6848\u9971\u548c\u5ea6\u5927\u5e45\u4e0a\u5347\u5e26\u6765&#034;\u53d8\u6d53&#034;\u8d28\u611f&#xff1b;A \u65b9\u6848\u4ecb\u4e8e\u4e24\u8005\u4e4b\u95f4\u4f46\u8272\u76f8\u6709\u8f7b\u5fae\u6f02\u79fb\u3002<\/p>\n<hr \/>\n<h3>\u516b\u3001\u4ea4\u4e92\u5f0f\u4f3d\u9a6c\u8c03\u8282\u5668&#xff08;\u672c\u5730 Trackbar&#xff09;<\/h3>\n<p><span class=\"token keyword\">import<\/span> cv2<br \/>\n<span class=\"token keyword\">import<\/span> numpy <span class=\"token keyword\">as<\/span> np<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">gamma_by_lut<\/span><span class=\"token punctuation\">(<\/span>img<span class=\"token punctuation\">,<\/span> gamma<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1.0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    lut <span class=\"token operator\">&#061;<\/span> np<span class=\"token punctuation\">.<\/span>clip<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span><span class=\"token builtin\">round<\/span><span class=\"token punctuation\">(<\/span><br \/>\n        np<span class=\"token punctuation\">.<\/span>power<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>arange<span class=\"token punctuation\">(<\/span><span class=\"token number\">256<\/span><span class=\"token punctuation\">,<\/span> dtype<span class=\"token operator\">&#061;<\/span>np<span class=\"token punctuation\">.<\/span>float32<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token number\">255.0<\/span><span class=\"token punctuation\">,<\/span> gamma<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">255.0<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">255<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>astype<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>uint8<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> cv2<span class=\"token punctuation\">.<\/span>LUT<span class=\"token punctuation\">(<\/span>img<span class=\"token punctuation\">,<\/span> lut<span class=\"token punctuation\">)<\/span><\/p>\n<p>img <span class=\"token operator\">&#061;<\/span> cv2<span class=\"token punctuation\">.<\/span>imread<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;your_photo.jpg&#039;<\/span><span class=\"token punctuation\">)<\/span><br \/>\nwindow <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;Gamma Correction (q to quit)&#039;<\/span><br \/>\ncv2<span class=\"token punctuation\">.<\/span>namedWindow<span class=\"token punctuation\">(<\/span>window<span class=\"token punctuation\">,<\/span> cv2<span class=\"token punctuation\">.<\/span>WINDOW_NORMAL<span class=\"token punctuation\">)<\/span><br \/>\ncv2<span class=\"token punctuation\">.<\/span>createTrackbar<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;gamma x100&#039;<\/span><span class=\"token punctuation\">,<\/span> window<span class=\"token punctuation\">,<\/span> <span class=\"token number\">100<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">400<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">lambda<\/span> x<span class=\"token punctuation\">:<\/span> <span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># 0.1 ~ 4.0<\/span><\/p>\n<p><span class=\"token keyword\">while<\/span> <span class=\"token boolean\">True<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    g <span class=\"token operator\">&#061;<\/span> cv2<span class=\"token punctuation\">.<\/span>getTrackbarPos<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;gamma x100&#039;<\/span><span class=\"token punctuation\">,<\/span> window<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token number\">100.0<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> g <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">0.1<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        g <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0.1<\/span><br \/>\n    cv2<span class=\"token punctuation\">.<\/span>imshow<span class=\"token punctuation\">(<\/span>window<span class=\"token punctuation\">,<\/span> gamma_by_lut<span class=\"token punctuation\">(<\/span>img<span class=\"token punctuation\">,<\/span> g<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> cv2<span class=\"token punctuation\">.<\/span>waitKey<span class=\"token punctuation\">(<\/span><span class=\"token number\">30<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&amp;<\/span> <span class=\"token number\">0xFF<\/span> <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token builtin\">ord<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;q&#039;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">break<\/span><\/p>\n<p>cv2<span class=\"token punctuation\">.<\/span>destroyAllWindows<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u26a0\ufe0f \u8fd9\u6bb5\u4ee3\u7801\u9700\u8981\u672c\u5730\u6709\u56fe\u5f62\u754c\u9762&#xff1b;\u7531\u4e8e LUT \u9884\u8ba1\u7b97\u53ea\u9700 256 \u6b21\u5e42\u8fd0\u7b97&#xff0c;\u62d6\u52a8\u6ed1\u6746\u4e5f\u662f\u5b9e\u65f6\u5e27\u7387\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142539-6a9983633603b.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 7&#xff1a;\u53c2\u6570\u7f51\u683c\u9884\u89c8\u3002\u4e09\u884c\u5206\u522b\u662f&#xff1a;\u7eaf\u4f3d\u9a6c\u3001&#034;\u4f3d\u9a6c&#043;\u7ebf\u6027\u538b\u5bf9\u6bd4&#034;\u7ec4\u5408\u3001Log\u2192\u4f3d\u9a6c\u7ea7\u8054\u3002\u7ea7\u8054\u4f7f\u7528\u662f\u4fee\u56fe\u8f6f\u4ef6&#034;\u66f2\u7ebf\u5de5\u5177&#034;\u7684\u96cf\u5f62\u3002<\/p>\n<hr \/>\n<h3>\u4e5d\u3001Pipeline \u5b9a\u4f4d&#xff1a;\u7ebf\u6027 vs \u4f3d\u9a6c&#xff0c;\u6697\u56fe\u7b2c\u4e00\u6b65\u9009\u8c01<\/h3>\n<p>\u628a\u4e24\u6761\u8def\u7ebf\u63a5\u5230\u540c\u4e00\u6761\u589e\u5f3a\u94fe\u4e0a\u6b63\u9762\u4ea4\u950b&#xff08;\u540e\u7aef\u90fd\u662f 023 \u671f\u7684 CLAHE&#xff09;&#xff1a;<\/p>\n<p>\u8def\u7ebf\u2460 \u7ebf\u6027&#xff08;024 \u671f\u6ed1\u6746\u7ec4\u5408&#xff09;&#xff1a;g &#061; 1.4\u00b7f &#043; 55<br \/>\n        \u2192 \u63d0\u4eae\u540e mean &#061; 78&#xff0c;std &#061; 16 \u2014\u2014 \u4eae\u5ea6\u4e0a\u6765\u4e86&#xff0c;\u4f46\u5bf9\u6bd4\u5ea6\u5e73\u5eb8<\/p>\n<p>\u8def\u7ebf\u2461 \u4f3d\u9a6c&#xff08;\u672c\u671f\u81ea\u52a8 \u03b3 \u2248 0.3&#xff09;&#xff1a;g &#061; 255\u00b7(f\/255)^\u03b3<br \/>\n        \u2192 \u63d0\u4eae\u540e mean &#061; 115&#xff0c;std &#061; 40 \u2014\u2014 \u4eae\u5ea6\u5bf9\u6bd4\u5ea6\u53cc\u4f18<\/p>\n<p>\u4e24\u6761\u8def\u7ebf\u518d\u63a5 CLAHE&#xff1a;<br \/>\n  \u7ebf\u6027 &#043; CLAHE&#xff1a;mean &#061; 85&#xff0c;std &#061; 22<br \/>\n  \u4f3d\u9a6c &#043; CLAHE&#xff1a;mean &#061; 116&#xff0c;std &#061; 41<\/p>\n<p>\u7ed3\u8bba&#xff08;028 \u671f\u81ea\u52a8\u7167\u7247\u589e\u5f3a\u5668\u7684\u9009\u578b\u4f9d\u636e&#xff09;&#xff1a;<br \/>\n  \u6697\u56fe\u7684&#034;\u7b2c\u4e00\u6b65\u7c97\u8c03&#034;\u5e94\u8be5\u4f18\u5148\u8003\u8651\u4f3d\u9a6c\u6821\u6b63&#xff1a;<br \/>\n  \u7ebf\u6027\u53d8\u6362\u63d0\u4eae &#061; \u6574\u4f53\u5e73\u79fb&#xff0c;\u6697\u90e8\u7ec6\u8282\u7684\u76f8\u5bf9\u5c42\u6b21\u4e0d\u53d8&#xff1b;<br \/>\n  \u4f3d\u9a6c\u63d0\u4eae &#061; \u975e\u7ebf\u6027\u62c9\u4f38&#xff0c;\u6697\u90e8\u5c42\u6b21\u88ab\u771f\u6b63&#034;\u5c55\u5f00&#034;&#xff0c;<br \/>\n  \u540e\u7eed CLAHE \u7684\u5c40\u90e8\u589e\u5f3a\u624d\u6709\u6599\u53ef\u6316\u3002<br \/>\n  \u7ebf\u6027\u53d8\u6362\u7684\u7528\u6b66\u4e4b\u5730\u662f&#034;\u4eae\u5ea6\u5df2\u7ecf\u6b63\u5e38\u3001\u53ea\u5dee\u4e00\u70b9\u5bf9\u6bd4\u5ea6&#034;\u7684\u56fe\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142539-6a9983639cd0c.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 8&#xff1a;\u6697\u56fe\u4fee\u590d\u4e24\u6761\u8def\u7ebf\u3002\u4e0a\u7ebf\u6027\u8def\u7ebf\u63d0\u4eae\u540e\u6574\u4f53\u7070\u8499&#xff08;std&#061;16&#xff09;&#xff0c;\u4e0b\u4f3d\u9a6c\u8def\u7ebf\u6697\u90e8\u5c42\u6b21\u88ab\u771f\u6b63\u5c55\u5f00&#xff08;std&#061;40&#xff09;&#xff0c;\u63a5 CLAHE \u540e\u5dee\u8ddd\u8fdb\u4e00\u6b65\u62c9\u5927\u3002<\/p>\n<hr \/>\n<h3>\u5341\u3001\u53ef\u89c6\u5316\u5b9e\u9a8c\u603b\u89c8<\/h3>\n<p>\u672c\u6b21\u5171 8 \u4e2a\u5b9e\u9a8c&#xff0c;\u5bf9\u5e94 8 \u5f20\u53ef\u89c6\u5316\u56fe&#xff1a;<\/p>\n<table>\n<tr>#\u5b9e\u9a8c\u56fe\u6587\u4ef6\u9a8c\u8bc1\u76ee\u6807<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"left\">\u03b3 \u66f2\u7ebf\u65cf\u4e0e\u6e10\u53d8\u6761<\/td>\n<td align=\"left\">025_curves_principle.png<\/td>\n<td align=\"left\">\u4e00\u5f20\u56fe\u770b\u61c2\u66f2\u7ebf\u5f62\u72b6<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"left\">\u4f3d\u9a6c\u7f51\u683c<\/td>\n<td align=\"left\">025_gamma_grid.png<\/td>\n<td align=\"left\">\u03b3&lt;1 \u63d0\u4eae \/ \u03b3&gt;1 \u538b\u6697<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"left\">Log vs \u4f3d\u9a6c vs HE<\/td>\n<td align=\"left\">025_log_vs_gamma.png<\/td>\n<td align=\"left\">\u4e09\u65b9\u6848\u6027\u683c\u5bf9\u6bd4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"left\">\u81ea\u52a8\u4f3d\u9a6c<\/td>\n<td align=\"left\">025_auto_gamma.png<\/td>\n<td align=\"left\">\u514d\u8c03\u53c2 &#043; Jensen \u504f\u5dee<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"left\">\u6027\u80fd\u4e0e\u4e00\u81f4\u6027<\/td>\n<td align=\"left\">025_lut_benchmark.png<\/td>\n<td align=\"left\">LUT \u5feb 13 \u500d<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"left\">\u5f69\u8272\u56fe\u4e09\u65b9\u6848<\/td>\n<td align=\"left\">025_color_gamma.png<\/td>\n<td align=\"left\">BGR\/HSV\/Lab \u8c01\u6700\u7a33<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"left\">\u53c2\u6570\u7f51\u683c<\/td>\n<td align=\"left\">025_slider_grid.png<\/td>\n<td align=\"left\">\u7b49\u6548\u6ed1\u6746 &#043; \u7ea7\u8054\u7ec4\u5408<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8<\/td>\n<td align=\"left\">Pipeline \u5b9a\u4f4d<\/td>\n<td align=\"left\">025_pipeline_position.png<\/td>\n<td align=\"left\">\u7ebf\u6027 vs \u4f3d\u9a6c\u9009\u578b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee3\u7801\u8fd0\u884c\u540e&#xff0c;\u4e0a\u8ff0 PNG \u5168\u90e8\u81ea\u52a8\u751f\u6210\u5230 code\/output\/ \u76ee\u5f55\u3002<\/p>\n<hr \/>\n<h3>\u5341\u4e00\u3001\u4ea7\u54c1\u63a8\u8350<\/h3>\n<table>\n<tr>\u5c42\u7ea7\u79fb\u52a8\u7aef App\u4e13\u4e1a\u7ea7\u5de5\u5177\u5f00\u6e90\/\u514d\u8d39\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u4f3d\u9a6c\/\u66f2\u7ebf\u8c03\u6574<\/td>\n<td align=\"left\">Snapseed&#xff08;\u66f2\u7ebf&#xff09;\u3001Lightroom Mobile&#xff08;\u8272\u8c03\u66f2\u7ebf&#xff09;\u3001VSCO<\/td>\n<td align=\"left\">Adobe Photoshop&#xff08;\u66dd\u5149\/\u4f3d\u9a6c\/\u66f2\u7ebf&#xff09;\u3001Capture One\u3001DaVinci Resolve&#xff08;Gamma \u8272\u5f69\u7a7a\u95f4&#xff09;<\/td>\n<td align=\"left\">GIMP&#xff08;\u66f2\u7ebf&#xff09;\u3001Darktable\u3001RawTherapee<\/td>\n<td align=\"left\">\u4fee\u56fe\u8c03\u8272<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u663e\u793a\u6821\u8272<\/td>\n<td align=\"left\">\u624b\u673a\u7cfb\u7edf\u663e\u793a\u8272\u5f69\u6a21\u5f0f&#xff08;P3\/sRGB \u5207\u6362&#xff09;<\/td>\n<td align=\"left\">DisplayCAL &#043; \u6821\u8272\u4eea\u3001X-Rite i1Display\u3001Calibrite<\/td>\n<td align=\"left\">DisplayCAL&#xff08;\u5f00\u6e90&#xff09;<\/td>\n<td align=\"left\">\u663e\u793a\u5668\u4f3d\u9a6c\u6821\u51c6<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u79d1\u5b66\u53ef\u89c6\u5316<\/td>\n<td align=\"left\">\u2014<\/td>\n<td align=\"left\">ImageJ\/Fiji\u3001MATLAB&#xff08;imadjust&#xff09;<\/td>\n<td align=\"left\">ImageJ&#xff08;\u514d\u8d39&#xff09;<\/td>\n<td align=\"left\">\u9891\u8c31\/\u533b\u5b66\u56fe\u663e\u793a<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5f71\u89c6\u8c03\u8272<\/td>\n<td align=\"left\">\u2014<\/td>\n<td align=\"left\">DaVinci Resolve&#xff08;Gamma \u6807\u7b7e\u9875&#xff09;\u3001Baselight<\/td>\n<td align=\"left\">\u2014<\/td>\n<td align=\"left\">Log \u7d20\u6750\u8fd8\u539f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9009\u62e9\u5efa\u8bae&#xff1a;<br \/>\n  \u00b7 \u624b\u673a\u5feb\u901f\u63d0\u4eae\u6697\u56fe&#xff1a;Snapseed &#034;\u66f2\u7ebf&#034;\u5de5\u5177\u62c9\u4e00\u6839 \u03b3&lt;1 \u7684\u4e0a\u51f8\u66f2\u7ebf&#xff0c;\u5c31\u662f\u4eca\u665a\u7684\u6570\u5b66\u3002<br \/>\n  \u00b7 \u663e\u793a\u5668\u6821\u8272&#xff1a;DisplayCAL \u514d\u8d39\u4e13\u4e1a&#xff0c;\u628a\u663e\u793a\u5668\u4f3d\u9a6c\u6821\u5230 sRGB&#xff08;\u22482.2&#xff09;\u6807\u51c6\u3002<br \/>\n  \u00b7 \u5f71\u89c6\u884c\u4e1a&#xff1a;DaVinci Resolve \u7684 Gamma \u8272\u5f69\u7a7a\u95f4\u5c31\u662f\u5b57\u9762\u610f\u4e49\u7684\u672c\u8bfe\u4e3b\u89d2\u3002<\/p>\n<hr \/>\n<h3>\u5341\u4e8c\u3001\u5e38\u89c1\u95ee\u9898 FAQ<\/h3>\n<p>Q1&#xff1a;\u03b3 &#061; 2.2 \u5230\u5e95\u662f\u63d0\u4eae\u8fd8\u662f\u538b\u6697&#xff1f;<br \/>\nA&#xff1a;\u770b\u65b9\u5411\u3002\u5bf9\u56fe\u50cf\u505a g &#061; (f)^2.2 \u662f\u538b\u6697&#xff08;\u7f16\u7801\u65b9\u5411&#xff09;&#xff1b;\u663e\u793a\u5668\u786c\u4ef6\u505a \u03b3&#061;2.2 \u89e3\u7801\u662f\u8fd8\u539f\u3002\u65e5\u5e38\u8bf4&#034;\u663e\u793a\u5668\u4f3d\u9a6c 2.2&#034;\u6307\u7684\u662f\u89e3\u7801\u7279\u6027&#xff0c;\u800c\u4fee\u56fe\u8f6f\u4ef6\u91cc\u7684&#034;\u4f3d\u9a6c\u6ed1\u6746 &lt; 1&#034;\u662f\u63d0\u4eae\u7f16\u7801\u3002\u6293\u4f4f&#034;\u03b3 \u4f5c\u7528\u4e8e\u8c01&#034;\u5c31\u4e0d\u4f1a\u6df7\u3002<\/p>\n<p>Q2&#xff1a;\u4f3d\u9a6c\u6821\u6b63\u4f1a\u6709 uint8 \u6ea2\u51fa\u95ee\u9898\u5417&#xff1f;<br \/>\nA&#xff1a;\u5f52\u4e00\u5316\u540e\u5e42\u8fd0\u7b97\u7aef\u70b9\u5929\u7136\u5728 [0,1] \u5185&#xff0c;\u7406\u8bba\u4e0d\u6ea2\u51fa\u3002\u4f46\u6d6e\u70b9\u7cbe\u5ea6\u548c round \u4ecd\u5efa\u8bae\u4fdd\u7559 clip \u515c\u5e95\u3002\u771f\u6b63\u7684\u9677\u9631\u662f dtype&#xff1a;uint8 \u5148\u9664 255 \u4f1a\u6574\u6570\u5f52\u96f6&#xff0c;\u5fc5\u987b\u5148\u8f6c float32\u3002<\/p>\n<p>Q3&#xff1a;\u81ea\u52a8\u4f3d\u9a6c\u7684\u8f93\u51fa\u5747\u503c\u4e3a\u4ec0\u4e48\u8fbe\u4e0d\u5230 target&#xff1f;<br \/>\nA&#xff1a;\u63a8\u5bfc\u5047\u8bbe&#034;\u5747\u503c\u5148\u53d6\u518d\u5e42&#034;\u7b49\u4e8e&#034;\u5148\u5e42\u518d\u53d6\u5747\u503c&#034;&#xff0c;\u4f46\u5e42\u51fd\u6570\u975e\u7ebf\u6027&#xff0c;\u4e24\u8005\u4e0d\u7b49&#xff08;Jensen \u4e0d\u7b49\u5f0f&#xff1a;\u03b3&lt;1 \u65f6\u5b9e\u9645\u5747\u503c\u504f\u4f4e&#xff09;\u3002\u5de5\u7a0b\u4e0a\u628a\u516c\u5f0f\u7ed3\u679c\u5f53\u521d\u503c&#xff0c;\u4e8c\u5206\u8fed\u4ee3 2~3 \u6b21\u5373\u53ef\u7cbe\u786e\u5bf9\u9f50\u3002<\/p>\n<p>Q4&#xff1a;Log \u53d8\u6362\u548c\u4f3d\u9a6c &lt; 1 \u6548\u679c\u597d\u50cf&#xff0c;\u600e\u4e48\u9009&#xff1f;<br \/>\nA&#xff1a;Log \u514d\u8c03\u53c2\u3001\u9ad8\u5149\u51e0\u4e4e\u4e0d\u52a8&#xff0c;\u9002\u5408&#034;\u770b\u4e00\u773c&#034;\u548c\u5085\u91cc\u53f6\u9891\u8c31\u663e\u793a&#xff1b;\u4f3d\u9a6c\u53ef\u63a7\u6027\u5f3a&#xff0c;\u9002\u5408\u6279\u91cf pipeline \u548c\u7cbe\u7ec6\u4fee\u56fe\u3002\u9700\u8981\u4e25\u683c\u4fdd\u6301\u7aef\u70b9\u65f6\u7528\u4f3d\u9a6c&#xff08;0\u21920\u3001255\u2192255&#xff09;&#xff0c;Log \u4e5f\u6ee1\u8db3&#xff08;log10(1)&#061;0&#xff09;&#xff0c;\u4f46\u4e2d\u95f4\u884c\u4e3a\u4e0d\u540c\u3002<\/p>\n<p>Q5&#xff1a;\u4e3a\u4ec0\u4e48\u5f69\u8272\u56fe\u505a Lab \u4f3d\u9a6c\u540e\u989c\u8272&#034;\u53d8\u6d53&#034;\u4e86&#xff1f;<br \/>\nA&#xff1a;\u4f3d\u9a6c\u53ea\u538b L&#xff08;\u660e\u5ea6&#xff09;\u901a\u9053&#xff0c;a\/b&#xff08;\u8272\u5ea6&#xff09;\u5206\u91cf\u6570\u503c\u4e0d\u53d8\u3002\u660e\u5ea6\u964d\u4e86\u3001\u8272\u5ea6\u5360\u6bd4\u76f8\u5bf9\u5347\u9ad8&#xff0c;\u89c6\u89c9\u9971\u548c\u5ea6\u5c31\u4e0a\u5347&#xff08;\u5b9e\u6d4b \u0394S&#061;&#043;58&#xff09;\u3002\u8fd9\u65e2\u662f\u9677\u9631\u4e5f\u662f\u7279\u6027\u2014\u2014\u7535\u5f71\u8c03\u8272\u91cc\u7684&#034;\u538b\u6697\u63d0\u9971\u548c&#034;\u5c31\u662f\u8fd9\u4e2a\u539f\u7406\u3002<\/p>\n<p>Q6&#xff1a;\u4f3d\u9a6c\u548c 022\/023 \u671f\u7684 HE\/CLAHE \u6709\u4ec0\u4e48\u672c\u8d28\u533a\u522b&#xff1f;<br \/>\nA&#xff1a;\u4f3d\u9a6c\/Log \u662f\u56fa\u5b9a\u6570\u5b66\u5f62\u72b6\u7684\u70b9\u8fd0\u7b97&#xff08;\u4e0e\u56fe\u50cf\u5185\u5bb9\u65e0\u5173&#xff09;&#xff1b;HE\/CLAHE \u662f\u6570\u636e\u9a71\u52a8\u7684&#xff08;\u53d8\u6362\u66f2\u7ebf\u7531\u76f4\u65b9\u56fe\u7b97\u51fa&#xff09;\u3002\u524d\u8005\u53ef\u63a7\u53ef\u590d\u73b0&#xff0c;\u540e\u8005\u81ea\u9002\u5e94\u4f46\u53ef\u80fd\u653e\u5927\u566a\u58f0\u3002\u589e\u5f3a\u94fe\u91cc\u5e38\u5e38\u662f\u4f3d\u9a6c\u5148\u7c97\u8c03\u3001CLAHE \u518d\u7cbe\u4fee\u3002<\/p>\n<hr \/>\n<h3>\u5341\u4e09\u3001\u8bfe\u540e\u7ec3\u4e60<\/h3>\n<li>\u57fa\u7840\u7ec3\u4e60&#xff1a;\u62cd\u4e00\u5f20\u5ba4\u5185\u6b20\u66dd\u7167\u7247&#xff0c;\u5206\u522b\u7528 \u03b3&#061;0.5\u3001Log\u3001HE \u4e09\u79cd\u65b9\u6cd5\u63d0\u4eae&#xff0c;\u653e\u5927\u6697\u90e8\u533a\u57df\u5bf9\u6bd4\u566a\u58f0\u53ef\u89c1\u5ea6&#xff0c;\u9a8c\u8bc1&#034;\u4f3d\u9a6c\u4fdd\u5f62\u3001HE \u653e\u566a&#034;\u7684\u7ed3\u8bba\u3002<\/li>\n<li>\u8fdb\u9636\u7ec3\u4e60&#xff1a;\u7ed9 auto_gamma \u52a0\u4e0a\u4e8c\u5206\u8fed\u4ee3&#xff0c;\u8ba9\u5b9e\u9645\u8f93\u51fa\u5747\u503c\u4e0e target \u7684\u8bef\u5dee &lt; 1 \u4e2a\u7070\u5ea6\u7ea7&#xff0c;\u6d4b\u8bd5 10 \u5f20\u4e0d\u540c\u4eae\u5ea6\u7684\u56fe\u5404\u9700\u51e0\u6b21\u8fed\u4ee3\u3002<\/li>\n<li>\u6311\u6218\u9898&#xff1a;\u5b9e\u73b0&#034;\u81ea\u52a8 Log \u53d8\u6362&#034;&#xff1a;\u6839\u636e\u56fe\u50cf\u5747\u503c\u81ea\u9002\u5e94\u8ba1\u7b97\u5e38\u6570 c&#xff08;\u63d0\u793a&#xff1a;\u8ba9\u8f93\u51fa\u5747\u503c\u843d\u5728 100~150 \u533a\u95f4&#xff09;&#xff0c;\u5e76\u4e0e\u81ea\u52a8\u4f3d\u9a6c\u5728 5 \u7c7b\u56fe\u50cf\u4e0a\u5bf9\u6bd4\u9c81\u68d2\u6027\u3002<\/li>\n<hr \/>\n<h3>\u5341\u56db\u3001\u5b8c\u6574\u53ef\u8fd0\u884c\u811a\u672c<\/h3>\n<p><span class=\"token comment\"># \u73af\u5883\u8981\u6c42<\/span><br \/>\nPython <span class=\"token number\">3.8<\/span>&#043;<br \/>\nOpenCV <span class=\"token number\">4.5<\/span>&#043; \/ <span class=\"token number\">5<\/span>.x<br \/>\nNumPy <span class=\"token number\">1.20<\/span>&#043;<br \/>\nMatplotlib <span class=\"token number\">3.4<\/span>&#043;<\/p>\n<p><span class=\"token comment\"># \u8fd0\u884c<\/span><br \/>\npython code\/025_gamma_log_transform.py<\/p>\n<p>\u8fd0\u884c\u540e code\/output\/ \u4e0b\u4f1a\u751f\u6210 8 \u5f20 PNG&#xff0c;\u5bf9\u5e94\u672c\u8282\u5b9e\u9a8c\u3002<\/p>\n<hr \/>\n<p>\u4e0b\u671f\u9884\u544a&#xff08;\u7b2c 026 \u671f&#xff09;&#xff1a;\u5206\u6bb5\u7ebf\u6027\u53d8\u6362\u2014\u2014\u7070\u5ea6\u7a97\u4e0e\u9636\u68af\u53d8\u6362\u3002\u628a\u76f4\u7ebf\u6298\u6210\u51e0\u6bb5&#xff0c;\u5b9e\u73b0&#034;\u53ea\u62c9\u4f38\u4e2d\u95f4\u8c03\u3001\u51bb\u7ed3\u4e24\u7aef&#034;\u7684\u7cbe\u7ec6\u63a7\u5236&#xff0c;\u533b\u5b66\u5f71\u50cf CT \u7684\u7a97\u5bbd\u7a97\u4f4d\u6b63\u662f\u5b83\u7684\u5dc5\u5cf0\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c 025 \u671f | \u56fe\u50cf\u5904\u7406\u7b97\u6cd5\u5165\u95e8\u7cfb\u5217 | 2026-09-03<br \/>\n\u5173\u952e\u8bcd&#xff1a;\u4f3d\u9a6c\u6821\u6b63\u3001Log \u53d8\u6362\u3001\u975e\u7ebf\u6027\u70b9\u8fd0\u7b97\u3001\u81ea\u52a8\u4f3d\u9a6c\u3001LUT \u52a0\u901f\u3001sRGB \u663e\u793a\u4f3d\u9a6c\u3001\u6697\u56fe\u589e\u5f3a<br \/>\n\u627f\u63a5 024 \u671f \u2192 025 \u671f&#xff1a;024 \u671f\u6211\u4eec\u7528\u4e00\u6761\u76f4\u7ebf&#xff08;g  \u03b1\u00b7f  \u03b2&#xff09;\u641e\u5b9a\u4eae\u5ea6\u4e0e\u5bf9\u6bd4\u5ea6&#xff1b;\u4eca\u665a\u628a\u76f4\u7ebf\u5f2f\u6210\u66f2\u7ebf\u2014\u2014\u4f3d\u9a6c\u4e0e Log\u3002\u5b83\u4eec\u4e13\u6cbb\u4e00\u79cd\u75c5&#xff1a;\u6697\u90e8\u7ec6\u8282\u6324\u5728\u4e00\u8d77&#xff0c;\u7ebf\u6027\u62c9\u4f38\u6551\u4e0d\u56de\u6765\u3002\u4e00\u3001\u5f15\u8a00&#xff1a;\u4e3a<\/p>\n","protected":false},"author":2,"featured_media":100088,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11456,11455,11458,11457,3829],"topic":[],"class_list":["post-100097","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-log","tag-11455","tag-11458","tag-11457","tag-3829"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u56fe\u50cf\u5904\u7406\u5165\u95e8025 | \u975e\u7ebf\u6027\u7070\u5ea6\u53d8\u6362\uff1a\u4f3d\u9a6c\u6821\u6b63\u4e0e Log \u53d8\u6362\u2014\u2014\u6697\u56fe\u6551\u661f\u7684\u4e24\u6761\u66f2\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/100097.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u56fe\u50cf\u5904\u7406\u5165\u95e8025 | \u975e\u7ebf\u6027\u7070\u5ea6\u53d8\u6362\uff1a\u4f3d\u9a6c\u6821\u6b63\u4e0e Log \u53d8\u6362\u2014\u2014\u6697\u56fe\u6551\u661f\u7684\u4e24\u6761\u66f2\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7b2c 025 \u671f | \u56fe\u50cf\u5904\u7406\u7b97\u6cd5\u5165\u95e8\u7cfb\u5217 | 2026-09-03 \u5173\u952e\u8bcd&#xff1a;\u4f3d\u9a6c\u6821\u6b63\u3001Log \u53d8\u6362\u3001\u975e\u7ebf\u6027\u70b9\u8fd0\u7b97\u3001\u81ea\u52a8\u4f3d\u9a6c\u3001LUT \u52a0\u901f\u3001sRGB \u663e\u793a\u4f3d\u9a6c\u3001\u6697\u56fe\u589e\u5f3a \u627f\u63a5 024 \u671f \u2192 025 \u671f&#xff1a;024 \u671f\u6211\u4eec\u7528\u4e00\u6761\u76f4\u7ebf&#xff08;g \u03b1\u00b7f \u03b2&#xff09;\u641e\u5b9a\u4eae\u5ea6\u4e0e\u5bf9\u6bd4\u5ea6&#xff1b;\u4eca\u665a\u628a\u76f4\u7ebf\u5f2f\u6210\u66f2\u7ebf\u2014\u2014\u4f3d\u9a6c\u4e0e Log\u3002\u5b83\u4eec\u4e13\u6cbb\u4e00\u79cd\u75c5&#xff1a;\u6697\u90e8\u7ec6\u8282\u6324\u5728\u4e00\u8d77&#xff0c;\u7ebf\u6027\u62c9\u4f38\u6551\u4e0d\u56de\u6765\u3002\u4e00\u3001\u5f15\u8a00&#xff1a;\u4e3a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/100097.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-03T14:25:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142536-6a998360a72e5.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100097.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/100097.html\",\"name\":\"\u56fe\u50cf\u5904\u7406\u5165\u95e8025 | \u975e\u7ebf\u6027\u7070\u5ea6\u53d8\u6362\uff1a\u4f3d\u9a6c\u6821\u6b63\u4e0e Log \u53d8\u6362\u2014\u2014\u6697\u56fe\u6551\u661f\u7684\u4e24\u6761\u66f2\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-03T14:25:41+00:00\",\"dateModified\":\"2026-09-03T14:25:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/100097.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/100097.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100097.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u56fe\u50cf\u5904\u7406\u5165\u95e8025 | \u975e\u7ebf\u6027\u7070\u5ea6\u53d8\u6362\uff1a\u4f3d\u9a6c\u6821\u6b63\u4e0e Log \u53d8\u6362\u2014\u2014\u6697\u56fe\u6551\u661f\u7684\u4e24\u6761\u66f2\u7ebf\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u56fe\u50cf\u5904\u7406\u5165\u95e8025 | \u975e\u7ebf\u6027\u7070\u5ea6\u53d8\u6362\uff1a\u4f3d\u9a6c\u6821\u6b63\u4e0e Log \u53d8\u6362\u2014\u2014\u6697\u56fe\u6551\u661f\u7684\u4e24\u6761\u66f2\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/100097.html","og_locale":"zh_CN","og_type":"article","og_title":"\u56fe\u50cf\u5904\u7406\u5165\u95e8025 | \u975e\u7ebf\u6027\u7070\u5ea6\u53d8\u6362\uff1a\u4f3d\u9a6c\u6821\u6b63\u4e0e Log \u53d8\u6362\u2014\u2014\u6697\u56fe\u6551\u661f\u7684\u4e24\u6761\u66f2\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7b2c 025 \u671f | \u56fe\u50cf\u5904\u7406\u7b97\u6cd5\u5165\u95e8\u7cfb\u5217 | 2026-09-03 \u5173\u952e\u8bcd&#xff1a;\u4f3d\u9a6c\u6821\u6b63\u3001Log \u53d8\u6362\u3001\u975e\u7ebf\u6027\u70b9\u8fd0\u7b97\u3001\u81ea\u52a8\u4f3d\u9a6c\u3001LUT \u52a0\u901f\u3001sRGB \u663e\u793a\u4f3d\u9a6c\u3001\u6697\u56fe\u589e\u5f3a \u627f\u63a5 024 \u671f \u2192 025 \u671f&#xff1a;024 \u671f\u6211\u4eec\u7528\u4e00\u6761\u76f4\u7ebf&#xff08;g \u03b1\u00b7f \u03b2&#xff09;\u641e\u5b9a\u4eae\u5ea6\u4e0e\u5bf9\u6bd4\u5ea6&#xff1b;\u4eca\u665a\u628a\u76f4\u7ebf\u5f2f\u6210\u66f2\u7ebf\u2014\u2014\u4f3d\u9a6c\u4e0e Log\u3002\u5b83\u4eec\u4e13\u6cbb\u4e00\u79cd\u75c5&#xff1a;\u6697\u90e8\u7ec6\u8282\u6324\u5728\u4e00\u8d77&#xff0c;\u7ebf\u6027\u62c9\u4f38\u6551\u4e0d\u56de\u6765\u3002\u4e00\u3001\u5f15\u8a00&#xff1a;\u4e3a","og_url":"https:\/\/www.wsisp.com\/helps\/100097.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-03T14:25:41+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903142536-6a998360a72e5.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/100097.html","url":"https:\/\/www.wsisp.com\/helps\/100097.html","name":"\u56fe\u50cf\u5904\u7406\u5165\u95e8025 | \u975e\u7ebf\u6027\u7070\u5ea6\u53d8\u6362\uff1a\u4f3d\u9a6c\u6821\u6b63\u4e0e Log \u53d8\u6362\u2014\u2014\u6697\u56fe\u6551\u661f\u7684\u4e24\u6761\u66f2\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-03T14:25:41+00:00","dateModified":"2026-09-03T14:25:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/100097.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/100097.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/100097.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u56fe\u50cf\u5904\u7406\u5165\u95e8025 | \u975e\u7ebf\u6027\u7070\u5ea6\u53d8\u6362\uff1a\u4f3d\u9a6c\u6821\u6b63\u4e0e Log \u53d8\u6362\u2014\u2014\u6697\u56fe\u6551\u661f\u7684\u4e24\u6761\u66f2\u7ebf"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=100097"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100097\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/100088"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=100097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=100097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=100097"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=100097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}