vigns / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Errosion and Dilatation class efects are switched #263

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Dilatation3x3 filter = new Dilatation3x3();
2. filter.Apply( image );

What is the expected output? What do you see instead?
An expected output is a dilatated picture. That should mean that objects are 
"bigger". Unfortunately dilatation class does the effect of errosion and 
vice-versa, errosion class does dilatation. Their descriptions in docs are 
actually correct only the effects is switched.

What version of the product are you using?
AForge.NET Framework 2.2.2

Original issue reported on code.google.com by mrvi...@gmail.com on 17 Nov 2011 at 10:27

GoogleCodeExporter commented 9 years ago
It was already discussed multiple times - these filters do what they meant to 
do correctly. Check documentation and see sample images;

Erosion removes white pixels, dilatation adds. That is it.

Original comment by andrew.k...@gmail.com on 17 Nov 2011 at 10:31