Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : Image Processing and Computer Vision Toolbox details
Please login or create an account

Image Processing and Computer Vision Toolbox

A Module of Image Processing and Computer Vision Toolbox for Scilab 6.0
(49733 downloads for this version - 140861 downloads for all versions)
Details
Version
4.1.2
Author
Tan Chin Luh
Maintainer
Chin Luh Tan
Category
License
Creation Date
November 15, 2019
Source created on
Scilab 6.0.x
Binaries available on
Scilab 6.0.x:
Linux 64-bit MacOSX Windows 64-bit
Scilab 6.1.x:
Linux 64-bit MacOSX Windows 64-bit
Install command
--> atomsInstall("IPCV")
Description
            IPCV – Scilab Image Processing & Computer Vision, a module of Image
Processing and Computer Vision Toolbox for Scilab 6.0. Topics covered shown as
below, for details check out the functions summary in the download section.

•	Analytic Geometry 
•	Camera Handling 
•	Deep Learning 
•	Feature Detection, Description and Matching 
•	Filter Design and Visualization 
•	Image Analysis and Statistics 
•	Image Arithmetic 
•	Image Block Processing 
•	Image Enhancement and Restoration 
•	Image Linear Filtering 
•	Image Reading, Display and Exploration 
•	Image Registration and Image Fusion 
•	Image Stitching 
•	Image Transforms 
•	Image Types and Color Space Conversions 
•	Morphological Operations 
•	Object Detection 
•	Object Tracking 
•	ROI Processing 
•	Spatial Transformations 
•	Structural Analysis and Shape Descriptors 
•	Super Resolution 
•	Utilities and Interactive Tools 
•	Video Handling 

Updates on 4.1.2 (2019-11-15)
•	Deep learning inference = support for ONNX model 
•	Preparing support for upcoming module to integrate with libTorch (pytorch) 
•	Update lib to OPENCV 4.1.2            
Files (11)
[47.45 MB]
Linux 64-bit binary for Scilab 6.1.x
Same package with 6.0.2, should work under 6.1

[47.45 MB]
Linux 64-bit binary for Scilab 6.0.x
Compiled and tested under Ubuntu 18.04.2.

Requirement:

sudo apt-get install build-essential cmake unzip pkg-config libjpeg-dev
libpng-dev libtiff-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
libxvidcore-dev libx264-dev libgtk-3-dev libatlas-base-dev gfortran
libhdf5-serial-dev qt5-default libvtk7.1 libdc1394-22
[45.04 MB]
MacOSX binary for Scilab 6.1.x
Same package with 6.0.2, should work under 6.1

[45.04 MB]
MacOSX binary for Scilab 6.0.x

[13.54 MB]
Source code archive

[52.55 MB]
Windows 64-bit binary for Scilab 6.1.x
Windows Binary. If the libraries are not loaded, make sure you install
Microsoft
Visual C++ 2015 or 2017 Redistribute x64 package.

Same package with 6.0.2, tested working fine under 6.1
[52.55 MB]
Windows 64-bit binary for Scilab 6.0.x
Windows Binary. If the libraries are not loaded, make sure you install
Microsoft
Visual C++ 2015 or 2017 Redistribute x64 package.
[111.78 kB]
Miscellaneous file
IPCV for importing models from tensorflow, caffe, darknet, and ONNX. Upcoming
new module sciTorch will support pytorch model. 


[279 bytes]
Miscellaneous file
Script to patch IPCV for different Linux ditro. 
Usage:
1. Install IPCV using atomsInstall('IPCV') as usual
2. When launching IPCV, error similar to "Error : Can not load some
dependencies" shown.
3. Put this file and the patch file for your OS in the same folder.
4. Change the current directory to the one you place the files mentioned above
5. Load this function in Scilab console:
--> exec('ipcv_patch.sci') ;
6. Run the function with the patch zip file, for example:
--> ipcv_patch('patch_ubuntu1904.zip');

