menu_book

Knowledge Base

Documentation, guides, and resources for Noldus products.

EthoVision XT 19 - Configure Detection Settings - Advanced Detection Settings: Subject Contour

Last updated: Jul 28, 2026

Advanced Detection Settings: Subject Contour

Aim

  • To eliminate the detection of thin objects such as the rodent's tail.
  • To remove the effect of fibers and other thin objects of similar color as the subject, for example in optogenetic stimulation systems.
  • To remove the effect of cage bars.
  • To join up the parts of the body when they are detected separately, for example a zebrafish when swimming over a dark object.

How to Access This Option

In the Detection Settings window, locate Subject Contour.

Procedures

To Remove the Rodent's Tail or Thin Objects

  1. Select Erosion >0, Dilation >0. In most cases the second Erosion filter is not necessary.
  2. Increase the values Erosion and Dilation until the rodent's tail or the interfering objects are no longer detected.

Tip: Try with equal values for Erosion and Dilation; alternatively, Erosion slightly higher than Dilation. For example, 3, 2, 0.

For tethered animals, increase Erosion until only the subject is detected.

To Remove the Effect of Cage Bars

  • If the cage bars are the same color as the subject, first erode, then dilate. For example, Erosion 1, Dilate 3, Erosion 0.
  • If the cage bars are darker (or lighter) than the subject, then first dilate, then erode. For example, Erosion 0, Dilation 4, Erosion 1.

To Join Up Parts of Animals Like Fish and Insects

  1. Select Erosion 0, Dilate >0, Erosion >0.
  2. Increase Dilation until the subject's body is fully detected. Then increase Erosion to return to the normal subject size. For example Erosion 0, Dilation 4, Erosion 2.

How Erosion and Dilation Work

Contour Erosion

Erosion removes an external layer of pixels from the subject's contour. The detected subject appears smaller. 1 means that a layer of 1 pixel is removed. Range: 1 to 10.

Contour Dilation

Dilation adds a layer of pixels around the subject's contour. The detected subject appears larger. 1 means that a layer of one pixel is added. Range: 1 to 20.

Combine Erosion and Dilation

Select Erosion and Dilation when you want to keep the apparent size of the subject as the original.

When you select at least two filters, erosion and dilation are applied based on the sequence that results from which filters you choose.

  • Erosion >0, Dilation >0, Erosion =0: A layer of pixels is removed, then another layer is added to the contour. This is the same as Erode first, then dilate in EthoVision XT 15 and earlier.
  • Erosion =0, Dilation >0, Erosion >0: A layer of pixels is added, then another layer is removed from the contour. This is the same as Dilate first, then erode in EthoVision XT 15 and earlier.
  • Erosion >0, Dilation >0, Erosion >0: A layer of pixels is removed, then another layer is added, and finally a third layer is removed.

Tip: Use this combination to improve nose-tail detection in some difficult situations, for example when the subject enters a darker area. Adding the second Erosion filter may help.

Notes

  • It is important that the complete body of the animal is detected. If even after setting the Contour adjustments you do not achieve this, go back to the appropriate Detection method and adjust the contrast to improve body detection.
  • A reason for why you may want to eliminate the animal's tail is that when the animal sits still and its tail moves, it adds to distance moved. Furthermore, when the tail is not part of the detected blob, the center point is better estimated.
  • If you apply Erosion 2, Dilation 0, Erosion 2, the effect is like that of Erosion 4, Dilation 0, Erosion 0.

See Also

  • The video tutorial Contour Settings.

Advanced Detection Settings: Subject Size (One Subject Per Arena)

Aim

To set a minimum and a maximum apparent size of the subject to prevent objects like droppings or large reflections from being detected during tracking.

This Topic Applies To

All experiments set to:

  • Number of Subjects per Arena: 1
  • Body point detection technique: Contour-based

Procedure

  1. In the Detection Settings window, locate the Subject Size.
  2. When EthoVision XT finds the subject, check the value under Current. The Current value gives an idea of the detected body size in pixels.
  3. Click the Edit button and set the Minimum and Maximum subject sizes. Objects that have the same color as the animal, but are smaller than the Minimum or larger than Maximum size, are not tracked.

You are now ready to acquire data.

Notes

  • The term size here means surface area in video pixels, not length or screen pixels. Enlarging the Video window does not change the subject's size in video pixels.
  • Objects whose size is outside the size range are shown in the color under Noise (default: orange; see View the Detection Features on the Video Window).
  • Click the video icon next to Subject Size and watch the video tutorial.

Questions about this product?

Our specialists are happy to discuss your specific requirements and help you plan your setup.

Noldus is here to assist you throughout the whole process.

shopping_bag
check_circle

Thank you!

We'll get back to you shortly.

error

Please correct the following errors:

error

error

error

error

By clicking Submit, you consent to Noldus processing your data as described in our privacy policy.