<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ni4muraano</author_name>
  <author_url>https://blog.hatena.ne.jp/ni4muraano/</author_url>
  <blog_title>旅行好きなソフトエンジニアの備忘録</blog_title>
  <blog_url>https://ni4muraano.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>OpenCvSharp</anon>
  </categories>
  <description>C++のDLLからJPEGにエンコードされた画像データ（型はunsinged charのポインタ）が送られてくるので、それをC#側でbyteポインタで受け取りbyte[]に変換後、OpenCvSharpのMatに変換したかった話です。調べてみるとOpenCvSharpにはImDecodeというメソッドがあり、それを使えば良いだけでした。 // bytesの型はbyte[] Mat mat = Cv2.ImDecode(bytes, ImreadModes.Color); github.com</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fni4muraano.hatenablog.com%2Fentry%2F2018%2F05%2F22%2F215316&quot; title=&quot;【C#】エンコードされたbyte配列をMatに変換する - 旅行好きなソフトエンジニアの備忘録&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>2018-05-22 21:53:16</published>
  <title>【C#】エンコードされたbyte配列をMatに変換する</title>
  <type>rich</type>
  <url>https://ni4muraano.hatenablog.com/entry/2018/05/22/215316</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
