<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Guernsey</author_name>
  <author_url>https://blog.hatena.ne.jp/Guernsey/</author_url>
  <blog_title>BiBoLoG</blog_title>
  <blog_url>https://guernsey.hatenadiary.org/</blog_url>
  <categories>
    <anon>MATLAB</anon>
  </categories>
  <description>and をとったら logical 型になってしまうでござる．bitand にしましょう．次元を合わせるため，bw を a に調整している． color = imread('color.png'); bw = imread('bw.png'); % b = bitand( color, bw); % happens error a(:,:,1) = bw; a(:,:,2) = bw; a(:,:,3) = bw; b = bitand( color, a); ある PC で実行したら MATLAB がエラー落ちしたでござる．別 PC で動作確認した．</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fguernsey.hatenadiary.org%2Fentry%2F20100206%2F1265438799&quot; title=&quot;画像のマスキング処理には bitand を使おう - BiBoLoG&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>2010-02-06 15:46:39</published>
  <title>画像のマスキング処理には bitand を使おう</title>
  <type>rich</type>
  <url>https://guernsey.hatenadiary.org/entry/20100206/1265438799</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
