【鼎革‧革鼎】︰ Raspbian Stretch 《六之 C.2 》

幸而一會兒 pip3 安裝回復了正常?【※ 果真網路因素耶??】得以安裝 ColorPy 驗證測試︰

pi@raspberrypi:~ ipython3 --pylab Python 3.5.3 (default, Jan 19 2017, 14:11:04)  Type "copyright", "credits" or "license" for more information.  IPython 5.1.0 -- An enhanced Interactive Python. ?         -> Introduction and overview of IPython's features. %quickref -> Quick reference. help      -> Python's own help system. object?   -> Details about 'object', use 'object??' for extra details. Using matplotlib backend: TkAgg  In [1]: import colorpy.plots  In [2]: colorpy.plots.visible_spectrum_plot () Saving plot VisibleSpectrum  In [3]: colorpy.plots.cie_matching_functions_plot() Saving plot CIEXYZ_Matching  In [4]: 鯊魚翅 = colorpy.plots.shark_fin_plot () Saving plot ChromaticityDiagram </pre> <img class="alignnone size-full wp-image-77798" src="http://www.freesandal.org/wp-content/uploads/VisibleSpectrum.png" alt="" width="640" height="480" />  <img class="alignnone size-full wp-image-77799" src="http://www.freesandal.org/wp-content/uploads/CIEXYZ_Matching.png" alt="" width="640" height="480" />  <img class="alignnone size-full wp-image-77800" src="http://www.freesandal.org/wp-content/uploads/ChromaticityDiagram.png" alt="" width="640" height="480" />     <span style="color: #666699;">結果沒發現有什麼色彩問題也!後詳讀</span>  <span style="color: #ff9900;">edid-decode edid.dat</span>  <span style="color: #666699;">解碼內容︰</span>  <span style="color: #808080;">CEA extension block</span> <span style="color: #808080;"> Extension version: 3</span> <span style="color: #808080;"> 37 bytes of CEA data</span> <span style="color: #808080;"> Video data block</span> <span style="color: #808080;"> VIC 16 1920x1080@60Hz (native)</span> <span style="color: #808080;"> VIC 5 1920x1080i@60Hz</span> <span style="color: #808080;"> VIC 4 1280x720@60Hz</span> <span style="color: #808080;"> VIC 3 720x480@60Hz</span> <span style="color: #808080;"> VIC 2 720x480@60Hz</span> <span style="color: #808080;"> VIC 7 1440x480i@60Hz</span> <span style="color: #808080;"> VIC 22 1440x576i@50Hz</span> <span style="color: #808080;"> VIC 1 640x480@60Hz</span> <span style="color: #808080;"> VIC 31 1920x1080@50Hz</span> <span style="color: #808080;"> VIC 18 720x576@50Hz</span> <span style="color: #808080;"> VIC 19 1280x720@50Hz</span> <span style="color: #808080;"> VIC 20 1920x1080i@50Hz</span> <span style="color: #808080;"> VIC 32 1920x1080@24Hz</span> <span style="color: #808080;"> VIC 21 1440x576i@50Hz</span> <span style="color: #808080;"> VIC 17 720x576@50Hz</span> <span style="color: #808080;"> VIC 6 1440x480i@60Hz</span> <span style="color: #808080;"> Audio data block</span> <span style="color: #808080;"> Linear PCM, max channels 2</span> <span style="color: #808080;"> Supported sample rates (kHz): 48 44.1 32</span> <span style="color: #808080;"> Supported sample sizes (bits): 24 20 16</span> <span style="color: #808080;"> Vendor-specific data block, OUI 000c03 (HDMI)</span> <span style="color: #808080;"> Source physical address 1.0.0.0</span> <span style="color: #808080;"> DC_36bit</span> <span style="color: #808080;"> DC_30bit</span> <span style="color: #808080;"> DC_Y444</span> <span style="color: #808080;"> Maximum TMDS clock: 225MHz</span> <span style="color: #808080;"> Speaker allocation data block</span> <span style="color: #808080;"> Speaker map: FL/FR</span> <span style="color: #ff9900;"> Extended tag: Colorimetry data block</span> <span style="color: #ff9900;"> xvYCC601</span> <span style="color: #ff9900;"> xvYCC709</span>     <span style="color: #666699;">原來還滿高級的呢!!</span> <h1 id="firstHeading" class="firstHeading" lang="en"><span style="color: #ff9900;"><a style="color: #ff9900;" href="https://en.wikipedia.org/wiki/XvYCC">xvYCC</a></span></h1> <img class="alignnone size-full wp-image-77807" src="http://www.freesandal.org/wp-content/uploads/220px-XvColor_Final.svg.png" alt="" width="220" height="50" />  <span style="color: #808080;"><b>xvYCC</b> or Extended-<a style="color: #808080;" title="Gamut" href="https://en.wikipedia.org/wiki/Gamut">gamut</a> <a style="color: #808080;" title="YCbCr" href="https://en.wikipedia.org/wiki/YCbCr">YCC</a> (also <b>x.v.Color</b>) is a <a style="color: #808080;" title="Color space" href="https://en.wikipedia.org/wiki/Color_space">color space</a> that can be used in the <a style="color: #808080;" title="Video" href="https://en.wikipedia.org/wiki/Video">video</a> electronics of television sets to support a <a style="color: #808080;" title="Gamut" href="https://en.wikipedia.org/wiki/Gamut">gamut</a> 1.8 times as large as that of the <a class="mw-redirect" style="color: #808080;" title="SRGB color space" href="https://en.wikipedia.org/wiki/SRGB_color_space">sRGB color space</a>.<sup id="cite_ref-1" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-1">[1]</a></sup> xvYCC was proposed by <a style="color: #808080;" title="Sony" href="https://en.wikipedia.org/wiki/Sony">Sony</a>,<sup id="cite_ref-SonyGlobal_2-0" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyGlobal-2">[2]</a></sup> specified by the <a style="color: #808080;" title="International Electrotechnical Commission" href="https://en.wikipedia.org/wiki/International_Electrotechnical_Commission">IEC</a> in October 2005 and published in January 2006 as <a class="mw-redirect" style="color: #808080;" title="List of IEC standards" href="https://en.wikipedia.org/wiki/List_of_IEC_standards">IEC 61966-2-4</a>.</span>  <span style="color: #808080;">xvYCC was motivated by the fact that modern display and capture technologies often have underlying <a class="mw-redirect" style="color: #808080;" title="RGB" href="https://en.wikipedia.org/wiki/RGB">RGB</a> primaries with significantly higher saturation than the traditional <a style="color: #808080;" title="Cathode ray tube" href="https://en.wikipedia.org/wiki/Cathode_ray_tube">CRT</a> displays, allowing them to handle a wider color gamut. But these devices have been unable to do this without upsetting basic calibration, as all existing video storage and transmission systems are based on CRT primaries, and are hence limited to the CRT gamut.<sup id="cite_ref-3" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-3">[3]</a></sup></span>  <span style="color: #808080;">xvYCC-encoded video retains the same color primaries and white point as <a style="color: #808080;" title="Rec. 709" href="https://en.wikipedia.org/wiki/Rec._709">BT.709</a>, and uses either a <a class="mw-redirect" style="color: #808080;" title="BT.601" href="https://en.wikipedia.org/wiki/BT.601">BT.601</a> or BT.709 RGB-to-YCC conversion matrix and encoding.<sup id="cite_ref-SonyGlobal_2-1" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyGlobal-2">[2]</a></sup> This allows it to travel through existing digital YCC data paths, and any colors within the normal gamut will be compatible.<sup id="cite_ref-SonyGlobal_2-2" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyGlobal-2">[2]</a></sup></span>  <span style="color: #808080;">The xvYCC color space permits YCC values that, while within the encoding range of YCC, have chroma values outside the range 16-240, or that correspond to negative RGB values, and hence would not have previously been valid.<sup id="cite_ref-SonyGlobal_2-3" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyGlobal-2">[2]</a></sup> These are used to encode more saturated colors.<sup id="cite_ref-SonyGlobal_2-4" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyGlobal-2">[2]</a></sup> For example, a cyan that lies outside the basic gamut of the primaries can be encoded as "green plus blue minus red".<sup id="cite_ref-SonyGlobal_2-5" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyGlobal-2">[2]</a></sup></span>  <span style="color: #808080;">These extra-gamut colors can then be displayed by a device whose underlying technology is not limited by the standard primaries.<sup id="cite_ref-SonyGlobal_2-6" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyGlobal-2">[2]</a></sup></span>  <span style="color: #808080;">In a paper published by <a style="color: #808080;" title="Society for Information Display" href="https://en.wikipedia.org/wiki/Society_for_Information_Display">Society for Information Display</a> in 2006, the authors mapped the 769 colors in the <a style="color: #808080;" title="Munsell color system" href="https://en.wikipedia.org/wiki/Munsell_color_system">Munsell Color Cascade</a> to the BT.709 space and to the xvYCC space. 55% of the Munsell colors could be mapped to the sRGB <a style="color: #808080;" title="Gamut" href="https://en.wikipedia.org/wiki/Gamut">gamut</a>, but 100% of those colors could map to the xvYCC gamut.<sup id="cite_ref-4" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-4">[4]</a></sup> Deeper hues can be created - for example a deeper red by giving the opposing color (cyan) a negative coefficient.</span>  <span style="color: #808080;">A mechanism for signaling xvYCC support and transmitting the gamut boundary definition for xvYCC has been defined in the <a style="color: #808080;" title="HDMI" href="https://en.wikipedia.org/wiki/HDMI">HDMI</a> 1.3 Specification. No new mechanism is required for transmitting the xvYCC data itself, as it is compatible with HDMI's existing <a style="color: #808080;" title="YCbCr" href="https://en.wikipedia.org/wiki/YCbCr">YCbCr</a> formats, but the display needs to signal its readiness to accept the extra-gamut xvYCC values, and the source needs to signal the actual gamut in use to help the display to intelligently adapt extreme colors to its own gamut limitations.</span>  <span style="color: #808080;">This should not be confused with HDMI 1.3's other new color feature, <a class="mw-redirect" style="color: #808080;" title="Deep color" href="https://en.wikipedia.org/wiki/Deep_color">deep color</a>. This is a separate feature that increases the precision of brightness and color information, and is independent of xvYCC.</span>  <span style="color: #808080;">xvYCC is not supported by <a style="color: #808080;" title="DVD-Video" href="https://en.wikipedia.org/wiki/DVD-Video">DVD-Video</a> but is supported by the high-definition recording format <a style="color: #808080;" title="AVCHD" href="https://en.wikipedia.org/wiki/AVCHD">AVCHD</a> and <a style="color: #808080;" title="PlayStation 3" href="https://en.wikipedia.org/wiki/PlayStation_3">PlayStation 3</a>.</span>  <span style="color: #808080;">On January 7, 2013, Sony announced that it would release "Mastered in 4K" <a class="mw-redirect" style="color: #808080;" title="Blu-ray Disc" href="https://en.wikipedia.org/wiki/Blu-ray_Disc">Blu-ray Disc</a> titles which are sourced at 4K and encoded at <a style="color: #808080;" title="1080p" href="https://en.wikipedia.org/wiki/1080p">1080p</a>.<sup id="cite_ref-SonyMastered4K2013JanuaryEngadget_5-0" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyMastered4K2013JanuaryEngadget-5">[5]</a></sup> "Mastered in 4K" Blu-ray Disc titles can be played on existing Blu-ray Disc players and will support a larger color space using xvYCC.<sup id="cite_ref-SonyMastered4K2013JanuaryEngadget_5-1" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyMastered4K2013JanuaryEngadget-5">[5]</a></sup><sup id="cite_ref-SonyMastered4K2013MayCNET_6-0" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyMastered4K2013MayCNET-6">[6]</a></sup></span>  <span style="color: #808080;">On May 30, 2013, Eye IO announced that their encoding technology was licensed by <a class="mw-redirect" style="color: #808080;" title="Sony Pictures Entertainment" href="https://en.wikipedia.org/wiki/Sony_Pictures_Entertainment">Sony Pictures Entertainment</a> to deliver 4K Ultra HD video.<sup id="cite_ref-SonyEyeIOMay2013EyeIO_7-0" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyEyeIOMay2013EyeIO-7">[7]</a></sup><sup id="cite_ref-SonyEyeIOMay2013Variety_8-0" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyEyeIOMay2013Variety-8">[8]</a></sup> Eye IO encodes their video assets at 3840 x 2160 and includes support for the xvYCC color space.<sup id="cite_ref-SonyEyeIOMay2013EyeIO_7-1" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyEyeIOMay2013EyeIO-7">[7]</a></sup><sup id="cite_ref-SonyEyeIOMay2013Variety_8-1" class="reference"><a style="color: #808080;" href="https://en.wikipedia.org/wiki/XvYCC#cite_note-SonyEyeIOMay2013Variety-8">[8]</a></sup></span>     <span style="color: #666699;">其實樹莓派 PIXEL 桌面並沒用<a style="color: #666699;" href="https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=80394">色彩管理</a>程式</span> <pre class="lang:default decode:true">pi@raspberrypi:~ xprop -display :0.0 -len 14 -root _ICC_PROFILE
_ICC_PROFILE:  no such atom on any window.
pi@raspberrypi:~ </pre>    <span style="color: #666699;">。有興趣者或可從</span>  <span style="font-size: 18pt; color: #666699;"><a style="color: #666699;" href="https://github.com/agalakhov/xiccd">xiccd</a></span>  <span style="color: #808080;">xiccd is a simple bridge between colord and X. It does the following tasks:</span>  <span style="color: #808080;">* Enumerates displays and register them in colord;</span> <span style="color: #808080;"> * Creates default ICC profiles based on EDID data;</span> <span style="color: #808080;"> * Applies ICC profiles provided by colord;</span> <span style="color: #808080;"> * Maintains user's private ICC storage directory.</span>  <span style="color: #808080;">It does basically the same as gnome-settings-daemon color plugin or colord-kde</span> <span style="color: #808080;">but does not depend on any particular desktop. It even doesn't depend on GTK so</span> <span style="color: #808080;">it doesn't create useless GTK3 dependency if the desktop environment is GTK2-based</span> <span style="color: #808080;">or vice versa. The primary goal of xiccd is providing color profile support for</span> <span style="color: #808080;">desktop environments other than Gnome and KDE (Xfce, LXDE and probably others) that</span> <span style="color: #808080;">do not support native color management yet. It is however not meant to be excuse </span><span style="color: #808080;">of not adding native color management to the session daemons of them.</span>  <span style="color: #808080;">xiccd is distributed under the terms of GNU General Public License version 3 or later.</span>  <span style="color: #666699;"> </span>  <span style="color: #666699;">入手︰</span> <pre class="lang:default decode:true">pi@raspberrypi:~ apt-cache search xiccd
xiccd - X color management daemon
pi@raspberrypi:~ $

 

且玩玩 xcalib 哩◎

XCALIB(1) xcalib XCALIB(1)

NAME
xcalib – Tiny monitor calibration loader for Xorg.

SYNOPSIS
xcalib [-options] ICCPROFILE

DESCRIPTION
xcalib loads ‘vcgt’-tag of ICC profiles to the X-server using the XVid‐
Mode Extension in order to calibrate your display.

OPTIONS
-d, -display <host:dpy>

-s, -screen <screen-#>

-c, -clear

-n, -noaction

-v, -verbose