[Scilab-users] image insertion using scicv

classic Classic list List threaded Threaded
2 messages Options
der_Phil der_Phil
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] image insertion using scicv

Dear Experts,

I would like to implement a small image into a part of a big image.

I would know how to do that with IPCV, but the small image is loaded using scicv "imread".

The help to "Mat" states:

  • insertion: syntax is the same a the usual Scilab insertion, and accepts a Scilab matrix in input (not yet available).
  • concatenation: syntax is the same a the usual Scilab concatenation (not yet available).

Is there any progress to make this available?

Thank you,
Philipp


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
TanCL TanCL
Reply | Threaded
Open this post in threaded view
|

Re: image insertion using scicv

I believe both modules treat the image differently, scicv treat the image as
OpenCV object, while IPCV import image as Scilab matrix.

so when you try to implement a small image into a part of a big image in
IPCV, you could simply using Scilab way, say A is 256x256x3, and B is
64x64x3, u can use the assignment such as A(1:64,1:64,:) = B;

e,g:

--> S = imread('linear.png');

--> S2 = rand(64,64,3).*255;

--> S2 = uint8(S2);

--> S(1:64,1:64,:) = S2;

--> imshow(S2);

--> imshow(S);




--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users