We’re trying to apply a Dilate() operator to an 8 bit binary image imageMask by doing the following:
// Dilate binary Mask Stemmer.Cvb.Image dilMask = new Stemmer.Cvb.Image(3, 3); dilMask.Initialize(255.0); Stemmer.Cvb.Image dilatedMask = Stemmer.Cvb.Foundation.Morphology.Dilate(imageMask, dilMask, new Stemmer.Cvb.Point2D(1, 1));
However, Dilate() yields a segmentation violation. I can’t see anything unusual here though. Do we overlook something in how to use this function?
Thanks in advance!