Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Ideas for video in video

Solved!
Go to solution
Any tricks to perform video in video
0 Kudos
Message 1 of 6
(4,018 Views)

Like a picture inside a picture?  Fairly easy.

 

For each image, use ImageToImage to insert the smaller image into the larger one.  You may need to resize the image using extract first.  Then display the image and repeat with the next frames.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 6
(4,016 Views)

Hi Bruce,

 

  When i use the imagetoimage  function I get  a blank image. Seems funny. When i tried the copy image function, it shows the copy of the image. Am I doing something too silly?

 

0 Kudos
Message 3 of 6
(3,957 Views)

12222 wrote:

Hi Bruce,

 

  When i use the imagetoimage  function I get  a blank image. Seems funny. When i tried the copy image function, it shows the copy of the image. Am I doing something too silly?

 


ImageToImage works perfect as Bruce suggested:
VideoInVideo.png 
Post your VI if you have any troubles.
Andrey.
 

 

Message 4 of 6
(3,954 Views)

Hi Bruce,

 

  Please have a look at this section of the vi. your suggestion works fine for still images. I tried that before. But for real time videos, there's something I don't understand.

 

 

regards

0 Kudos
Message 5 of 6
(3,917 Views)
Solution
Accepted by topic author 12222

What exactly you can't understand?

 

Be sure that:

 

- both images are the same type (U8 or I16, etc)

- if both images are 16 bit, then they should have neraby same intensity  (because mapped to 8 bit for display)

- small image is really smaller than bigger one

- small image positioned not outside

- both cameras deliver nearby same frame rate. If not, it will be good idea to organize separate threads.

- check error output

 

Andrey.

 

0 Kudos
Message 6 of 6
(3,907 Views)