The function imroifill fails

Hello everyone,

I have tried to use the function imroifill, but it constatly fails, even if I call it directly from the “help”

example of the code:

S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
mask = imroi(S);
imout = imroifill(S,mask);
imshow(S);
scf; imshow(imout);

the result is this report:

imout = imroifill(S,mask);
at line 67 of function imroifill ( C:\Users\pokornyh\AppData\Roaming\Scilab\scilab-2025.1.0\atoms\x64\IPCV\4.5.0.1\macros\imroifill.sci line 72 )

inconsistent row/column dimensions

by calling

imshow(mask)

I can see the mask and by adding original image and the mask

aa = S+mask;
imshow(aa) 

I get the boundary of the mask.

I think there is a bug in the function itselves.

Thanks for helping in advance,

Hynek

Hello,

Can you try with Scilab 2026.0.1 (latest release) ?

S.

Same error on my side with Scilab 2026.0.1 on window 10 and latest version of IPCV

 → imout = imroifill(S,mask);
à la ligne    67 de la fonction imroifill ( C:\scilab-2026.0.1\contrib\IPCV\4.5.0.2\macros\imroifill.sci ligne 72 )

Dimensions ligne/colonne incohérentes

Please fill an issue at Issues · tanchinluh/IPCV · GitHub. However, be warned that the IPCV toolbox is not maintained any more (it is just re-packaged when Scilab is updated).

Provide a reproductible and non-interactive example, using the syntax imout = imroi(imin,points), making imroifill fail.

S.