<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pongsuke</author_name>
  <author_url>https://blog.hatena.ne.jp/pongsuke/</author_url>
  <blog_title>機械学習備忘録</blog_title>
  <blog_url>https://pongsuke.hatenadiary.jp/</blog_url>
  <categories>
    <anon>opencv</anon>
  </categories>
  <description>鮮鋭化 / アンシャープマスキング を行います。 チュートリアルには登場しないし、専用の関数も無いのですが、cvFilter2D で、kernel にマイナスを使用して適用することで実現するようです。 filter2D 使用するカーネルは 0, −1, 0 −1, 5, −1, 0, −1, 0 −1, −1, −1 −1, 9, −1, −1, −1, −1 などです。 結果 オリジナル 4近傍 8近傍 #!/usr/bin/env python # -*- coding: utf-8 -* import sys import cv2 import numpy as np def main(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpongsuke.hatenadiary.jp%2Fentry%2F2018%2F03%2F27%2F130251&quot; title=&quot;opencv で 鮮鋭化 - 機械学習備忘録&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>https://cdn-ak.f.st-hatena.com/images/fotolife/p/pongsuke/20180327/20180327143130.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-03-27 13:02:51</published>
  <title>opencv で 鮮鋭化</title>
  <type>rich</type>
  <url>https://pongsuke.hatenadiary.jp/entry/2018/03/27/130251</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
