[Scilab-users] Scilab Computer Vision Module

Tan Chin Luh chinluh at tritytech.com
Tue Apr 25 05:52:22 CEST 2017


Hi,

It is great to have the new computer vision released on atoms, 
especially a module which is created by Scilab Enterprises.

After so long there are many image processing and computer vision 
modules in atoms, which have their pros and cons, and this new module 
finally allows the call of almost all functions (if not all :) ) to the 
OpenCV 2.4.13 through its gateway function although not all are 
documented. I believe it will be coming very soon.

To make it better I think we could share some of our finding of the 
"hidden" functions" while waiting for the module update, the following 
code perform the image inpaint algo:

scicv_Init();

S  =  imread(getSampleImage("blobs.jpg"));

// Creating mask to remove the object at 2nd row, 2nd col. This would be 
easier after the support of the insertion for Mat implemented as stated 
in help file
m1  =  uint8(zeros(Mat_rows_get(S),Mat_cols_get(S)));
m1(110:200,150:250)  =  255;
imwrite('mymask.jpg',m1);

mask  =  imread('mymask.jpg',CV_LOAD_IMAGE_GRAYSCALE);

S2  =  inpaint(S,mask,3,INPAINT_NS);
matplot(S2)


Regards,
Chin Luh







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170425/93af9567/attachment.htm>


More information about the users mailing list