Re: [Scilab-users] IPCV upscaling of image

2020-12-20 Thread P M
Dear Claus,

you need to feed a list into imsuperres()not directly the image.
Following should work.

imgList = list();imgList(1) = imread('path_to_image');imgOut  =
imsuperres(imgList);
figure();imshow(imgList(1));figure();imshow(imgOut);

BR
Philipp


Am So., 20. Dez. 2020 um 19:42 Uhr schrieb Claus Futtrup :

> Hi there
>
> I have a 4K picture, which I thought I'll try to upscale with the
> imsuperres in the IPCV toolbox. The code simply looks like this:
>
> imagefile = 'D:\Userdata\Claus\Pictures\Think_Global_4K.png';
> im = imread(imagefile);
> imout  = imsuperres(im);
>
> The file is read and I get the following response: Unsigned Integer 8
> bits (2160 x 3840). Then Scilab crashes. I'm running Scilab 6.1.0 (the
> original release) on Windows 10 - in a MS Windows dialog box I get:
>
>  >Scilab 6.1.0 (Desktop) has stopped working
>
>  >A problem caused the program to stop working correctly. Windows will
> close the program and notify you if a solution is available.
>
> I am not sure that I've understood how to use imsuperres correctly. I
> see in the _params that rfactor = 4 is the default, so I was expecting
> the image to be scaled by a factor 4 (maybe that's 2 x 2 = I get an 8K
> image = 4320 x 7680 pixels). The way I understand the documentation, I
> don't need to run imsuperres_params if I'm satisified with the defaults.
>
> Kind regards,
>
> Claus
>
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] IPCV upscaling of image

2020-12-20 Thread Claus Futtrup

Hi there

I have a 4K picture, which I thought I'll try to upscale with the 
imsuperres in the IPCV toolbox. The code simply looks like this:


imagefile = 'D:\Userdata\Claus\Pictures\Think_Global_4K.png';
im = imread(imagefile);
imout  = imsuperres(im);

The file is read and I get the following response: Unsigned Integer 8 
bits (2160 x 3840). Then Scilab crashes. I'm running Scilab 6.1.0 (the 
original release) on Windows 10 - in a MS Windows dialog box I get:


>Scilab 6.1.0 (Desktop) has stopped working

>A problem caused the program to stop working correctly. Windows will 
close the program and notify you if a solution is available.


I am not sure that I've understood how to use imsuperres correctly. I 
see in the _params that rfactor = 4 is the default, so I was expecting 
the image to be scaled by a factor 4 (maybe that's 2 x 2 = I get an 8K 
image = 4320 x 7680 pixels). The way I understand the documentation, I 
don't need to run imsuperres_params if I'm satisified with the defaults.


Kind regards,

Claus

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Increasing Scilab default Java heap memory to 512 MB?

2020-12-20 Thread Antoine Monmayrant


On 19/12/2020 16:24, Samuel Gougeon wrote:

Le 16/12/2020 à 14:16, Antoine Monmayrant a écrit :


That's the very first thing we change after installing scilab on all 
the computers in our group, so I agree we need to change it.


I conclude that 512 MB is enough. Otherwise you would not have 
experienced and reported the issue.

Wait, what?
I don't see how you conclude 512 is enough?

In my case, I set it to 2GB:



A patch with this value is submitted for Scilab 6.1.1 @ 
https://codereview.scilab.org/21650


Cool!

Antoine



Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Problem with dos function

2020-12-20 Thread arctica1963
Same issue with console-only Scilab: Scilex,exe and WScilex-cli.exe.

For reference, GMT can be installed from
https://www.generic-mapping-tools.org/
Using Win64 version
https://github.com/GenericMappingTools/gmt/releases/tag/6.1.1

Lester





--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users