Restart Scilab and you should be able to load the IPCV. 
[75.63 MB]
Miscellaneous file
This is the extra dependencies for Ubuntu 1804, use it when apt-get does not
works for you.
[32.21 MB]
Miscellaneous file
This is the patches for Ubuntu 1904. It should work on 1910 as well.
News (5)
Comments (24)     Leave a comment 
Comment from Jayaprakash Mancikaraj -- November 28, 2019, 11:39:35 AM    
Hello,
Am Getting the below error while working on IPCV 6.0 
SWIG/Scilab: RuntimeError: the module is not initialized

what i need to do?
Help me.
Answer from Chin Luh Tan -- November 28, 2019, 12:51:52 PM    
Hi,

I am pretty sure this is the error from scicv. You might want to remove scicv or make it 
not loaded automatically from the atoms manager.

thanks.

rgds,
CL
Comment from Jayaprakash Mancikaraj -- November 28, 2019, 01:21:51 PM    
Hello,
        It worked , Thank you for your Support.
Regards,
Jay
Comment from Alexandre Englert -- December 27, 2019, 03:25:54 PM    
Hi, I am having trouble using ATOMS in Scilab 6.0.2 (Windows 7 64-bits). When using the
command "atomsGui", the following message pops up:
"No ATOMS module is available. Please, check your Internet connection or make sure
that your OS is compatible with ATOMS". 
What should I do?
I am new to Scilab and want to use the IPCV toolbox.
Thanks,
Alexandre
Answer from Chin Luh Tan -- December 27, 2019, 04:56:29 PM    
Hi,

the error message "No ATOMS module is available...." is the error message from
atoms 
module, not IPCV module, which means, you are not able to install any atoms modules from 
portal. 

there are couple of reasons for this error, I list down a few:

1. as suggested by the message, internet connection is always the main issue, since you 
said that you're new scilab user, I would like to let you know that you need to have 
internet connection to install any modules from atoms portal. 

2. if you're sure your internet do not have any issue, please make sure that the PC is not

behind any proxy.

3. if you're sure about all these, you could try to run atomsSystemUpdate first and the 
atomsGui again.

4. if everything fail, you could try to download the zip file, and perform offline 
installation by using command atomsInstall(zipfile).

Hope this helps.

rgds,
CL
Answer from Chin Luh Tan -- February 18, 2020, 02:53:53 AM    
Hi, have you solved your problem?

thanks.

rgds,
CL
Answer from Alexandre Englert -- March 24, 2020, 09:15:22 PM    
Dear Chin Luh,
Thank you very much for your help.
I tried to install the IPCV module from home (in my personal MacBook) and it worked! So it
seems the problem was that I was behind a proxy when connected from my work PC (i.e. number
2 from your list).
Kind regards,

Alexandre
Answer from Chin Luh Tan -- March 25, 2020, 01:59:07 AM    
Hi, great to hear that. hope the module helps. would you mind to change the rating if the 
problem resolved? thanks.
Comment from Mark Becker -- January 1, 2020, 11:29:23 PM    
#1: I think this a great package.  Thank you.  Double that by your inclusion of the
dependencies.  Not everyone does that, you did, and +10 Internetz.

#2: Am running Ubuntu 18.04 LTS 64-bit.  When installing the OpenCV libraries, the Ubuntu
installer places them into /usr/local/lib.  It can do that as it has root privileges for
doing installs.

Scilab does not, by default, have root privileges and the patch installer silently fails.

(scilab 6.0.2 has problems when installed to the system anyway; it seems to need write
permissions to places that aren't normally writable.  Known problem.  The workaround is to
install Scilab into a user directory).

Getting everything installed required running Scilab as root so it had write permissions to
/usr/local/lib .

Nice job.  Thanks.
Answer from Chin Luh Tan -- January 4, 2020, 07:30:06 AM    
Hi, 

Thanks for your comment, I would add the extra message for your #2 in the installation 
instruction for the patch.

rgds,
CL
Comment from Alexander Jameson -- February 18, 2020, 11:10:13 AM    
This comment has been deleted.
Answer from Chin Luh Tan -- February 26, 2020, 02:45:17 PM    
Hi sorry to overlooked your message as the message is quite messy. :)

About your problem:
1. First you did not mentioned what problem you faced (I tried to read the message, but..)
2. You seems to have issue with another module (scicv), not IPCV. 

