{"id":98,"date":"2024-01-05T18:39:34","date_gmt":"2024-01-05T10:39:34","guid":{"rendered":"https:\/\/docs.skyvis.top\/?p=98"},"modified":"2025-01-08T17:17:19","modified_gmt":"2025-01-08T09:17:19","slug":"photoshop%e8%89%b2%e5%bd%a9%e5%b9%b3%e8%a1%a1","status":"publish","type":"post","link":"https:\/\/docs.skyvis.top\/index.php\/2024\/01\/05\/photoshop%e8%89%b2%e5%bd%a9%e5%b9%b3%e8%a1%a1\/","title":{"rendered":"Photoshop\u8272\u5f69\u5e73\u8861\uff08\u6458\u81ea\u77e5\u4e4e-\u7ae0\u4f73\u6770\uff09"},"content":{"rendered":"<p>Photoshop \u4e2d\u6709\u8272\u5f69\u5e73\u8861\uff08Color Balance\uff0c\u5728\u4e2d\u6587\u8bed\u5883\u4e0b\u5bb9\u6613\u4e0e\u767d\u5e73\u8861 White Balance \u76f8\u6df7\u6dc6\uff0c\u8fd9\u91cc\u4ec5\u6307 Photoshop \u7684 Color Balance \u8c03\u6574\u56fe\u5c42\uff09\u529f\u80fd\uff0c\u53ef\u4ee5\u5bf9\u56fe\u7247\u7684\u989c\u8272\u503e\u5411\u8fdb\u884c\u8c03\u6574\u3002<br \/>\n\u800c\u4f5c\u4e3a\u56fe\u50cf\u7b97\u6cd5\u5de5\u7a0b\u5e08\uff0c\u81ea\u7136\u5bf9\u5176\u80cc\u540e\u7684\u539f\u7406\u548c\u5b9e\u73b0\u6bd4\u8f83\u611f\u5174\u8da3\u3002\u8fd9\u7bc7\u6587\u7ae0\u5c31\u6765\u8bf4\u8bf4 Photoshop \u4e2d\u7684\u8272\u5f69\u5e73\u8861\u529f\u80fd\u80cc\u540e\u7684\u539f\u7406\uff0c\u6587\u672b\u9644\u6709\u4ee3\u7801\u5b9e\u73b0\u3002<br \/>\nPhotoshop \u4e2d\u7684\u8272\u5f69\u5e73\u8861\u529f\u80fd\u9762\u677f\u5982\u4e0b\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/docs.skyvis.top\/wp-content\/uploads\/2025\/01\/balance1-300x144.jpg\" alt=\"\" \/><\/p>\n<p>\u6700\u4e0a\u9762\u662f\u5f71\u8c03\uff08Tone\uff09\uff0c\u7528\u6765\u9650\u5b9a\u8c03\u6574\u7684\u662f\u56fe\u50cf\u7684\u54ea\u90e8\u5206\u5f71\u8c03\u4e0b\u7684\u8272\u5f69\uff0c\u6709\u9ad8\u5149\uff08Highlights\uff09\u3001\u4e2d\u95f4\u8c03\uff08Midtones\uff09\u548c\u9634\u5f71\uff08Shadows\uff09\u3002<\/p>\n<p>\u4e2d\u95f4\u662f\u4e09\u4e2a\u8c03\u8282\u989c\u8272\u7684\u6ed1\u6746\uff0c\u8be6\u7ec6\u539f\u7406\u4f1a\u6d89\u53ca\u5230 RGB \u8272\u5f69\u7cfb\u7edf\u7684\u57fa\u672c\u8fd0\u7b97\uff0c\u8fd9\u91cc\u4e0d\u518d\u5c55\u5f00\u3002<\/p>\n<p>\u6700\u4e0b\u9762\u662f\u4e00\u4e2a\u4fdd\u6301\u660e\u5ea6\uff08Preserve Luminosity\uff09\u7684\u9009\u6846\uff0c\u9009\u4e2d\u4e86\u8868\u793a\u91c7\u7528\u7684\u65b0\u7248\u7b97\u6cd5\uff08\u5176\u5b9e\u4e5f\u4e0d\u65b0\u4e86\uff0cPhotoshop CS6 \u65f6\u4ee3\u5c31\u5df2\u7ecf\u6709\u4e86\uff09\uff0c\u5728\u989c\u8272\u8c03\u6574\u7684\u540c\u65f6\u5c3d\u91cf\u4fdd\u6301\u660e\u5ea6\u4e0d\u53d8\uff08\u5f53\u7136\uff0c\u770b\u4e86\u540e\u9762\u7684\u539f\u7406\u5206\u6790\u5c31\u77e5\u9053\uff0c\u5b9e\u9645\u4e0a\u5e76\u6ca1\u6709\u4e25\u683c\u4fdd\u6301\u660e\u5ea6\u4e0d\u53d8\uff0c\u53ea\u662f\u5207\u6362\u65b0\u8001\u7b97\u6cd5\u7684\u4e00\u4e2a\u5f00\u5173\u800c\u5df2\uff09\uff1b\u800c\u8001\u7b97\u6cd5\u73b0\u5728\u4f7f\u7528\u5f97\u5f88\u5c11\u4e86\uff0c\u8fd9\u91cc\u4e0d\u5c55\u5f00\u5206\u6790\u3002<\/p>\n<h3>1. \u57fa\u672c\u8bbe\u5b9a<\/h3>\n<h4>1.1 sRGB vs. \u7ebf\u6027 RGB<\/h4>\n<p>\u9996\u5148\u4e00\u4e2a\u95ee\u9898\uff0cPhotoshop \u4e2d\uff0c\u8fdb\u884c\u8272\u5f69\u5e73\u8861\u5904\u7406\u7684\u65f6\u5019\uff0c\u662f\u5728\u56fe\u50cf RGB \u7a7a\u95f4\uff08\u901a\u5e38\u662f sRGB\uff09\u5904\u7406\uff0c\u8fd8\u662f\u5728\u7ebf\u6027 RGB \u7a7a\u95f4\u5904\u7406\uff1f<\/p>\n<p>\u8fd9\u4e2a\u95ee\u9898\u662f\u91cd\u8981\u7684\uff0c\u5982\u679c\u6ca1\u641e\u5bf9\uff0c\u4f1a\u5bfc\u81f4\u7ed3\u679c\u7684\u989c\u8272\u53d8\u7684\u5947\u602a\u3002\u5373\u4f7f\u5728\u4e00\u4e9b\u6210\u719f\u7684\u5546\u4e1a\u65b9\u6848\u4e0a\u4ecd\u7136\u6709\u8fd9\u79cd\u4f4e\u7ea7\u9519\u8bef\uff08\u53c2\u89c1 YouTube \u4e0a\u4e00\u4e2a\u6bd4\u8f83\u7cbe\u5f69\u7684\u79d1\u666e Computer Color is Broken \u9700\u8981\u79d1\u5b66\u4e0a\u7f51\uff0c\u6709\u4e00\u4e2a\u4e2d\u8bd1\u7248\u53ef\u4ee5\u770b\u8fd9\u91cc\uff1a\u8ba1\u7b97\u673a\u7684\u989c\u8272\u4e0d\u662f\u8fde\u7eed\u7684 &#8211; Computer Color is Broken &#8211; \u8bd1\u5b66\u9986 &#8211; \u77e5\u8bc6\u65e0\u7586\u754c\uff0c\u4f46\u6211\u4e2a\u4eba\u89c9\u5f97\u7ffb\u8bd1\u5f97\u4e0d\u592a\u597d\uff09<\/p>\n<p>\u4e3a\u786e\u5b9a\u8fd9\u4e2a\u95ee\u9898\uff0c\u8fd9\u91cc\u6211\u505a\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u5b9e\u9a8c\u3002\u5728\u8272\u5f69\u5e73\u8861\u9762\u677f\u4e2d\u968f\u4fbf\u8c03\u6574\u4e00\u4e9b\u53c2\u6570\uff08\u6bd4\u5982\u628a\u4e2d\u95f4\u8c03\u7ea2\u8272 +30\uff09\uff0c\u628a\u5904\u7406\u524d\u540e\u7684\u56fe\u4e2d\u6bcf\u4e2a\u50cf\u7d20\u7684\u503c\u8fdb\u884c\u6bd4\u5bf9\uff0c\u753b\u5728\u56fe\u4e0a\uff1a\u56fe\u4e2d\u6a2a\u5750\u6807\u662f\u539f\u59cb\u7684\u50cf\u7d20\u503c\uff0c\u7eb5\u5750\u6807\u662f\u5904\u7406\u524d\u540e\u50cf\u7d20\u503c\u7684\u53d8\u5316\u91cf\u3002\u8fd9\u91cc\u7684\u50cf\u7d20\u503c\u7684\u542b\u4e49\uff0c\u662f sRGB \u7a7a\u95f4\u4e0b\u7684\u50cf\u7d20\u503c\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/docs.skyvis.top\/wp-content\/uploads\/2025\/01\/balance2-300x225.jpg\" alt=\"\" \/><\/p>\n<p>\u5904\u7406\u524d\u540e\u50cf\u7d20\u503c\u7684\u53d8\u5316\uff0c\u6a2a\u5750\u6807\u662f\u539f\u59cb\u50cf\u7d20\u503c\uff0c\u7eb5\u5750\u6807\u662f\u50cf\u7d20\u503c\u53d8\u5316\u91cf<br \/>\n\u56fe\u4e2d\u753b\u51fa\u4e86\u7ea2\u8272\u548c\u84dd\u8272\u4e24\u4e2a\u901a\u9053\uff0c\u7eff\u8272\u901a\u9053\u548c\u84dd\u8272\u901a\u9053\u8868\u73b0\u4e00\u6837\uff0c\u5728\u540c\u4e00\u5f20\u56fe\u4e0a\u5c31\u4e0d\u753b\u51fa\u6765\u4e86\u3002\u8fd9\u91cc\u53ef\u4ee5\u5f88\u660e\u663e\u7684\u770b\u5230\u7531\u4e8e\u91cf\u5316\uff08Quantization\uff09\u9020\u6210\u7684\u53f0\u9636\u3002\u8fd9\u9884\u793a\u7740 Photoshop \u4e2d\u8272\u5f69\u5e73\u8861\u529f\u80fd\u5728\u8ba1\u7b97\u7684\u65f6\u5019\u662f\u5728 sRGB \u7a7a\u95f4\u4e2d\u8fdb\u884c\u7684\uff0c\u5426\u5219\u56fe\u4e2d\u51fa\u73b0\u7684\u5e94\u5f53\u662f\u5f2f\u66f2\u7684\u53f0\u9636\uff0c\u800c\u4e0d\u662f\u73b0\u5728\u8fd9\u6837\u5e73\u76f4\u7684\u53f0\u9636\u3002<\/p>\n<p>\u770b\u5f97\u51fa\u6765\u8fd9\u662f\u4e25\u8c28\u6027\u548c\u6027\u80fd\u4e4b\u95f4\u7684\u4e00\u4e2a\u6743\u8861\uff0c\u4ece\u539f\u7406\u6765\u8bf4\uff0c\u5728\u7ebf\u6027 RGB \u7a7a\u95f4\u4e2d\u505a\u8ba1\u7b97\u66f4\u5408\u7406\uff0c\u4e5f\u66f4\u5bb9\u6613\u8bbe\u8ba1\u771f\u6b63\u7684\u4fdd\u6301\u660e\u5ea6\u7684\u7b97\u6cd5\uff0c\u4f46\u4ece sRGB \u8f6c\u5230 \u7ebf\u6027 RGB \u9700\u8981\u4e00\u5b9a\u7684\u8ba1\u7b97\u91cf\uff0c\u800c\u5b9e\u9645\u4e2d\u662f\u4e0d\u662f\u4e25\u683c\u4fdd\u6301\u660e\u5ea6\u8fd9\u4e00\u70b9\u5e76\u4e0d\u662f\u90a3\u4e48\u91cd\u8981\uff0c\u901a\u5e38\u6444\u5f71\u5e08\u4f1a\u5355\u72ec\u7528\u5176\u4ed6\u7684\u8c03\u6574\u56fe\u5c42\u8fdb\u884c\u660e\u5ea6\u7684\u8c03\u6574\u3002<\/p>\n<h4>1.2 \u53c2\u6570\u89c4\u7ea6\u5316<\/h4>\n<p>\u6211\u4eec\u77e5\u9053\uff0c\u7b49\u91cf\u7684 RGB \u4e09\u8272\u6df7\u5408\uff0c\u5f97\u5230\u7684\u662f\u4e0d\u540c\u660e\u5ea6\u7684\u7070\u8272\u3002\u5982\u679c\u5c06\u4e09\u4e2a\u8c03\u6574\u6ed1\u6746\u90fd\u62d6\u52a8\u76f8\u540c\u7684\u6570\u503c\uff0c\u90a3\u4e48\u7406\u8bba\u4e0a\u5c06\u4e0d\u4f1a\u5bf9\u539f\u56fe\u505a\u4efb\u4f55\u53d8\u5316\uff08\u52a0\u51cf\u7070\u8272\uff0c\u989c\u8272\u4e0a\u5f53\u7136\u4e0d\u5e94\u5f53\u6709\u53d8\u5316\uff0c\u800c\u660e\u5ea6\u4e0a\u6211\u4eec\u9700\u8981\u4fdd\u6301\u660e\u5ea6\uff0c\u6240\u4ee5\u4e5f\u4e0d\u5e94\u8be5\u6709\u53d8\u5316\uff09\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u4e09\u4e2a\u6ed1\u6746\u503c (+20, +35, +15) \u7684\u6548\u679c\u7b49\u4ef7\u4e8e (+5, +20, 0) \u7684\u6548\u679c\uff0c\u4e5f\u7b49\u4ef7\u4e8e (0, +15, -5) \u7684\u6548\u679c\u3002<\/p>\n<p>\u8fd9\u4e00\u70b9\u53ef\u4ee5\u5728 Photoshop \u91cc\u5f97\u5230\u9a8c\u8bc1\u3002<\/p>\n<p>\u8fd9\u4e2a\u7279\u6027\u867d\u7136\u5f88\u597d\u7406\u89e3\uff0c\u4f46\u662f\u7ed9\u7b97\u6cd5\u7684\u5b9e\u73b0\u4e0a\u5e26\u6765\u4e86\u9ebb\u70e6\uff1a\u6709\u8bb8\u591a\u7ec4\u770b\u8d77\u6765\u4e0d\u540c\u7684\u53c2\u6570\uff0c\u5f97\u5230\u7684\u6548\u679c\u8981\u4fdd\u6301\u4e00\u81f4\u3002\u8981\u5f97\u5230\u8fd9\u4e2a\u6548\u679c\uff0c\u4e00\u822c\u4ece\u4e24\u4e2a\u65b9\u5411\u6765\u8003\u8651\uff0c\u8981\u4e48\u8bbe\u8ba1\u4e00\u4e2a\u5f88\u590d\u6742\u7684\u5468\u671f\u51fd\u6570\uff0c\u81ea\u52a8\u628a\u8fd9\u79cd\u53c2\u6570\u7684\u7b49\u91cf\u53d8\u5316\u5185\u5316\u5230\u51fd\u6570\u5468\u671f\u4e2d\u53bb\uff1b\u8981\u4e48\u53ea\u8003\u8651\u67d0\u79cd\u7279\u6b8a\u60c5\u51b5\u7684\u53c2\u6570\uff0c\u5176\u4ed6\u60c5\u51b5\u90fd\u901a\u8fc7\u53c2\u6570\u7b49\u91cf\u53d8\u5316\u6765\u89c4\u7ea6\u5230\u8fd9\u79cd\u7279\u6b8a\u60c5\u51b5\u4e0b\u6765\u3002\u8fd9\u91cc\u6211\u9009\u62e9\u7b2c\u4e8c\u79cd\u601d\u8def\uff0c\u6211\u628a\u8fd9\u4e2a\u601d\u8def\u79f0\u4e3a\u53c2\u6570\u7684\u89c4\u7ea6\u5316\uff0c\u6709\u70b9\u7c7b\u4f3c\u4e8e\u51fd\u6570\u7684\u4e3b\u503c\u533a\u95f4\u7684\u610f\u601d\u3002<\/p>\n<p>\u90a3\u4e48\u600e\u4e48\u89c4\u7ea6\u53c2\u6570\u5462\uff1f\u4e00\u4e2a\u5f88\u76f4\u89c2\u7684\u601d\u8def\u5c31\u662f\uff0c\u5728\u7b49\u91cf\u53d8\u5316\u7684\u524d\u63d0\u4e0b\uff0c\u9009\u7528\u7edd\u5bf9\u503c\u4e4b\u548c\u6700\u5c0f\u7684\u90a3\u7ec4\u53c2\u6570\u3002\u56e0\u4e3a\u7edd\u5bf9\u503c\u4e4b\u548c\u6700\u5c0f\u610f\u5473\u7740\u5bf9\u539f\u56fe\u7684\u6539\u53d8\u4e5f\u6700\u5c0f\u3002\u8fd9\u4e2a\u76ee\u6807\u7528\u516c\u5f0f\u6765\u8868\u8fbe\u5c31\u662f<br \/>\n<span class=\"MJX_Assistive_MathML\" role=\"presentation\"><math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><munder><mo movablelimits=\"true\" form=\"prefix\">min<\/mo><mrow class=\"MJX-TeXAtom-ORD\"><mi>d<\/mi><\/mrow><\/munder><mspace width=\"1em\"><\/mspace><mrow class=\"MJX-TeXAtom-ORD\"><mo stretchy=\"false\">|<\/mo><\/mrow><mi>R<\/mi><mo>+<\/mo><mi>d<\/mi><mrow class=\"MJX-TeXAtom-ORD\"><mo stretchy=\"false\">|<\/mo><\/mrow><mo>+<\/mo><mrow class=\"MJX-TeXAtom-ORD\"><mo stretchy=\"false\">|<\/mo><\/mrow><mi>G<\/mi><mo>+<\/mo><mi>d<\/mi><mrow class=\"MJX-TeXAtom-ORD\"><mo stretchy=\"false\">|<\/mo><\/mrow><mo>+<\/mo><mrow class=\"MJX-TeXAtom-ORD\"><mo stretchy=\"false\">|<\/mo><\/mrow><mi>B<\/mi><mo>+<\/mo><mi>d<\/mi><mrow class=\"MJX-TeXAtom-ORD\"><mo stretchy=\"false\">|<\/mo><\/mrow><\/math><\/span><\/p>\n<p>\u5176\u4e2d\uff0cR, G, B \u5206\u522b\u662f\u4e09\u4e2a\u8c03\u6574\u53c2\u6570\uff0cd \u5c31\u662f\u5f85\u5b9a\u7684\u7b49\u91cf\u53d8\u5316\u91cf\u3002\u7ecf\u8fc7\u7b80\u5355\u5206\u7c7b\u8ba8\u8bba\u53ef\u4ee5\u77e5\u9053\uff0c\u5bf9 R, G, B \u4e09\u8005\u8fdb\u884c\u6392\u5e8f\uff0c\u4ee4 d \u7b49\u4e8e\u6392\u5e8f\u7b2c\u4e8c\u7684\u90a3\u4e2a\u91cf\u7684\u76f8\u53cd\u6570\uff0c\u5219\u6574\u4e2a\u76ee\u6807\u51fd\u6570\u80fd\u53d6\u5f97\u6700\u5c0f\u503c\u3002<\/p>\n<p>\u7528\u524d\u9762\u4e3e\u8fc7\u7684\u4f8b\u5b50\u6765\u8bf4\uff0c\u4e09\u4e2a\u53c2\u6570\u4e3a (+20, +35, +15)\uff0c\u6392\u5e8f\u4e4b\u540e\u7b2c\u4e8c\u7684\u662f +20\uff0c\u4e8e\u662f\u4ee4 d = -20\uff0c\u5f97\u5230\u89c4\u7ea6\u4e4b\u540e\u7684\u6b63\u5219\u53c2\u6570\u4e3a (0, +15, -5)<\/p>\n<p>\u672c\u6587\u4e4b\u540e\u7684\u8ba8\u8bba\uff0c\u672a\u5355\u72ec\u8bf4\u660e\u7684\uff0c\u90fd\u6307\u89c4\u7ea6\u5316\u4e4b\u540e\u7684\u53c2\u6570\u3002<\/p>\n<h3>2. \u4e2d\u95f4\u8272\u8c03\uff08Midtones\uff09\u5904\u7406\u7b97\u6cd5<\/h3>\n<p>\u7ecf\u8fc7\u4e00\u4e9b\u7b80\u5355\u7684\u5b9e\u9a8c\uff0c\u6211\u603b\u7ed3\u51fa\u8fd9\u6837\u51e0\u4e2a\u7ed3\u8bba\uff1a<\/p>\n<p>\u5355\u72ec\u6539\u52a8\u4efb\u4f55\u4e00\u4e2a\u53c2\u6570\uff0c\u90fd\u4f1a\u5f15\u8d77\u672c\u901a\u9053\u671d\u5411\u4e00\u4e2a\u65b9\u5411\u53d8\u5316\uff0c\u540c\u65f6\u53e6\u5916\u4e24\u4e2a\u901a\u9053\u671d\u5411\u53e6\u4e00\u4e2a\u65b9\u5411\u53d8\u5316\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u5bf9 R \u53c2\u6570 +20\uff0c\u5219 R \u901a\u9053\u50cf\u7d20\u503c\u4f1a\u53d8\u5927\uff0c\u800c G, B \u901a\u9053\u50cf\u7d20\u503c\u4f1a\uff08\u7b49\u91cf\u5730\uff09\u53d8\u5c0f\u2014\u2014\u4e24\u8fb9\u7684\u53d8\u5316\u65b9\u5411\u5b8c\u5168\u76f8\u53cd\uff1b<br \/>\n\u6539\u52a8\u4e0d\u540c\u7684\u53c2\u6570\uff0c\u6548\u679c\u662f\u5355\u72ec\u6539\u52a8\u7684\u7ed3\u679c\u7684\u53e0\u52a0\u3002<br \/>\n\u90a3\u4e48\uff0c\u5173\u952e\u7684\u95ee\u9898\u5c31\u662f\uff0c\u53c2\u6570\u7684\u503c\u662f\u600e\u4e48\u5f71\u54cd\u50cf\u7d20\u503c\u7684\uff0c\u6362\u53e5\u8bdd\u8bf4\uff0c\u662f\u4e2a\u4ec0\u4e48\u51fd\u6570\u5f62\u5f0f\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/docs.skyvis.top\/wp-content\/uploads\/2025\/01\/balance3-300x300.jpg\" alt=\"\" \/><\/p>\n<p>\u4e2d\u95f4\u8272\u8c03\u7ea2\u8272+70\u4e4b\u540e\uff0c\u539f\u59cb\u50cf\u7d20\u503c\u548c\u5904\u7406\u540e\u50cf\u7d20\u503c\u7684\u53d8\u5316\u60c5\u51b5\u3002\u6a2a\u5750\u6807\u662f\u539f\u59cb\u50cf\u7d20\u503c\uff0c\u7eb5\u5750\u6807\u662f\u5904\u7406\u540e\u50cf\u7d20\u503c\u3002\u56fe\u4e2d\u753b\u51fa\u7684\u662f\u7ea2\u8272\u548c\u84dd\u8272\u901a\u9053\u7684\u60c5\u51b5\u3002<br \/>\n\u4ece\u5904\u7406\u524d\u540e\u50cf\u7d20\u503c\u53d8\u5316\u7684\u56fe\u4e0a\u53ef\u4ee5\u731c\u6d4b\uff0c\u8fd9\u4e2a\u51fd\u6570\u53ef\u80fd\u662f\u4e2a\u6307\u6570\u51fd\u6570\uff1a<span class=\"MJX_Assistive_MathML\" role=\"presentation\"><math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mi>y<\/mi><mo>=<\/mo><msup><mi>x<\/mi><mi>\u03b1<\/mi><\/msup><\/math><\/span>\uff0c\u5176\u4e2d alpha \u662f\u4e2a\u968f\u6ed1\u5757\u503c\u53d8\u5316\u7684\u53c2\u6570\u3002\u5c1d\u8bd5\u4e0d\u540c\u7684\u6ed1\u5757\u53c2\u6570\uff0c\u5bf9\u51fd\u6570\u8fdb\u884c\u62df\u5408\uff0c\u53d1\u73b0\u6307\u6570\u51fd\u6570\u5bf9\u4e0d\u540c\u53c2\u6570\u4e0b\u7684\u53d8\u5316\u90fd\u80fd\u6709\u5f88\u597d\u7684\u62df\u5408\uff0c\u56e0\u6b64\u6211\u53ef\u4ee5\u5927\u80c6\u731c\u6d4b\uff0c\u4e2d\u95f4\u8272\u8c03\u7684\u5904\u7406\u7b97\u6cd5\u5c31\u662f\u6307\u6570\u51fd\u6570\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u7684\u95ee\u9898\u5c31\u662f\uff0c\u6307\u6570 alpha \u662f\u5982\u4f55\u968f\u7740\u6ed1\u5757\u53c2\u6570\u53d8\u5316\u7684\u3002<\/p>\n<p>\u5f88\u663e\u7136\uff0calpha \u5904\u4e8e\u6307\u6570\u4f4d\u7f6e\uff0c\u90a3\u4e48 alpha \u968f\u7740\u6ed1\u5757\u53c2\u6570 v \u7684\u53d8\u5316\uff0c\u5e94\u5f53\u6ee1\u8db3\uff1a<span class=\"MJX_Assistive_MathML\" role=\"presentation\"><math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mi>\u03b1<\/mi><mo stretchy=\"false\">(<\/mo><mi>v<\/mi><mo stretchy=\"false\">)<\/mo><mo>\u22c5<\/mo><mi>\u03b1<\/mi><mo stretchy=\"false\">(<\/mo><mo>\u2212<\/mo><mi>v<\/mi><mo stretchy=\"false\">)<\/mo><mo>=<\/mo><mn>1<\/mn><\/math><\/span>\uff0c\u4e5f\u5c31\u662f\u5728\u5bf9\u6570\u5750\u6807\u4e0b\uff0calpha~v \u51fd\u6570\u56fe\u50cf\u662f\u5173\u4e8e\u539f\u70b9\u5bf9\u79f0\u7684\u3002\u7ecf\u8fc7\u5b9e\u9a8c\uff0c\u62df\u5408\u4e86\u4e0d\u540c\u6ed1\u5757\u53c2\u6570 v \u5bf9\u5e94\u7684\u4e0d\u540c alpha \u503c\uff0c\u753b\u5728\u5bf9\u6570\u5750\u6807\u4e0b\uff0c\u8fd1\u4f3c\u4e3a\u4e00\u6761\u8fc7\u539f\u70b9\u7684\u76f4\u7ebf\uff0c\u62df\u5408\u76f4\u7ebf\u65b9\u7a0b\u4e3a log(alpha) = -0.0033944 v<br \/>\n<img decoding=\"async\" src=\"https:\/\/docs.skyvis.top\/wp-content\/uploads\/2025\/01\/balance4-300x225.jpg\" alt=\"\" \/><\/p>\n<p>\u4e2d\u95f4\u8272\u8c03\u53c2\u6570 alpha \u968f\u7740\u6ed1\u5757\u53c2\u6570 v \u7684\u53d8\u5316\u60c5\u51b5<br \/>\n\u6240\u4ee5\u4e2d\u95f4\u8c03\u7684\u5904\u7406\u7b97\u6cd5\u53ef\u4ee5\u603b\u7ed3\u4e3a<br \/>\n<span class=\"MJX_Assistive_MathML\" role=\"presentation\"><math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mi>y<\/mi><mo>=<\/mo><msup><mi>x<\/mi><mi>\u03b1<\/mi><\/msup><mo>,<\/mo><mspace width=\"thickmathspace\"><\/mspace><mspace width=\"thickmathspace\"><\/mspace><mtext>where\u00a0<\/mtext><mi>\u03b1<\/mi><mo>=<\/mo><mi>exp<\/mi><mo>\u2061<\/mo><mo stretchy=\"false\">(<\/mo><mo>\u2212<\/mo><mn>0.0033944<\/mn><mspace width=\"thinmathspace\"><\/mspace><mi>v<\/mi><mo stretchy=\"false\">)<\/mo><\/math><\/span><\/p>\n<h3>3. \u9ad8\u5149\uff08Highlights\uff09\u548c\u9634\u5f71\uff08Shadows\uff09\u5904\u7406\u7b97\u6cd5<\/h3>\n<p>\u9ad8\u5149\u548c\u9634\u5f71\u7684\u8c03\u6574\u7b97\u6cd5\uff0c\u4e0e\u4e2d\u95f4\u8c03\u8c03\u6574\u7b97\u6cd5\u4e0d\u4e00\u6837\uff0c\u4ece\u8c03\u6574\u524d\u540e\u7684\u50cf\u7d20\u503c\u53d8\u5316\u66f2\u7ebf\u4e0a\u5c31\u80fd\u770b\u51fa\u6765<br \/>\n<img decoding=\"async\" src=\"https:\/\/docs.skyvis.top\/wp-content\/uploads\/2025\/01\/balance5-300x300.jpg\" alt=\"\" \/><br \/>\n\u9ad8\u5149\u7ea2\u8272+50\uff0c\u5904\u7406\u540e\u50cf\u7d20\u4e0e\u539f\u59cb\u50cf\u7d20\u7684\u5bf9\u6bd4\u60c5\u51b5\u3002\u56fe\u4e2d\u753b\u51fa\u4e86\u7ea2\u8272\u548c\u84dd\u8272\u901a\u9053\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/docs.skyvis.top\/wp-content\/uploads\/2025\/01\/balance6-300x300.jpg\" alt=\"\" \/><br \/>\n\u9634\u5f71\u7ea2\u8272+50\uff0c\u5904\u7406\u540e\u50cf\u7d20\u503c\u4e0e\u539f\u59cb\u50cf\u7d20\u7684\u5bf9\u6bd4\u60c5\u51b5\u3002\u56fe\u4e2d\u753b\u51fa\u4e86\u7ea2\u8272\u548c\u84dd\u8272\u901a\u9053\u3002<br \/>\n\u9ad8\u5149\u9634\u5f71\u7684\u5904\u7406\u8fc7\u7a0b\u6709\u51e0\u4e2a\u7279\u70b9\uff1a<br \/>\n&#8211; \u5bf9\u4e8e\u6b63\u5411\u7684\u8c03\u6574\uff0c\u6bd4\u5982\u540c\u6837\u53ea\u8c03\u6574\u7ea2\u8272 +50\uff0c\u9ad8\u5149\u7684\u5904\u7406\u7b97\u6cd5\u662f\u53ea\u589e\u52a0\u7ea2\u8272\u901a\u9053\u7684\u503c\uff0c\u5176\u4ed6\u4e24\u4e2a\u901a\u9053\u4e0d\u53d8\uff1b\u800c\u9634\u5f71\u7684\u5904\u7406\u7b97\u6cd5\u662f\u4e0d\u53d8\u7ea2\u8272\u901a\u9053\u503c\uff0c\u628a\u5176\u4ed6\u4e24\u4e2a\u901a\u9053\u503c\u51cf\u5c11\uff1b<br \/>\n&#8211; \u5bf9\u4e8e\u8d1f\u5411\u7684\u8c03\u6574\uff0c\u6bd4\u5982\u540c\u6837\u53ea\u8c03\u6574\u7ea2\u8272 -50\uff0c\u9ad8\u5149\u7684\u5904\u7406\u7b97\u6cd5\u662f\u4e0d\u53d8\u7ea2\u8272\u901a\u9053\u503c\uff0c\u5176\u4ed6\u4e24\u4e2a\u901a\u9053\u503c\u589e\u52a0\uff1b\u800c\u9634\u5f71\u7684\u5904\u7406\u7b97\u6cd5\u662f\u53ea\u51cf\u5c11\u7ea2\u8272\u901a\u9053\u503c\uff0c\u5176\u4ed6\u4e24\u4e2a\u901a\u9053\u503c\u4e0d\u53d8\uff1b<br \/>\n&#8211; \u76f8\u540c\u7684\u4e00\u70b9\u662f\uff0c\u4e24\u8fb9\u7684\u7b97\u6cd5\u770b\u8d77\u6765\u90fd\u662f\u4e00\u4e2a\u7ebf\u6027\u8c03\u6574\u3002<\/p>\n<p>\u65e2\u7136\u662f\u7ebf\u6027\u8c03\u6574\uff0c\u5bf9\u9ad8\u5149\u7b97\u6cd5\u800c\u8a00\uff0c\u4e00\u5b9a\u8fc7\u539f\u70b9\uff0c\u6240\u4ee5\u51fd\u6570\u5f62\u5f0f\u4e3a<br \/>\n<span class=\"MJX_Assistive_MathML\" role=\"presentation\"><math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mi>y<\/mi><mo>=<\/mo><mfrac><mi>x<\/mi><mrow><mn>1<\/mn><mo>\u2212<\/mo><mi>c<\/mi><\/mrow><\/mfrac><\/math><\/span><br \/>\n\u5176\u4e2d c \u662f\u300c\u6a2a\u622a\u8ddd\u300d\uff0c\u5c31\u662f\u53f3\u7aef\u70b9\u79fb\u52a8\u7684\u591a\u5c11\uff0c\u5f88\u663e\u7136\uff0c\u8c03\u6574\u5f3a\u5ea6\u8d8a\u5927\uff0c\u53f3\u7aef\u70b9\u79fb\u52a8\u8d8a\u591a\uff0cc \u4e5f\u8d8a\u5927\uff1b<br \/>\n\u800c\u5bf9\u4e8e\u9634\u5f71\u8c03\u6574\u7b97\u6cd5\uff0c\u7c7b\u4f3c\u7684\u53ef\u4ee5\u5199\u6210<br \/>\n<span class=\"MJX_Assistive_MathML\" role=\"presentation\"><math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mi>y<\/mi><mo>=<\/mo><mfrac><mrow><mi>x<\/mi><mo>\u2212<\/mo><mi>c<\/mi><\/mrow><mrow><mn>1<\/mn><mo>\u2212<\/mo><mi>c<\/mi><\/mrow><\/mfrac><\/math><\/span><\/p>\n<p>\u8fd9\u91cc c \u7684\u542b\u4e49\u7c7b\u4f3c\uff0c\u53ea\u662f\u7528\u6765\u8861\u91cf\u5de6\u7aef\u70b9\u79fb\u52a8\u7684\u8ddd\u79bb\uff0c\u8c03\u6574\u7684\u5f3a\u5ea6\u8d8a\u5927\uff0c\u5de6\u7aef\u70b9\u79fb\u52a8\u8d8a\u591a\uff0cc \u4e5f\u8d8a\u5927\u3002<\/p>\n<p>\u5269\u4e0b\u7684\u95ee\u9898\u5c31\u662f\uff0c\u8fd9\u4e2a c \u503c\u4e0e\u6ed1\u5757\u53c2\u6570\u4e4b\u95f4\u6709\u4ec0\u4e48\u5173\u7cfb\u3002\u7ecf\u8fc7\u5b9e\u9a8c\uff0c\u53d1\u73b0 c \u503c\u548c\u6ed1\u5757\u503c\u4e4b\u95f4\u4e5f\u662f\u4e00\u4e2a\u7ebf\u6027\u5173\u7cfb<br \/>\n<img decoding=\"async\" src=\"https:\/\/docs.skyvis.top\/wp-content\/uploads\/2025\/01\/balance7-300x225.jpg\" alt=\"\" \/><\/p>\n<p>\u9ad8\u5149\u9634\u5f71\u53c2\u6570 c \u968f\u6ed1\u5757\u53c2\u6570 v \u7684\u53d8\u5316\u60c5\u51b5<br \/>\n\u6240\u4ee5\uff0c\u9ad8\u5149\u548c\u9634\u5f71\u7684\u7b97\u6cd5\u53ef\u4ee5\u603b\u7ed3\u5982\u4e0b\uff1a<\/p>\n<p>\u9ad8\u5149\u90e8\u5206\uff1a<span class=\"MJX_Assistive_MathML\" role=\"presentation\"><math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mi>y<\/mi><mo>=<\/mo><mo movablelimits=\"true\" form=\"prefix\">min<\/mo><mrow><mo>{<\/mo><mfrac><mi>x<\/mi><mrow><mn>1<\/mn><mo>\u2212<\/mo><mi>c<\/mi><\/mrow><\/mfrac><mo>,<\/mo><mn>1<\/mn><mo>}<\/mo><\/mrow><mo>,<\/mo><mspace width=\"thickmathspace\"><\/mspace><mspace width=\"thickmathspace\"><\/mspace><mtext>where\u00a0<\/mtext><mi>c<\/mi><mo>=<\/mo><mn>0.003923<\/mn><mspace width=\"thinmathspace\"><\/mspace><mi>v<\/mi><\/math><\/span><br \/>\n\u9634\u5f71\u90e8\u5206\uff1a<span class=\"MJX_Assistive_MathML\" role=\"presentation\"><math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\"><mi>y<\/mi><mo>=<\/mo><mo movablelimits=\"true\" form=\"prefix\">max<\/mo><mrow><mo>{<\/mo><mfrac><mrow><mi>x<\/mi><mo>\u2212<\/mo><mi>c<\/mi><\/mrow><mrow><mn>1<\/mn><mo>\u2212<\/mo><mi>c<\/mi><\/mrow><\/mfrac><mo>,<\/mo><mn>0<\/mn><mo>}<\/mo><\/mrow><mo>,<\/mo><mspace width=\"thickmathspace\"><\/mspace><mspace width=\"thickmathspace\"><\/mspace><mtext>where\u00a0<\/mtext><mi>c<\/mi><mo>=<\/mo><mn>0.003923<\/mn><mspace width=\"thinmathspace\"><\/mspace><mi>v<\/mi><\/math><\/span><\/p>\n<h3>4. \u4ee3\u7801\uff08matlab \u7248\u672c\uff09<\/h3>\n<p>\u4ee3\u7801\u4e2d\u6709\u4e00\u4e9b\u53d8\u91cf\u540d\u548c\u6587\u7ae0\u4e2d\u4e0d\u4e00\u6837\uff08\u6bd4\u5982 alpha \/ gamma \u4ec0\u4e48\u7684\uff09\u2026\u61d2\u5f97\u6539\u4e86\uff0c\u5c31\u8fd9\u6837\u5427<\/p>\n<pre><code class=\"language-matlab line-numbers\">clear; close all; clc;\n\n% Coefficients may be not normalized\nshadows_coef = [0, -20, 30];\nmidtones_coef = [-20, 20, 0];\nhighlights_coef = [15, 0, -20];\n\n% Normalize these coefficients\ntmp = sort(shadows_coef);\nshadows_coef = shadows_coef - tmp(2);\ntmp = sort(midtones_coef);\nmidtones_coef = midtones_coef - tmp(2);\ntmp = sort(highlights_coef);\nhighlights_coef = highlights_coef - tmp(2);\n\n% Read an image\nimg1 = im2double(imread('lut0.png'));\nimg2 = img1;\n\n% Do highlights\nhighlights_alpha = 0.0039230 * highlights_coef;\nhighlights_alpha = diag(highlights_alpha .* (highlights_alpha &gt; 0)) * ...\n    [1, 0, 0; 0, 1, 0; 0, 0, 1] + ...\n    diag(-highlights_alpha .* (highlights_alpha &lt; 0)) * ...\n    [0, 1, 1; 1, 0, 1; 1, 1, 0];\nhighlights_alpha = sum(highlights_alpha);\nimg2 = bsxfun(@(a, b)a .\/ (1 - b), ...\n    img2, reshape(highlights_alpha, [1, 1, 3]));\nimg2 = min(max(img2, 0), 1);    % Clamp to 0 and 1\n\n% Do shadows\nshadows_alpha = 0.0039230 * shadows_coef;\nshadows_alpha = diag(-shadows_alpha .* (shadows_alpha &lt; 0)) * ...\n    [1, 0, 0; 0, 1, 0; 0, 0, 1] + ...\n    diag(shadows_alpha .* (shadows_alpha &gt; 0)) * ...\n    [0, 1, 1; 1, 0, 1; 1, 1, 0];\nshadows_alpha = sum(shadows_alpha);\nimg2 = bsxfun(@(a, b)(a - b) .\/ (1 - b), ...\n    img2, reshape(shadows_alpha, [1, 1, 3]));\nimg2 = min(max(img2, 0), 1);    % Clamp to 0 and 1\n\n% Do midtones\nmidtones_gamma = exp(sum(diag(-0.0033944 * midtones_coef) * ...\n    [1, -1, -1; -1, 1, -1; -1, -1, 1]));\nimg2 = bsxfun(@power, img2, ...\n    reshape(midtones_gamma, [1, 1, 3]));\nimg2 = min(max(img2, 0), 1);    % Clamp to 0 and 1\n\nfigure(1); clf;\nimshow(img2);\n<\/code><\/pre>\n<p>\u73b0\u5728\uff0c\u4f60\u4e5f\u53ef\u4ee5\u7528 matlab \u5b8c\u7f8e\u5b9e\u73b0\u8272\u5f69\u5e73\u8861\u529f\u80fd\u4e86~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Photoshop \u4e2d\u6709\u8272\u5f69\u5e73&hellip;<\/p>\n","protected":false},"author":1,"featured_media":99,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-98","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-10"],"_links":{"self":[{"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":5,"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":110,"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/posts\/98\/revisions\/110"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/media\/99"}],"wp:attachment":[{"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.skyvis.top\/index.php\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}