<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sygh</author_name>
  <author_url>https://blog.hatena.ne.jp/sygh/</author_url>
  <blog_title>syghの新フラグメント置き場</blog_title>
  <blog_url>https://sygh.hatenadiary.jp/</blog_url>
  <categories>
    <anon>OpenCV</anon>
    <anon>プログラミングTips</anon>
    <anon>C++</anon>
  </categories>
  <description>OpenCVで画像ロードしてRGB→YCbCr変換して、特殊なカーネルコードにより輝度YをスケーリングしたのちYCbCr→RGBに戻す、というコードを書いてみました。つまりOpenCVのフィルター系関数や変換マトリックスは使ってません。単純に線形スケーリングするだけならばcvConvertScale()使えばいいと思うんですが。ちなみにHSB(HSV)の明度B(V)とYCbCrの輝度Yは似てますが意味が異なるので注意です*1。 なお、OpenCVのIPL画像は24bppの場合BGR,BGR,...の順で各8bitのカラーチャンネルが並んでます。Windowsビットマップと同じです。 IplIm…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsygh.hatenadiary.jp%2Fentry%2F2013%2F11%2F15%2F225510&quot; title=&quot;OpenCVの輝度スケーリング - syghの新フラグメント置き場&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-11-15 22:55:10</published>
  <title>OpenCVの輝度スケーリング</title>
  <type>rich</type>
  <url>https://sygh.hatenadiary.jp/entry/2013/11/15/225510</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