Thanks.

rgds.
CL
Comment from Gauri Patil -- March 29, 2020, 11:01:00 AM    
trying to install IPCV-4.1.2-win64-bin.zip to scilab 6.0.2 but getting this erroe

atomsDownload: The downloaded file does not match the MD5SUM:
	 - file      :
'C:\Users\admin\AppData\Roaming\Scilab\scilab-6.0.2\atoms\x64\IPCV\IPCV-4.1.2-win64-bin.zip'
	 - MD5SUM expected : 'b693c2fe0f5538f6b8b0ce9183ad1939'
	 - MD5SUM watched  : '523dcf73fcb6ab05030be26b653b04b6'
at line   245 of function atomsDownload ( C:\Program
Files\scilab-6.0.2\modules\atoms\macros\atoms_internals\atomsDownload.sci line 260 )
at line   314 of function atomsInstall  ( C:\Program
Files\scilab-6.0.2\modules\atoms\macros\atomsInstall.sci line 330 )

what should i do?

Answer from Chin Luh Tan -- March 30, 2020, 03:14:32 AM    
Hi, 

This usually caused by corrupted file downloaded, and I've tried to download the file and 
check it out, the file seems to be alright (not corrupted on server - 
b693c2fe0f5538f6b8b0ce9183ad1939,C:\Users\chinluh\Desktop\IPCV-4.1.2-win64-bin.zip), so it

is likely on your end. 

What you can try: 

Check there is any IPCV folder created in C:\Users\admin\AppData\Roaming\Scilab\scilab-
6.0.2\atoms\x64\, and if so, delete IPCV and the contents.

Goto C:\Users\admin\AppData\Roaming\Scilab\scilab-6.0.2\atoms\x64\archives, manually 
delete the file "IPCV-4.1.2-win64-bin.zip"

run again:

atomsSystemUpdate();
atomsInstall('IPCV'); 


Hope this helps.

rgds,
CL
Comment from Pascal Buehler -- May 8, 2020, 10:51:11 AM    
Hi i wrote this code for finding edges like in Labview.

function Find_Straight_Edge();
bin=im2bw(image,0.1);
outm=bwborder(bin,4);
imshow(outm);
rec=imchoose();
xmin=int(rec(1));
ymin=int(rec(2));
xmax=int(rec(1)+rec(3));
ymax=int(rec(2)+rec(4));
ind=vectorfind(outm(ymin:ymax,xmin:xmax),1,"r",[],"headIJK");
n=size(ind);
x=[ones(n(1),1),(ind(:,2)+xmin)];
y=(ind(:,1)+ymin);
v=lsq(x,y)';
xp1=xmin;
xp2=xmax;
yp1=height-int(v(2)*xmin+v(1));
yp2=height-int(v(2)*xmax+v(1));
xpoly([xp1,xp2],[yp1,yp2]);
set(gce(),"foreground",5);
endfunction;

i hope you can use it oder enhance it. with the linear regression you have the angle 
to rotate the picture and with two edges you can determin a new zero Point.

M.f.G. Pascal
Answer from Chin Luh Tan -- June 18, 2020, 04:50:30 AM    
Hi Pascal, 

sorry for the late reply, and thanks for your code contribution.

I will try to put the code in coming release, or you could  assist to do so in 
https://github.com/tanchinluh/IPCV
 

again, nice code and thanks.

rgds,
CL 
Comment from Tom Armand -- June 15, 2020, 02:05:56 PM    
Hello,

I have the same issue as Gauri Patil but i couldn't fix it even with your advices. 
I tried many ways to Install IPCV and always get the same error. 

What i did: 
 
I downloaded IPCV-4.1.2-win64-61-bin.zip on this page, and then gave the following 
instruction: 

-->atomsInstall("C:\Users\Downloads\IPCV-4.1.2-win64-61-bin.zip")

And I get:

Scanning repository http://atoms.scilab.org/6.0
... Done

	IPCV (4.1.2) will be installed in the 'allusers' section



	Installing IPCV (4.1.2) ...atomsDownload: The downloaded file does not match 
