<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"><br><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><br><br><font face="arial,sans-serif">BR<br>Philipp<br></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">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>