title: Undefined function or variable 'BufferedImageLuminanceSource'
body: <p>I recently used <code>decode_qr</code> from <a href="https://ch.mathworks.com/matlabcentral/fileexchange/29239-qr-code-encode-and-decode" rel="nofollow noreferrer" title="QR Code encode and decode">this FEX submission</a> to decode my QR code. It ran quite well one or two weeks ago, but today it generate an error for me: </p>
  
  <pre class="lang-none prettyprint-override"><code>Undefined function or variable 'BufferedImageLuminanceSource'
  Error in decode_qr (line 34);
  source = BufferedImageLuminanceSource(jig);
  </code></pre>
  
  <p>I just checked the <a href="https://github.com/zxing/zxing" rel="nofollow noreferrer">zxing repository</a> and found that some files were updated several days ago. So I guess the path of some imported file from the package has been changed.</p>
  
  <p>Here is the importing code from the <code>decode_qr</code> function:</p>
  
  <pre class="lang-matlab prettyprint-override"><code>import com.google.zxing.qrcode.*;
  import com.google.zxing.client.j2se.*;
  import com.google.zxing.*;
  import com.google.zxing.common.*;
  import com.google.zxing.Result.*;
  </code></pre>
  
  <p>How can I get it to work again? Do I need to change the import paths?</p>