title: How to prevent from reducing or losing values of pixels of a saved Python .mat file after loading in MatlabR2018b?
body: <p>I run an algorithm on a three-dimensional image in Python and its output was as a 3D image. Then, I saved the output (type:<code>ndarray</code>) using <code>scipy.io.savemat</code> to <code>.mat</code> format for Matlab.
  However, after loading the saved <code>.mat</code> file in Matlab the precision of its values is decreased.<br />
  Also, this problem occurs for a saved binary image (<code>ndarray</code>). That's mean some white pixels are lost after loading in Matlab (a pixel is 1 in Python but it becomes 0 after loading in Matlab).
  How to save or load a saved Python <code>.mat</code> file without reducing the precision or losing of its pixels in Matlab?</p>
  <p>Ex:</p>
  <p>Gray Level:</p>
  <pre><code>Python (ndarray and float64): I(206, 177) = 0.97226
  After loading in Mtalab (double): I(206, 177) = 0.8780
  </code></pre>
  <p>Binary:</p>
  <pre><code>Python (ndarray and int32): I(206, 177) = 1
  After loading in Mtalab (double): I(206, 177) = 0
  </code></pre>