the MD5SUM:
	 - file      : 'C:\Users\AppData\Local\scilab-6.0.2\contrib\IPCV\IPCV-4.1.2-
win64-bin.zip'
	 - MD5SUM expected : 'b693c2fe0f5538f6b8b0ce9183ad1939'
	 - MD5SUM watched  : '3c11655034e6883df2a239f930631b71'
at line   245 of function atomsDownload ( C:\Users\AppData\Local\scilab-
6.0.2\modules\atoms\macros\atoms_internals\atomsDownload.sci line 260 )
at line   314 of function atomsInstall  ( C:\Users\AppData\Local\scilab-
6.0.2\modules\atoms\macros\atomsInstall.sci line 330 )


Given the answer you gave to Gauri Patil, I checked if the file IPCV-4.1.2-win64-
bin.zip was in the following folders ...\scilab-6.0.2\atoms\x64  & ...\scilab-
6.0.2\atoms\x64\archives in order to delete it but it wasn't.

I also tried to install IPCV with --> atomsInstall("IPCV") but I always get
the same 
error. 

Many of my colleagues have tried as well and we all get the same result.. 

Any help would be very appreciated!

Kind Regards,

T.A.
Answer from Chin Luh Tan -- June 18, 2020, 04:38:16 AM    
can u check here : C:\Users\AppData\Local\scilab-6.0.2\contrib\IPCV\IPCV-4.1.2-win64-
bin.zip?

whether the zip file exist here. If you're sure that the IPCV is not installed in your 
system (no message when u start Scilab), you might want to remove the whole IPCV fo;der 
and try again. 

Also, try to run Scilab as administrator by right click on the Scilab icon and "Run as

Administrator" then try the installation again.

rgds,
CL
Answer from Tom Armand -- June 22, 2020, 03:12:41 PM    
Thank you for your answer!

The zip file does exist but 'IPCV-4.1.2-win64-bin.zip' doesn't contain anything, there's 
nothing to extract from the zip file. I deleted it and tried again but it doesn't work 
still. 

I unfortunately don't have the administrator rights on this computer. But is it really 
the reason why it doesn't work..? I can use many other ATOMS, just IPCV won't work. 

Thank you, 

T.A.
Answer from Chin Luh Tan -- June 22, 2020, 03:22:27 PM    
Hi, 

Can you manually download the file, and then atomsInstall('IPCV-4.1.2-win64-bin.zip');

thx.

rgds,
CL
Comment from Tom Armand -- June 15, 2020, 05:36:19 PM    
This comment has been deleted.
Comment from Nicholas Chies -- July 8, 2020, 07:27:39 PM    
Hi, i am having the same problem in installing atoms.

 I keep getting the message: ''No ATOMS module is available. Please, check your Internet
connection or make sure that 
your OS is compatible with ATOMS.''

I already tried to do the 4 procedures you suggested before. My OS is macOS Catalina
Version 10.15.5. I am not using an 
proxy server and my Internet connection is stable. Also already tried the offline
installation, but the Scilab couldn't read or 
find the zip file.

Thanks for the attention,

Nicholas
Comment from Alexandre Englert -- July 8, 2020, 07:29:34 PM    
Great toolbox.
Comment from Chin Luh Tan -- July 13, 2020, 05:14:58 AM    
For MacOS there might be slightly different issue. please confirm that:
1. you're using 6.1 
2. you're starting Scilab with sudo from command line during installation.

thanks.

rgds,
CL
Answer from Nicholas Chies -- July 15, 2020, 06:44:25 PM    
> For MacOS there might be slightly different issue. please confirm that:
> 1. you're using 6.1 
> 2. you're starting Scilab with sudo from command line during installation.
> 
> thanks.
> 
> rgds,
> CL

It worked, thanks for the answer!

I am using version 6.1,  just had to start the app from Terminal.  

Thanks again,

N.C.
Comment from Djack Rene -- August 1, 2020, 11:49:09 PM    
Hi,
I am using Scilab 6.1 on Ubuntu 20.04.
I would like to use the module IPCV.
I have done atomsInstall('IPCV') but when i restart scilab the module 
can't find the library opencv_world.so.
Should i have to wait a patch for Ubuntu 20.04 ?
Thanks for reading,
René  
Answer from Chin Luh Tan -- October 14, 2020, 08:49:14 AM    
Sorry for late reply. As there were some issues when I last run Scilab 6.1 on Ubuntu 20.04

