|
ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Apparatus > Video sources > An introduction to video sources An introduction to video sources
IntroductionA video source is something which, as the name implies, acts as the source of video images. The important thing about a video source is that it shows an image of a single piece of apparatus.
Why video sources are necessaryThe easiest way to understand why video sources are necessary is to consider a simple example. Imagine you have two activity boxes and you'd like to track in them both at the same time. Of course, you could do this using two cameras, one over each box, but you might find that if you place the two boxes next to each other just one camera could see into them both - see figure 1.
Figure 1. One camera can see into both activity boxes creating a cheaper solution than using one camera for each box.
Obviously, using one camera would be a cheaper solution than using two - however, there'd be a problem. The picture from the single camera would show two pieces of apparatus, but for ANY-maze to track animals in two boxes, it needs two distinct images (one of each box) - this is where video sources help out. In this example, you would create two video sources; they'd both use the picture from the same camera but each one would use a different part of the picture as the 'image' of its apparatus - see figure 2.
Figure 2. The two video sources share the picture from the camera, but each one only uses the part of the picture which shows its apparatus (shown unshaded in the above figure).
In fact, you're not limited to two pieces of apparatus; you can use the same technique to divide up images showing up to 40 pieces of apparatus if you want to (although that would be rather extreme). Every apparatus needs a video sourceYou might think that if your camera shows just a single piece of apparatus, then you won't need a video source at all - however, this isn't the case. ANY-maze always expects the image of your apparatus to come from a video source, so you'll still need to create a video source for your apparatus even if it's the only thing in the picture. In fact, this is quite useful because it means you can crop any part of the image which you don't really need - see figure 3.
Figure 3. The water-maze doesn't fill the video picture, so the video source uses just a part of the picture, reducing the amount of information ANY-maze has to process.
Removing excess parts of an image is a good idea, as it reduces the amount of information that ANY-maze has to process making it run faster. Working with apparatus which can't be viewed with a single cameraIn some circumstances, you might find that your apparatus can't be fully viewed with a single camera, this occurs most often in apparatus which is in some type of enclosure and/or includes some type of dividing wall, see figure 4 - it might also occur if your apparatus is simply very large.
Figure 4. Using one camera, it will be impossible to see fully into both sides of the place preference box because the surrounding sound-proof enclosure means that the camera can't be mounted far enough away. However, mounting one camera on either side would solve the problem.
In these situations you can use two cameras to view the apparatus and then use a special montage video source to join the images from the two cameras together. How montage video sources workA montage video source joins together the images supplied by two normal video sources, thus creating an image which shows an entire piece of apparatus - see figure 5.
Figure 5. The pictures from the two cameras are first used to create two separate video sources. These are then merged using a montage video source, to create a final image of the entire box.
At present, it's not possible to join two montage sources together, so if your apparatus requires three or more cameras to be fully visible then you won't be able to use it in ANY-maze - however, we're planning to include this feature in the future. See also:
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T0083 |