Question

How do we display more than one image simultaneously in scilab? I used to do it using figure,imshow() in matlab. Whats the scilab alternative? Thank you.

Was it helpful?

Solution

Multiple imshow windows

Assuming you are using SIVP for image processing in SciLab, it is currently only possible to show one imshow window at a time.

Quote from the SIVP imshow documentation :

Bugs and Shortcomings

Only one imshow window can pop up.

Workaround

A workaround is to combine multiple images and show that image, for example:

// Two example images
im1 = ones(400,600);
im2 = rand(400,600);

// Put images side by side
im3 = [im1 im2];
imshow(im3);

// or put them top-to-bottom
im3 = [im1 ; im2 ];
imshow(im3);

When combining images be sure to have matching dimensions, so when placing images side-by-side the number of rows must match and when placing them top-to-bottom the number of columns must match.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top