when it first launched, so I've not build the patch yet. Will find time to look into it 
again.

thanks.

rgds,
CL
Comment from Debora Fernandes -- September 29, 2020, 07:07:10 PM    
Hi, 

I am using Scilab 6.0.2 on Windows 10.

I'm having the following error, even though I installed the IPCV version 4.1.2:


Undefined variable: int_imread

already tested several paths for the same image, but it didn't work.
Answer from Chin Luh Tan -- October 14, 2020, 08:47:26 AM    
the error is due to the module is not properly loaded. what's the message that you get 
when it starts?

thanks.

rgds,
CL
Comment from Sien Nguan Thomas Kong -- October 30, 2020, 08:33:08 AM    
Hi,

I am using Scilab 6.1.0 on windows 10 and I encoutered following error 

atomsInstall: Error while creating the directory 
'C:\Users\User\AppData\Roaming\Scilab\scilab-6.1.0\atoms\x64\IPCV\4.1.2\'.

is there any way to solve this error.

Many thanks
Answer from Chin Luh Tan -- October 30, 2020, 08:50:08 AM    
Hi, 

could you try to launch the Scilab as admin? This could be done by right click on the 
Scilab icon, and select "run as administrator", and then try to install the
module again.

hope this helps.

rgds,
CL
Comment from Sien Nguan Thomas Kong -- October 30, 2020, 08:58:41 AM    
Thank you very much. it works : )

Take care and stay safe
Comment from Xiaowang Chen -- December 2, 2020, 09:38:10 AM    
Hi,

When I run:
atomsInstall('C:\scilab_script\IPCV-4.1.2-win64-61-bin.zip')

then display:
Scanning repository http://atoms.scilab.org/6.1
… Done

and always display:
Atoms: Download in progress … Please be patient.

I run Scilab 6.1.0 on Windows 10 Home edtion with Administrator.

I have download the toolbox zip file, and save the zip file in
C:\scilab_script\IPCV-4.1.2-
win64-61-bin.zip.

I need help.

Thanks,

xiaowang chen
Comment from Yukiya Kawakami -- January 23, 2021, 04:57:10 AM    
Hi,
I have a question about immedian.bin(sci) that is a median filter in IPCV-4.1.2.
This immedian.bin(sci) uses medianBlure of OpenCV and its data type is limited to CV_8U, 
however CV_16U and CV_32F are available when ksize is 3 or 5.

So, I editted immedian.sci as follows,

// Start of script 
function imout = immedian(imin,sz)
    rhs=argn(2);
    if rhs < 2; error("Expect 2 arguments, input image and filter size"); end

    if ~pmodulo(sz,2) | sz <= 0 then
        error('Second argument must be in positive odd number --> 1,3,5...');
    end

    if type(imin(1)) == 1 then
          rmin=min(imin); rmax=max(imin); flag_mt_1 = 0;
          if rmin < 0 | rmax > 1 then
            flag_mt_1 = 1;
            kc=1.0/(rmax-rmin);
            imin=imin - rmin; imin=imin * kc;
          end

          if sz == 3 | sz == 5 then
            imin  = im2uint16(imin);
          else
            imin  = im2uint8(imin);
          end
          
          imout = im2double(int_immedian(imin,sz));
          
          if flag_mt_1 == 1 then 
            imout = imout / kc; imout = imout + rmin;
          end
    else type(imin(1)) == 8
          imout = int_immedian(imin,sz);
    end
endfunction
// End of script

This tuned immedian.sci is convereted to immedian.bin and it enables CV_16U data as valid 
input data when ksize is 3 or 5. I’ve confirmed.

And I know that GetImage() in sci_int_immedian.cpp gives CV_64F data to medianBlur() even 
though medianBlur() allows the its input data CV_32F, not CV_64F. Actually, I saw aborting

