<div dir="ltr"><div>Dear Claus,</div><div><br></div><div>the example did not include saving the image as a file.<br></div><div><br></div><div>Best guesses:</div><div>- use imwrite <br></div><div>- use one of the xs2...-functions (e.g.: xs2bmp)</div><div><br></div><div>BR</div><div>Philipp<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 21. Dez. 2020 um 09:20 Uhr schrieb Claus Futtrup <<a href="mailto:cfuttrup@gmail.com">cfuttrup@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <div>Hi Philipp</div>
    <div><br>
    </div>
    <div>I see, thank you for explaining it to
      me. I also see that the upscale is not 2x2 = 4, but it is 4x4 so
      the upscaled image is huge. The output file is saved - I believe -
      in wherever your Scilab file browser is currently active.<br>
    </div>
    <div><br>
    </div>
    <div>Best regards,</div>
    <div>Claus</div>
    <div><br>
    </div>
    <div>On 20-12-2020 22:55, P M wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>Dear Claus,</div>
        <div><br>
        </div>
        <div>you need to feed a list into imsuperres()....not directly
          the image.</div>
        <div>Following should work.</div>
        <div>
          <div>
            <div>
              <table width="100%" border="0">
                <tbody>
                  <tr>
                    <td width="98%">
                      <pre><span style="color:rgb(0,0,0)">imgList</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">list</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">imgList</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">1</span><span style="color:rgb(74,85,219)">)</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(0,0,0)">imread</span><span style="color:rgb(74,85,219)">('path_to_image'</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">imgOut</span>  <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(0,0,0)">imsuperres</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">imgList</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span>
<span style="color:rgb(50,185,185)">figure</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">imshow</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">imgList</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">1</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(50,185,185)">figure</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">imshow</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">imgOut</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>

<font face="arial,sans-serif">BR
Philipp
</font></span></pre>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Am So., 20. Dez. 2020 um
          19:42 Uhr schrieb Claus Futtrup <<a href="mailto:cfuttrup@gmail.com" target="_blank">cfuttrup@gmail.com</a>>:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi
          there<br>
          <br>
          I have a 4K picture, which I thought I'll try to upscale with
          the <br>
          imsuperres in the IPCV toolbox. The code simply looks like
          this:<br>
          <br>
          imagefile = 'D:\Userdata\Claus\Pictures\Think_Global_4K.png';<br>
          im = imread(imagefile);<br>
          imout  = imsuperres(im);<br>
          <br>
          The file is read and I get the following response: Unsigned
          Integer 8 <br>
          bits (2160 x 3840). Then Scilab crashes. I'm running Scilab
          6.1.0 (the <br>
          original release) on Windows 10 - in a MS Windows dialog box I
          get:<br>
          <br>
           >Scilab 6.1.0 (Desktop) has stopped working<br>
          <br>
           >A problem caused the program to stop working correctly.
          Windows will <br>
          close the program and notify you if a solution is available.<br>
          <br>
          I am not sure that I've understood how to use imsuperres
          correctly. I <br>
          see in the _params that rfactor = 4 is the default, so I was
          expecting <br>
          the image to be scaled by a factor 4 (maybe that's 2 x 2 = I
          get an 8K <br>
          image = 4320 x 7680 pixels). The way I understand the
          documentation, I <br>
          don't need to run imsuperres_params if I'm satisified with the
          defaults.<br>
          <br>
          Kind regards,<br>
          <br>
          Claus<br>
          <br>
          _______________________________________________<br>
          users mailing list<br>
          <a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
          <a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
users mailing list
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </div>

_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>