<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hi Philipp</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">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 class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Best regards,</div>
    <div class="moz-cite-prefix">Claus</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 20-12-2020 22:55, P M wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACf7ODu9LxfNhQOcfgvScO9Cc=z3RMegc+uXUP6h8RC+2Gdg6w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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 class="gmail-refsection">
            <div class="gmail-programlisting">
              <table width="100%" border="0">
                <tbody>
                  <tr>
                    <td width="98%">
                      <pre class="gmail-scilabcode"><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 class="gmail-scilabdefault">
<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" moz-do-not-send="true">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"
            moz-do-not-send="true">users@lists.scilab.org</a><br>
          <a href="http://lists.scilab.org/mailman/listinfo/users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.scilab.org/mailman/listinfo/users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>