when I tested for input data of CV_64F to medianBlur().
Then, I think why there are no lines that include --- pSrcImg.convertTo(pSrcImg, CV_32F); 
--- or like such a converter when sz2 is 3 or 5. 
If CV_32F is available for medianBlur() in sci_int_immedian.cpp, this edition makes use of

medianBlur() of OpenCV fully.

Do you have any other idea?

Live long without COVID-19,
Y. Kawakami
Comment from Mi Nok -- January 29, 2021, 05:46:55 PM    
Hi,

I use Scilab 6.0.2 and IPCV 4.1.2 on OpenSuse 15.2. I have compiled my opencv 4.1.2 and
transferred lib and include files to IPCV. When opening Scilab, I get the following:

----
Startup execution:
  loading initial environment

Start IPCV 4.1.2 for Scilab 6.0
Image Processing and Computer Vision Toolbox for Scilab
2019 - Bytecode Malaysia
	Load macros
	Load dependencies

 

 ------------------------------------------------------

 Error : Can not load some dependencies.

 link: The shared archive was not loaded: /home/mirko/scilab-6.0. 
 2/lib/thirdparty/redist/libz.so.1: version `ZLIB_1.2.9' not foun 
 d (required by /usr/local/lib64/libopencv_world.so)             
 
--------

Any suggestions on how to continue?

mi
Comment from Alok Pugalia -- March 16, 2021, 08:46:50 PM    
Hi,
  I am using Scilab 6.1 on Win 10 64 bit. Have installed the module IPCV 4.1.2. There 
seems to be multiple bugs with the toolbox. Have managed to work-around some of them but 
one issue is still existing and can't seem to fix it.

-------------------
Issue 1:
 If the scicv module is installed along with the ipcv then there are conflicts e.g. 
can't run the simple imread function - shows error - overload method not defined

Fix: Remove scicv module
-------------------
Issue 2:
 avifile function is not able to create a video file without the codec type specified 
explicitly - gives error - File create error

Fix: Specify the codec - 'xvid', 'mjpg' etc.
-------------------
Issue 3:
 aviaddframe throws an error 
aviaddframe: Wrong number of output argument(s): 0 expected.
when used like Aout = aviaddframe(Aout, fin);
or
aviaddframe: Wrong number of output argument(s): 1 expected.
when used like aviaddframe(Aout, fin);

Relevant code
[nframes,width,height,fps]=aviinfo(vfile);
Ain = aviopen(vfile);
Aout = avifile(ovfile, [width;height], fps, 'mjpg');
for i = 1:nframes
    fin = avireadframe(Ain,i);
    fout = imfilter(fin, psf);
    Aout = aviaddframe(Aout, fin);
end

Fix: None - can't use aviaddframe or addframe to add frames to the created avi file.
-------------------

Need urgent help here.

Thanks & Regards
Alok Pugalia
Comment from Eduardo Inglez -- April 16, 2021, 07:41:54 PM    
Hi, I would like to perform vectorized convolution of an image, using stride. Which 
funtion best fits my need? 
imcolproc 
Can I have more examples of usage. Tks
Comment from Eduardo Inglez -- April 26, 2021, 08:35:45 PM    
Hi, I go this error reading a Tensorflow model (*.pb)

Loading Tensorflow Model: save_model.pb
Error: FAILED: fs.is_open(). Can't open "save_model.pb" 
at line    67 of function dnn_readmodel 

Error loading DNN model.

used:
Scilab
net = dnn_readmodel("save_model.pb",'','tensorflow');
and
Tensorflow
tf.keras.models.save_model(model,"my_model")

What is wrong? 
Comment from Sachin Thorat -- September 7, 2021, 08:12:22 AM    
Start IPCV 4.1.2 for Scilab 6.0
Image Processing and Computer Vision Toolbox for Scilab
2019 - Bytecode Malaysia
	Load macros
	Load dependencies

  ""

  "------------------------------------------------------"

  "Error : Can not load some dependencies."

  "link: The shared archive was not loaded: libopencv_world.so: cannot open shared
object file: No such file or directory"

  ""

  "------------------------------------------------------"
	Load gateways


## Please help ##
Leave a comment
You must register and log in before leaving a comment.
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.